Horde3D
http://www.horde3d.org/forums/

Content from 3dsMax
http://www.horde3d.org/forums/viewtopic.php?f=2&t=328
Page 1 of 1

Author:  roarflolo [ 15.05.2008, 05:39 ]
Post subject:  Content from 3dsMax

I can't get my content to show up.

I modified the Crowd sample to load up my exported scene but I just can't see it. I did the following:

1. Created a teapot in 3dsmax
2. Exported using the latest FCollada exporter to Horde3D\Binaries\Content\scene.dae
3. Drag-n-dropped Horde3D\Binaries\Content\scene.dae onto ColladaConv.exe, this produced scene.anim, scene.geo and scene.scene.xml in the same folder. This also produced a material file.
4. Load up my scene
ResHandle myScene = Horde3D::addResource( ResourceTypes::SceneGraph, "scene.scene.xml", 0 );
5. Add scene node
NodeHandle scene = Horde3D::addNodes( RootNode, myScene );
Horde3D::setNodeTransform( scene, 0, 0, 0, 0, 0, 0, 200, 200, 200 );
6. Tried different scales
7. Changed the material shader from skinning.shader.xml to standard.shader.xml

Nothing! :-)

What am I missing?

Author:  Volker [ 15.05.2008, 07:29 ]
Post subject:  Re: Content from 3dsMax

Are there some warnings or errors in the EngineLog.html file?

Author:  roarflolo [ 15.05.2008, 08:25 ]
Post subject:  Re: Content from 3dsMax

Yes! :oops:

I fixed those by moving the scene.anim, scene.geo and scene.scene.xml files into the models folder.

Now the teapot show up but it has the wrong texture... no warnings in the log (I've attached it, had to rar it because the forum won't take html attachments).

I'm using the layingrock.jpg from the Horde3D\Binaries\Content\textures folder. I've attached screenshots from Max and Horde3D.

Attachment:
in-max.jpg
in-max.jpg [ 34.2 KiB | Viewed 7655 times ]


Attachment:
in-engine.jpg
in-engine.jpg [ 32.06 KiB | Viewed 7655 times ]


Attachments:
EngineLog.rar [1.7 KiB]
Downloaded 596 times

Author:  roarflolo [ 15.05.2008, 08:34 ]
Post subject:  Re: Content from 3dsMax

Success!

The texture wasn't on the diffuse slot in the Max material... my mistake... :)

Author:  Volker [ 15.05.2008, 09:21 ]
Post subject:  Re: Content from 3dsMax

:-) Great!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/