krokodilcapa
Member
|
how to draw mesh before anything else?
Hi!
How can I draw a mesh before any others? For example I have a weapon with hands in FPS mode, and I want to see my weapon over a wall too.
|
|
05-05-2014 08:34 PM |
|
para
Member
|
RE: how to draw mesh before anything else?
Here's one way of doing it:
Code:
Renderer(Render);
Renderer.combine=true;
Renderer(RenderCockpit);
Renderer.combine=false;
... you may also need to disable environment effects etc before the 2nd render (and turn them on afterwards):
Code:
Game.World.settings().environment->clouds.on=false;
Game.World.settings().environment->sky.on=false;
...
Game.World.settings().environment->set();
-edit: you draw the hands/gun in the RenderCockpit() function, if it wasn't obvious...
(This post was last modified: 05-06-2014 09:05 PM by para.)
|
|
05-06-2014 09:01 PM |
|
krokodilcapa
Member
|
RE: how to draw mesh before anything else?
Thank you very much!
|
|
05-07-2014 06:31 PM |
|