Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: TopAce on October 18, 2003, 12:06:09 pm

Title: Level of Detail problem
Post by: TopAce on October 18, 2003, 12:06:09 pm
I have a little, but annoying problem with LODing.

1. TrueSpace 3.2. I make the LOD1 geography and save it as detail2 into the detail1(whole ship). I make the second and the last LOD with the same sequence.
2. PCS, hesitate COB file reload, data import, save .. so the normal things.
3. In-game, the other LODs appears, but they are not at the same position as the LOD0. They are not aligned at the same posiion where the very first LOD was.

Anybody knows what the problem's solution is?
Title: Level of Detail problem
Post by: diamondgeezer on October 18, 2003, 12:23:01 pm
Check the centering of the LODs. Select the root of each LOD and click the 'move axes to center' button. This is the usual cause for stuff being off-center
Title: Level of Detail problem
Post by: karajorma on October 18, 2003, 12:26:42 pm
Your axis for the LODs is not in the same place for all the LODS. Use the Axis buttons to solve this problem and the ship should work fine.
Title: Level of Detail problem
Post by: TopAce on October 18, 2003, 12:29:22 pm
Thanks, will try next time I have mood to open TrueSpace :)
Title: Level of Detail problem
Post by: Kazan on October 18, 2003, 01:36:36 pm
this is why i encourage usage of PCS's ability to read .scns [called Scene Hierarchy]
Title: Level of Detail problem
Post by: karajorma on October 18, 2003, 02:46:34 pm
Aren't there several differences between the the way PCS deals with .scns and .cobs?
Title: Level of Detail problem
Post by: TopAce on December 10, 2003, 03:08:08 pm
Sorry for the bump. But I dare say somehow it doesn't work for me. I set all axes individually for all LODs, they are at the same position, but the same problem still exists. :(

Maybe anything you have forgotten to mention?
Title: Level of Detail problem
Post by: Hamano on December 11, 2003, 07:29:51 am
TS object grouping is complex.
An object(A) has an axis.
When you grouped (A) and local light(L), then group (AL) will be made.
At this time, group (AL) also has own axis.

If you checked only axis position of (A), see axis position of (AL).
PCS always uses axis position of group.
Title: Level of Detail problem
Post by: aldo_14 on December 11, 2003, 08:52:22 am
Put the light at the axis position of the object.  IIRC that should avoid any problems.  I *think* Ts initially sets the group axis as the midpoint of the object and light.
Title: Level of Detail problem
Post by: diamondgeezer on December 11, 2003, 08:57:38 am
Ts ought to put the axes in the middle of your object's bounding box. So as long as you put a light physically thitin the object you should be OK. Putting it at the center is your best bet, as Aldo said.

TA, if you want to send me the model to see if I can fix0r it, contact details are me profile :nod:
Title: Level of Detail problem
Post by: Carl on December 11, 2003, 02:21:52 pm
Quote
Originally posted by diamondgeezer
Ts ought to put the axes in the middle of your object's bounding box.


it does.
Title: Level of Detail problem
Post by: TopAce on December 11, 2003, 02:49:25 pm
The method I make LODs denies all you have told.
I copy/paste the same model, name it as group 1, and I begin erasing vertices. So I neither move the axis, nor the object.
Title: Level of Detail problem
Post by: diamondgeezer on December 12, 2003, 09:00:47 am
Seriously dude, you're making bugger all sense again. Send me the model and I'll poke it for you.
Title: Level of Detail problem
Post by: TopAce on December 12, 2003, 04:44:24 pm
I solved the problem.