Game Development Community

Issue bringing SceneView to "Front"(when it has child views)

by Will O-Reagan · in Torque X 2D · 06/06/2008 (6:47 pm) · 5 replies

I'm having an issue here. I have a SceneView Manager, which maintains a singleton "MainView" it also supports two "Player Views" my issue is that the player views seem to render on top of my "main view", perhaps because my main view was created first? Bring object to front doesnt seem to work, perhaps because it IS the scene view, and doesnt want to come to the front? I also tried bring object to front on the camera, to no avail. I like the idea of having only 3 views for now, keeping it simple. Is there a way to bring my main view to the front, or is it just sort of "gone?"

Will

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
06/06/2008 (8:10 pm)
I'm not exactly sure what you are trying to do here. Does the MainView cover the entire screen? Are you trying to cover the player views with the mainview or do you want all three showing at the same time? If you want them all to show at the same time you need to set the sceneviews position and size for the correct screenspace allocation as well as each sceneview's camera. If you are trying to show one sceneview on top of another sceneview you need to look at render masks.
#2
06/06/2008 (10:01 pm)
I'm showing all three at the same time. I'm not trying to cover the two playerviews completely. I'm using the Main View as an extra GUI layer. I'd rather do that then just let it go to waste and not use the camera at all. Anyways, thats what I'm trying to do, but the main view seems to render under the player views, and I'd like to switch it around.
#3
06/07/2008 (9:00 am)
Then I would add the mainview last. Don't make the playerviews children of the main view, make them siblings. I'm not sure what you mean by going to waste. You could do without the mainview completely if you wanted. I have a number of sceneviews for an RTS game. Each one has it's own screen realestate, none overlap. There is no "parent" sceneview.
#4
06/07/2008 (12:14 pm)
I can't add the main view last, I want my main view to be a singleton for the entire game, so i can add single and double player views, as the player goes between different game types. I havn't tried yet "push object to back", hopefully that will work(I know there is no parent, but I am using torqueFolder, which i guess is different)
#5
06/08/2008 (1:30 pm)
From what i can tell this isn't possible... also, NoRenderMask doesnt seem to work..