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 / Pick Object On Camera Image

Author
Message
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 14th Dec 2012 07:36
I working on basically creating a 3D graphical interface and need to use a viewport of some kind to create several views using different cameras. My question is how do I create multiple views to be able to use such functions such as pick object?
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 16th Dec 2012 01:28 Edited at: 16th Dec 2012 12:34
set camera image will work. If you want to put the viewports in different windows however that will be more tricky, but it doesn't sound like you need that?

Edit: wow, I've must been tired when I wrote that, it's set camera view, if you render to an image you can't use pick object


"Why do programmers get Halloween and Christmas mixed up?"
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 16th Dec 2012 02:31
It seems to work for one camera but on a second camera and the main camera it doesn't seem to work... Is there perhaps a command that can select the camera being used?

Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 16th Dec 2012 02:50 Edited at: 16th Dec 2012 02:59
Here is an alternative solution that might work using viewports...

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 16th Dec 2012 12:32
You shouldn't set the camera view in each loop cycle.
I modified your snippet a bit, is this what you wanted?



"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-07 18:44:55
Your offset time is: 2026-07-07 18:44:55