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 / Multi-Camera Frustum Culling.

Author
Message
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 9th Nov 2008 07:57
I currently have 3 cameras active in my game.

I have the requirement to cull objects for the individual Frustums of each camera.

How does one disable an object for one camera, but have it enabled for another camera?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2008 11:36
Unfortunately, you don't, at least until the GDK gets the latest updates - there's a DBPro command called 'SET OBJECT MASK' that works in the same way as dbSyncMask (or SYNC MASK in DBPro) but for individual objects.

sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 9th Nov 2008 12:34
It looks like there is already internal code that does some sort of Frustum culling for each camera.
There is a unique situation where one of my cameras should only ever see one object, and I felt that if I pre-culled for this camera, then it could save some CPU time.

I will just have to wait until the next revision of Dark GDK gets released.

Thanks for the release update and equivalent commands info.

Login to post a reply

Server time is: 2024-11-25 05:41:10
Your offset time is: 2024-11-25 05:41:10