Game Development Community

Interior/Terrain rendering question

by Jari · in Torque Game Engine · 12/31/2005 (5:22 am) · 11 replies

Hi,
I have a simple question, if I create an interior and move the player inside it, will the terrain still be rendered? And what about other interiors?

Basically I'm looking for info on how to make the engine render only the interior where the player is currently in. I know how to set portals but I'm not sure what else they good for than helping the engine to lit the lighting correctly.

Thank you.

And happy new year. :)

#1
01/01/2006 (4:02 am)
Portals do what you want. They split interiors into sections so that only the stuff in the section you are in is rendered. You can also set an option to say whether light shows through to an exterior or not.

Remember that the portals must be embedded in the walls and floors a small amount or they will not work properly.

Dave.
#2
01/02/2006 (12:50 am)
Thanks for the reply but I'm not sure did I understand this correctly because I used a portal in simple building but when I enter the building I can still look outside from the building and see everything rendered.

Here's a screen shot:


www.upimages.net/out.php/i3188_interiorPortal.JPG
As you can see there is a portal/zone since the walls are green, but does some one know what excatly should be excluded from the rendering progress?
#3
01/02/2006 (1:41 am)
Interesting, I created another building with portal and that one's zone became red. Now when I walk in to that building the buildings with the green zone wont be rendered anymore.

But If I go to the green zones the red zone is still rendered. Any one know why?
#4
01/02/2006 (3:52 am)
Ok I have three different buildings now which all have one portal and thefore one zone.
The strange thing is that if I enter the building that has green zone the red zoned buildings remains visible. But if I enter the one of the buildings with red zone the buildings with green zones become invisible (and the other red).


Here's screen shot of the buildings, the two green are same interior model but reds are different:

www.upimages.net/out.php/i3194_interiorZoneColors.JPG
So any one care to explain what's the deal with the different colored zones/portals and why does only the red zone work?

Thanks.
#5
01/02/2006 (7:09 am)
Hi Jari,

you've confused me now :-) I don't know where the red and green stuff is coming from. The only portals I've ever "seen" are invisible, not coloured. And the only probs I've had with them are when they are not embedded all around the opening completely.
#6
01/02/2006 (7:56 am)
Hi Dave,
I was using special rendering mode to make the zones visible. Like in this tutorial: http://holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/editing/
#7
01/02/2006 (11:38 am)
@Jari: Do you have the link to this 'TorqueWrench' mentioned there at hand? I couldn't find anything via the search function.
#8
01/02/2006 (11:42 am)
Sorry Dirk, I don't... and I'm not excatly sure what you mean?
#9
01/02/2006 (11:48 am)
In the holodeck article you posted (after clicking on 'interior render') it says that one has to implement a ressource called TorqueWrench that is contributed to the ressource section ... since you don't know it, I change my question to - how do you enable the rendering mode? It seems I am missing something obvious ...
#10
01/02/2006 (11:51 am)
Dirk, I see what you mean now.
I didn't implement the thing but you can just press F9 in the editor to toggle between three rendering modes. But I think it only works when you are running a debug build of the engine.
#11
01/02/2006 (12:16 pm)
That's why I never saw it ... thanks, Jari.