www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Roland on March 07, 2012, 08:01:58 pm

Title: Render weapon separate
Post by: Roland on March 07, 2012, 08:01:58 pm
If I use an example and have another object to close to the screen, the weapon will be inside that other objectobject, and you will not see the full weapon. I would like to render it separate so I the weapon never can look like it is inside any objects. Anyone knows how to do it?
Title: Re: Render weapon separate
Post by: EgonOlsen on March 07, 2012, 08:25:06 pm
You can put it into a separate world, render your main world, clear the zbuffer and then render your weapon world. But you have to keep the camera of both worlds in sync as well as other settings like lighting, fogging etc.