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.

DarkBASIC Professional Discussion / Maximum camera masks?

Author
Message
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 6th Feb 2012 05:39
I\'ve been working on transition effects and experienced an issue with the number of cameras you can mask.

The Sync Mask accepts an integer, limiting expressions ( 2 ^ Camera id ) to 32 bits.

Any ideas how to use up the other 32 bits? 64 bit mask possible?
Run this code and move your mouse up and down. The green line only shows up on camera 32 (Actually, the green line is the real scene)

The other way to produce special effects using different views is to render scene manually with one camera with however many settings you need; but it would be good to know if 64 bit masks are possible. Sync Mask will not take a double integer.



IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Feb 2012 15:40
32 bits is all you have, the assumption being 'no-one will ever need more than 32 cameras'.

... and so another assumption bites the dust!

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 6th Feb 2012 16:12
Ok, thanks. I was just checking because alot of the latest FX shaders need loads of cameras; and then there is split screen action...

I will render the cameras manually for the effect.

Login to post a reply

Server time is: 2026-07-11 09:49:21
Your offset time is: 2026-07-11 09:49:21