Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 09:05:38 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)LODShape observations
Pages: [1]
Print
Author Topic: LODShape observations  (Read 568 times)
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« on: 25. March 2007, 09:03:04 pm »

I noticed that LODShape behaves differently when placed in its own TransformGroup inside a bigger TransformGroup versus when placed directly in the outer TransformGroup adjecent to many LODShapes. 

When placed in the TG->TG (many)->LOD structure, onLODChanged fires as soon as the object is displayed.  This is great because it means that I can create the object without any geometry, etc. and set the appropriate one based on the distance to the View.

When placed in the TG->LOD (many) structure, onLODChanged does not fire as soon as the object is displayed.  Instead, it only fires the first time an LOD boundary is crossed.  If I needed to use this structure (luckily, I don't), it would mean that I would have to calculate the initial distance to the view and pass it into the constructor so the constructor could choose the appropriate LOD to display.  This doesn't seem like the intended functionality although the exact timings of onLODChanged are slightly vague.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 25. March 2007, 10:01:32 pm »

Please checkout and try again.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic