3dgeo-heidelberg / helios

http://uni-heidelberg.de/helios
Other
194 stars 44 forks source link

Loading obj files failure #467

Closed suptimq closed 3 months ago

suptimq commented 3 months ago

Hi, I have trees that are dis-assembled into organ-level obj files, such as trunk.obj, branch1.obj, ..., branch20.obj. These obj files were offset already and in the right position. Now I would like to load them and run the simulation. However, it seems like a bunch of obj files (not all of them) cannot be loaded correctly due to the onGround parameter? I played around with the parameter (set to 0, -1, and 1) but none of those worked though.

Scene::doForceOnGround skipped part "39"
Its forceOnGround attribute was 0
Scene::doForceOnGround skipped part "64"
Its forceOnGround attribute was 0
Scene::doForceOnGround skipped part "0"
Its forceOnGround attribute was 0
Scene::doForceOnGround skipped part "20"
Its forceOnGround attribute was 0
Scene::doForceOnGround skipped part "289"

This is how I load them

        <part id="{obj_counter}">
            <filter type="objloader">
                <param type="string" key="filepath" value="{obj_file_path}"/>
                <param type="string" key="up" value="z" />
            </filter>
            <filter type="translate">
                <param type="integer" key="onGround" value="0" />
                <param type="vec3" key="offset" value="0;0;0" /> 
            </filter>
        </part>