Author Topic: Object Disappearing  (Read 605 times)

Offline croduh

  • Gold Member
  • *****
  • Posts: 2509
Object Disappearing
« on: December 10, 2006, 08:16:49 AM »
I made a building with few lods, set max and min dist for them, but object disappears between lods.Example: 1st lod: maxdist=1000
                                                         2nd lod: maxdist=5000 mindist=1000
Now when i am 1000 feet away object disappears.If i move closer or move away  object reappears.
Default objects also have maxdist and mindist tags set that way but they don't have that bug.

Help please

Offline 68wolf

  • Copper Member
  • **
  • Posts: 108
Object Disappearing
« Reply #1 on: December 10, 2006, 09:03:36 AM »
i have never had this happen to me please tell me what is happing to your computer or the objects as you get closer and so on.

Offline croduh

  • Gold Member
  • *****
  • Posts: 2509
Object Disappearing
« Reply #2 on: December 10, 2006, 09:36:39 AM »
http://croduh.batcave.net/

Download one of the tree packs, put it into userlib folder in ah2editor folder and open oe.Place the object somewhere and try zooming in and out (shift + right mouse click), you should notice how object disappears at one point.That is where maxdist and mindist meet.

Offline BlauK

  • Platinum Member
  • ******
  • Posts: 5091
      • http://www.virtualpilots.fi/LLv34/
Object Disappearing
« Reply #3 on: December 10, 2006, 09:38:16 AM »
Could you post your object hierarcy tree?

disregard.. I'll look at the object :)


  BlauKreuz - Lentolaivue 34      


Offline BlauK

  • Platinum Member
  • ******
  • Posts: 5091
      • http://www.virtualpilots.fi/LLv34/
Object Disappearing
« Reply #4 on: December 10, 2006, 10:11:12 AM »
Quick fix, put only MaxDist=600 to your groups called lod1 and lod2. It cured the problem at least in my OE.

Since you already have the min and max dist definitions in your objects, you dont need them in the groups. Only use a big enough MaxDist for the groups.

Also, You could actually have all your obj:s in teh same group (str0).
E.g. like this:



group str0
   obj rect0
   obj rect1
   obj disk1
   obj rect2
   obj disk2



If you have exactly same polygons in rect1 and rect2, you could instead let the rect1 polygons ALSO be visible together with rect2 polygons.

rect1 max=3000  (no min definition)
rect2 min=800 max=3000


  BlauKreuz - Lentolaivue 34      


Offline BlauK

  • Platinum Member
  • ******
  • Posts: 5091
      • http://www.virtualpilots.fi/LLv34/
Object Disappearing
« Reply #5 on: December 10, 2006, 10:17:33 AM »
Another thing.
Your disk objects, the tree trunks, each have 6 triangles at top and at bottom!!!

Delete all the bottom polygons, because they do not show anywhere, their normals even point downwards.
Also the 6 top triangles can be merged into one 6-sided polygon... or you could even make the trunk sides as triangles which meet sharply at the top.

Optimizing is a virtue ;)
As good looking as possible with as few polys as possible.


  BlauKreuz - Lentolaivue 34      


Offline croduh

  • Gold Member
  • *****
  • Posts: 2509
Object Disappearing
« Reply #6 on: December 10, 2006, 10:25:53 AM »
Thanks, that fixed it.
I made those winter trees quickly and didn't really care as my fps were good just with lods;)
Problem is , I made about 15 new house objects which all need to be checked trough and repaired;]