About Store Forum Documentation Contact



Post Reply 
how to draw mesh before anything else?
Author Message
krokodilcapa Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
para Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
krokodilcapa Offline
Member

Post: #3
RE: how to draw mesh before anything else?
Thank you very much!
05-07-2014 06:31 PM
Find all posts by this user Quote this message in a reply
Post Reply