Author Topic: Subobject lod  (Read 836 times)

0 Members and 1 Guest are viewing this topic.

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
I'm building something really big for SoL. There is no way a PC will be able to show the whole thing with a decent performance. So I'm using subobjects to utilize the subobject lod system. It's a bit complicated to use, but that's not the problem.

My problem is, that so far, I've only seen one model that is using it, but in a different way, I'd like to use it.
Omniscaper's Deathstar seems to 'add' stuff at close range. So it's not beeing rendered at all.

I'd like to use two lods for my subobjects. I don't want them to disapear at all. No matter how far they're away.

How do I have to set this up? (subobject01a, subobject 01b ?)
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Flaser

  • 210
  • man/fish warsie
The thing you're actually speaking of is "detail box"-es.
Bobbau coded this, so you can put high poly detail subobjects onto a ship that will only show up when the player ship enters a given box around it.

(Actually LODs do pretty much the same, except its a variable distance from an arbitary point instead a box and they change the whole model, not just a part of it.)

It was originally made for putting the hangars into the WCS capships.
Omniscaper has shown its true potential with the Death Star.

The prime reason why you should be using them instead lods for very big objects is that only the boxes close to the camera will be drawn, so only a limited number of high poly objects instead all of them. (So in essence you can force the engine to only calculate/draw the visible part of the model without wasting processing power on other parts of the model.)

The real trick though is that you can put further detailboxes into the bigger ones.
Omni's Death Star was not that optimized in this regard.
In your shoes I would build the model with all the detail I wanted to, then start zooming out....whenever some features blur together I would group them togherther and put them in a detail box.
Then I would cull all of that stuff or collapse it into a simpler geometry and readd it to the model.
I would repeat this process until I'm at a scale where I can finally make LODs that affect the entire model.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Well... is there a way to actually 'switch' subobjects depending on the distance?

I don't really want to group things.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
So you just want groups of one.  The system is more flexable than that (though not substantially so).  The general idea is to make the high and low detail objects both children of the primary LOD that they will appear on and then to set the detail box up for each so that one appears inside a certain radius and one appears when you are outside.  You cannot make them span primary LODs though, and I'm not sure they will work out of subsystems.  I can't remember the exact syntax but it should be in the wiki.
« Last Edit: June 04, 2006, 11:43:16 am by StratComm »
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM