Game Development Community

Rendering Terrain Inside Portals

by Greg Gardinier · in Torque Game Engine · 09/04/2005 (4:48 pm) · 8 replies

Hey everyone,

I browsed through the forums but couldn't find anything on this. I need to create a portal and have the terrain render inside of it since I want to use it for the ground. Is this possible? I am not a coder so I am not really sure where to start with this any help would be apreciated.

Thanks

#1
09/04/2005 (6:08 pm)
The terrain will render inside buildings by default. You don't need to portalize the building unless you want the terrain to *not* render inside it.
#2
09/04/2005 (7:06 pm)
That's the thing. I don't want anything else but the terrain to render. I want all the advantages that portals offer (frame rate, no perciptation, ect) without losing the terrain.
#3
09/04/2005 (8:00 pm)
Portalize your interior and then just set the "showTerrainInside" flag on it in the Mission Editor (it defaults to false).
#4
09/04/2005 (8:17 pm)
Cool, I will try it in awhile.
#5
09/04/2005 (8:24 pm)
I'm not sure I understand what you're getting at. Terrain already plays nice with portals. You can't just "put the terrain in a portal" and get a magic benefit from it... I guess I don't get what you're trying to do. :(
#6
09/04/2005 (8:29 pm)
:)! It works... I never thought it would have been that simple I should have looked first. Thanks again.
#7
09/04/2005 (8:32 pm)
Sorry for the confusion Ben. I am creating a cave and using the terarin as the ground. To help boost my frame rate I made a large DIFF box around the dts mesh I am using for the cave. So basically I am using DTS and DIFF objects together so I can get the organic shape I want and still get the benifits of using a DIFF interior.

(I just didn't realize how easy this was to enable :P I am so use to having to change engine or script code to do these things I just skipped looking in the mission editor.)
#8
09/05/2005 (12:22 am)
(It's DIF, Dynamix Interior Format, not DIFF, which is a tool used for differencing files.)

Cool that you got it working! :)