Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 06:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 27.01.2012, 06:42 
Offline

Joined: 14.07.2011, 02:18
Posts: 20
h3dFindNodes and h3dGetNodeFindResult seem to be failing when there is a "<Reference ...><Attachment .../></Reference>" in the scenegraph. h3dFindNodes returns the correct number (12, in my case) and everything is rendered, but h3dGetNodeFindResults returns only '0'.

Scene With Attachments:
Code:
<!DOCTYPE HordeSceneGraph>
<Group name="TestScene">
  <Camera pipeline="pipelines/hdr.pipeline.xml" topPlane="0.0414214" bottomPlane="-0.0414214" tx="0.0" ty="20" tz="12.0" rx="-20" leftPlane="-0.0552285" farPlane="1000" name="Camera" rightPlane="0.0552285" nearPlane="0.1"><Attachment class="CameraPlayer" /></Camera>
    <Reference tx="0" sx="40" ty="4.0798" sy="40" tz="2.60307" sceneGraph="models/skybox/skybox.scene.xml" sz="40" name="sky"/>
    <Reference ry="45" tx="1.24836" sx="4.14214" ty="5" sy="4.14214" tz="-13.8101" sceneGraph="models/box/box.scene.xml" sz="0.5" name="Wall"><Attachment class="StaticObject" /></Reference>
    <Light sy="0.999975" lightingContext="LIGHTING" sz="0.999972" col_B="1" name="TheSun" col_G="1" tx="-13.0191" ty="22.0983" shadowContext="SHADOWMAP" tz="-16.9454" shadowMapBias=".01" rx="-44.4" ry="-137" shadowMapCount="1" rz="0" col_R="1" radius="100" fov="180" shadowSplitLambda="0" sx="0.999972"><Attachment class="Light" /></Light>
    <Reference tx="0" sx="20" ty="0" sy="1" tz="0" sceneGraph="models/box/box.scene.xml" sz="20" name="Floor"><Attachment class="StaticObject" /></Reference>
    <Reference tx="1.24836" sx="4.14214" ty="5" sy="4.14214" tz="13.8101" sceneGraph="models/box/box.scene.xml" sz="0.5" name="Wall2"><Attachment class="StaticObject" /></Reference>
</Group>

Code:
0   Starting Engine
1   Loading Level scenes/Test.scene.xml
2   Checking RootNode for a class (id = 1)
3   Checking TestScene for a class (id = 2)
4   Checking Camera for a class (id = 3)
5   Found class of CameraPlayer
6   Spawned CameraPlayer
7   Checking sky for a class (id = 4)
8   Checking for a class (id = 5)
9   Checking Wall for a class (id = 6)
10   Found class of StaticObject
11   Spawned StaticObject
12   Checking for a class (id = 0)
13   Checking for a class (id = 0)
14   Checking for a class (id = 0)
15   Checking for a class (id = 0)
16   Checking for a class (id = 0)
17   Checking for a class (id = 0)
18   Entering main loop...


Scene Without Attachments On References:
Code:
<!DOCTYPE HordeSceneGraph>
<Group name="TestScene">
  <Camera pipeline="pipelines/hdr.pipeline.xml" topPlane="0.0414214" bottomPlane="-0.0414214" tx="0.0" ty="20" tz="12.0" rx="-20" leftPlane="-0.0552285" farPlane="1000" name="Camera" rightPlane="0.0552285" nearPlane="0.1"><Attachment class="CameraPlayer" /></Camera>
    <Reference tx="0" sx="40" ty="4.0798" sy="40" tz="2.60307" sceneGraph="models/skybox/skybox.scene.xml" sz="40" name="sky"/>
    <Reference ry="45" tx="1.24836" sx="4.14214" ty="5" sy="4.14214" tz="-13.8101" sceneGraph="models/box/box.scene.xml" sz="0.5" name="Wall"></Reference>
    <Light sy="0.999975" lightingContext="LIGHTING" sz="0.999972" col_B="1" name="TheSun" col_G="1" tx="-13.0191" ty="22.0983" shadowContext="SHADOWMAP" tz="-16.9454" shadowMapBias=".01" rx="-44.4" ry="-137" shadowMapCount="1" rz="0" col_R="1" radius="100" fov="180" shadowSplitLambda="0" sx="0.999972"><Attachment class="Light" /></Light>
    <Reference tx="0" sx="20" ty="0" sy="1" tz="0" sceneGraph="models/box/box.scene.xml" sz="20" name="Floor"></Reference>
    <Reference tx="1.24836" sx="4.14214" ty="5" sy="4.14214" tz="13.8101" sceneGraph="models/box/box.scene.xml" sz="0.5" name="Wall2"></Reference>
</Group>

Code:
0   Starting Engine
1   Loading Level scenes/Test.scene.xml
2   Checking RootNode for a class (id = 1)
3   Checking TestScene for a class (id = 2)
4   Checking Camera for a class (id = 3)
5   Found class of CameraPlayer
6   Spawned CameraPlayer
7   Checking sky for a class (id = 4)
8   Checking for a class (id = 5)
9   Checking Wall for a class (id = 6)
10   Checking for a class (id = 7)
11   Checking TheSun for a class (id = 8)
12   Found class of Light
13   Checking Floor for a class (id = 9)
14   Checking for a class (id = 10)
15   Checking Wall2 for a class (id = 11)
16   Checking for a class (id = 12)
17   Entering main loop...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group