Scene manager Topic is solved

What it says on the tin: a place to discuss proposed new features.
Post Reply
_Anonymous

Scene manager

Post by _Anonymous »

Why do we have to use ST_GENERIC,ST_EXTERIOR_CLOSE etc ?
If I have a scene which have both indoor and out outdoor, how to deal with it ? So I think if the engine have realtime visibility determination, so we can remove BSP, scene manager type away, and don't care about transiting from outdoor to indoor and vice-versa anyway :?:

Oh and sorry for my bad English :mrgreen:
User avatar
HexiDave
OGRE Expert User
OGRE Expert User
Posts: 1538
Joined: Sat Jan 14, 2006 8:00 pm
x 1

Post by HexiDave »

Because there are a lot of ways to do visibility determination (generally called "culling") and they each have their benefits and drawbacks.

For instance, would you want to use the same method of culling for a 3D space game with huge draw distances and moving sectors AND culling for a small 3D static terrain AND sprite-based 2D side-scrollers, etc.?

I know I'd probably explode in frustration and want to build something specialized to suit my needs, hence the flexibility. Also, since it's about 10-20 characters of text to switch between the various systems, I think the extra flexibility and scalability are both well worth that.

As for indoor/outdoor, take a look at the up-coming Shoggoth release for the "PCZSceneManager", which does just that specifically.
_Anonymous

Post by _Anonymous »

"PCZSceneManager" => What is PCZ stand for ???
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

_Anonymous wrote:"PCZSceneManager" => What is PCZ stand for ???
Portal connected zones. If you can't see the portal, you can't see the connected zone, in its most basic form.
_Anonymous

Post by _Anonymous »

OK, so this scene manager is based on portals, right ? And I think it suits best for indoor, not a large scene. What about Antiportal? The Unreal engine and (maybe) CryEngine uses it too.
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

_Anonymous wrote:OK, so this scene manager is based on portals, right ? And I think it suits best for indoor, not a large scene.
Pretty much. Not sure why you'd use portals for an outside area. Though you can combine outside and inside areas with portals.
What about Antiportal? The Unreal engine and (maybe) CryEngine uses it too.
I've honestly never heard of antiportals. How does that work?
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Post by nikki »

nullsquared wrote:
What about Antiportal? The Unreal engine and (maybe) CryEngine uses it too.
I've honestly never heard of antiportals. How does that work?
Even I'm not very sure, but they're quite the opposite of portals. Portals tell you what the player can see, and if you don't see them, you don't see the 'zone' they allow you to see, but antiportals, you can't see through them, and thus don't render what's behind them.

Wikipedia speaks.

Sounds like 'wall'. :roll:
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

nikki wrote:
nullsquared wrote:
What about Antiportal? The Unreal engine and (maybe) CryEngine uses it too.
I've honestly never heard of antiportals. How does that work?
Even I'm not very sure, but they're quite the opposite of portals. Portals tell you what the player can see, and if you don't see them, you don't see the 'zone' they allow you to see, but antiportals, you can't see through them, and thus don't render what's behind them.

Wikipedia speaks.

Sounds like 'wall'. :roll:
So... portal = door, antiportal = wall? :|
User avatar
Evak
Orc Shaman
Posts: 707
Joined: Sun Apr 02, 2006 7:51 pm
Location: Sacramento, CA
x 1
Contact:

Post by Evak »

I think anti portals are similar to occluder geom/planes. So you can stick a big plane or box in a large structure or terrain feature and anything it blocks is no longer drawn.

We used something like this on a commercial game a few years ago and it worked really well. we just had planes most occluded, but you also had negative occluders that punched a frustrum shape through the occluder you would place in doors etc that enabled you to see through the occluder.

I'm a 3D artist not a programmer so I don't know the technical stuff. It was very easy to use though, you just created a plane and places it in your scene, and being a PS2 game with limited CPU only the nearest 4/5 occluders were used at any time. The planes had simple postfix tags in their names so you could use any 3D app you wanted, in our case 3dsmax.
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Post by nikki »

nullsquared wrote:
nikki wrote:
nullsquared wrote: I've honestly never heard of antiportals. How does that work?
Even I'm not very sure, but they're quite the opposite of portals. Portals tell you what the player can see, and if you don't see them, you don't see the 'zone' they allow you to see, but antiportals, you can't see through them, and thus don't render what's behind them.

Wikipedia speaks.

Sounds like 'wall'. :roll:
So... portal = door, antiportal = wall? :|
Hehe... Portal would be opened door. :)
Post Reply