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 / issues with creating more then one camera...

Author
Message
sovr
15
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 8th Sep 2015 00:05
Hey everyone! I am trying to have multiple viewports in a dbpro project I am working on. The thing is though is when I make camera ID 1, the screen goes green. I am not sure what I am doing wrong or anything but could anyone help me out with this? is there a command I have to do to fix this?

Also I did try setting that camera to current camera and it did not change anything. Thank you in advance!

website: http://worksimpleintelligen.wix.com/parkers-apps
facebook: https://www.facebook.com/ParkersApps
youtube: http://www.youtube.com/user/mrsovr
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Sep 2015 00:36
If you have multiple cameras you need to decide which one is the main camera for displaying results to the screen. The default is camera 0. However, if you add extra cameras they will also draw to the screen unless you use the set camera to image command (which may be what you need).

What's probably happening in your case is that you are doing something like the following:



That just displays a green screen. The reason for that is that camera 0 is rendered first which will make the screen blue, but you don't see that because the system immediately renders camera 1 next and replaces the blue backdrop from camera 0 with the green backdrop from camera 1. The final colour drawn is what you see when the sync command has finished doing its work.

Here's another demo showing how to use the camera backdrop command (and a few other things ):





Powered by Free Banners

Login to post a reply

Server time is: 2025-05-12 15:09:35
Your offset time is: 2025-05-12 15:09:35