Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Make an Object Black in just one camera?

Author
Message
Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 1st Nov 2010 08:54
I need to be able to have it so objects render normally in camera 0, but then render black in camera 1, any ideas?
Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 3rd Nov 2010 12:27
Just in case anyone is wondering how I managed to do this, I create two versions of the object, texture one with a black color, then mask each of the objects out of their respective cameras. This is useful for masking etc
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 3rd Nov 2010 14:59
You can render the cameras one at a time using dbSyncMask( mask ) followed by dbSync() or dbFastSync(), this allows you to alter the scene between camera draws.

Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 3rd Nov 2010 15:11
Thanks for letting me know! I had kinda figured that out when using shaders for the first time

Login to post a reply

Server time is: 2024-11-19 16:43:19
Your offset time is: 2024-11-19 16:43:19