Game Development Community

Octree VS BSP - will Octree be supported by TSE down the line?

by Martin Ortiz · in Torque Game Engine Advanced · 02/09/2007 (4:21 pm) · 6 replies

I'm wondering if Octrees will ever be supported in TSE for rendering of indoor environments?

I used to be a big proponent of BSP based engines, till I realized the many problems BSP based engines create for the art pipleline, where as using Octrees eliminates these issues.

Is it possible to "plugin" an Octree renderer for indoor environments?

#1
02/10/2007 (9:11 am)
Quite a while ago (around 2003/4), there were a couple of projects which had rolled their own OctTree implementation into TGE. I'm not sure if any of them are still around or not.
#2
02/10/2007 (11:04 am)
Cool...I wonder if anybody has any info on these....

I tried searching...wasn't able to find anything relevant...
#3
02/10/2007 (11:11 am)
I actually wrote an Octree which I used in TGE for cartoon outlines for the terrain. I havn't worked it into the main rendering pipeline though, since TGE zoning is not too bad when you don't use a lot of objects in a limited space. What issues in TGE interior rendering would benefit from an Octree? Are portals/zones not enough?
#4
02/10/2007 (3:18 pm)
What issues in TGE interior rendering would benefit from an Octree?

The benefit would be in the art pipeline.

With BSP rendering, the art pipeline is cumbersome, as you are restricted to convex geometry, which makes designing a level a pain in the butt.

With an Octree based renderer, this is not an issue.
#5
02/10/2007 (3:40 pm)
You are, and you are not restricted in the type of shapes you can make. I know its not as easy as just whipping up a concave shape, but putting a couple shapes together, you can make almost anything. i can make almost any shape in a BSP style editor, or at least I haven't found a shape I could not make. What is it you are having trouble making that you want to change the entire rendering system, or a big part of it anyway:)
#6
02/10/2007 (6:12 pm)
While that's true, it's not necessarily a good thing

For example, say I find a great model of a room, or interior of some house on web. I of course, can not use it, not without going through the model and "fixing" everything. I would end up doing more work than it took to model it to begin with.

Using pre-existing models (of which there are thousands) is much cheaper, and of course, much faster than doing it from scratch. But BSP ties my hands, and prevents me from doing so.