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 / Selective rendering of objects

Author
Message
Einlander
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location:
Posted: 3rd Nov 2013 10:46
Is it possible to selectively render certain objects per camera?

I have a program that has multiple view-ports, I need to render the same scene but only certain objects are view-able for each camera.

For example you have a split screen third person game, I want to show player 1 on one side and have player 2 invisible, but player 2 can see himself and player 1. Also I came up with a solution of simply rendering it to an image but the pick object does not work.

BOW TO YOUR OPRESSOR
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 3rd Nov 2013 15:48
I believe there a set object mask command, which can allow rendering of objects in selected cameras.

Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 3rd Nov 2013 18:31
Yes. Here's a simple demo. Can someone suggest a simpler way of getting the text on screen and of getting pick object to work in both camera views?





Powered by Free Banners
Einlander
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location:
Posted: 5th Dec 2013 05:19
Sorry It took so long to respond but thanks. This helped tremendously.

BOW TO YOUR OPRESSOR

Login to post a reply

Server time is: 2025-05-17 13:58:04
Your offset time is: 2025-05-17 13:58:04