Hello
When a thingmeshfactory has LOD (level of detail) several problems
appear:
- Performance problem: When one of our big models switches to the
high-polygon-version, one has to wait for about 30 seconds until the
walkthrough continues. (This problem appears just for the first time
an instance of a model switches, afterwards it goes much quicker.)
- [CEL-Bug] Collision-Detection-Problem: In CEL the camera (3rd
person view, lara, ...) does not have collision detection for these
models. (but the actor has)
In the old days (crystalspace version 30th November, 2004) the
thingmesh-factories with LOD had no collision-detection at all, which
was not such a big problem, because we defined the collision-
detection otherwise. And in those days the performance problem while
switching from one LOD to the next did not exist.
Example of a thingmeshfactory with LOD:
<meshfact name="_f_prison_0">
<nullmesh><min x="-40.9154" y="-6.0" z="-30.7276" /><max
x="40.9153" y="6.0" z="30.7276" /></nullmesh>
<plugin>thingFact</plugin>
<priority>object</priority>
<zuse />
<staticlod><distance d0="200" d1="195" /></staticlod>
<meshfact name="_n_prison_low">
<lodlevel>0</lodlevel>
<plugin>thingFact</plugin>
<paramsfile>_n_prison_low</paramsfile>
</meshfact>
<meshfact>
<lodlevel>1</lodlevel>
<plugin>thingFact</plugin>
<paramsfile>_f_prison_0</paramsfile>
</meshfact>
</meshfact>
Summary:
In our project, we do have a lot of these thingmeshfactories with LOD
(its a huge world).
We need urgently to fix this performance problem that appears while
switching from one LOD to another for the first time.
Do you have any advices how to do that?
I already tried takin out the collision-detection for those models in
the worldfile (polygon by polygon) but with no success regarding the
performance. I havent found a possibility to suppress collision
detection for the whole model at once.
maybe it hasnt anything to do with collision-detection at all,
difficult to say...
kind regards
mathias
My system:
Windows XP
intel pentium / 3GB RAM
MinGW/mysys gcc/g++
crystalspace svn 25885
nvidia 6800 go / 256MB VRAM
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]