A rendering question...

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

A rendering question...

Post by Juutis »

How does RF decide which actors it renders and which not?
I'm scripting first person weapons and I'm having hard time figuring out how to get RF to render the weapon pawns properly. The pawns move and rotate with the camera, but when looking at certain directions, they just disappear. I think it's because they are so close to the camera.

Is there any way to make RF render a pawn (or any actor) no matter where it is?
Pain is only psychological.
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

this is to do with bounding boxes,

i know this because i had it happen to me one time, i know what your thinking ..."WHAT, does a bounding box have to do with rendering?"

the answer, i don't know?, but what i do know is if the bounding box is higher than that of the camera it won't dissapear, this was pointed out to me a long time ago, on an old forum which we no longer have around,

however try up the height on the bounding box slighty and see if you can get it to work.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

Genesis does this through what is called a viewing frustum. It's the field of view from the player. Genesis clips the actors to the frustum from the sides meaning that if only half the actor is in view, only half the actor is rendered.

The far clip plane is what decides how far away the actor is rendered. I believe that RF controls the far clip plane via the EnvironmentSetup entity.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Thanks for the info! I played around with the bounding box and now it seems to work!
Pain is only psychological.
Post Reply