Horde3D
http://horde3d.org/forums/

model export, phong shader
http://horde3d.org/forums/viewtopic.php?f=2&t=976
Page 1 of 1

Author:  PuG [ 08.10.2009, 09:00 ]
Post subject:  model export, phong shader

Good morning, bit of an odd problem with smoothing groups inside Horde. It appears the Collada to Geo exporter is struggling to maintain the groups on export, however the DAE checks out fine.

The scene has only three defined surfaces, two are set to 80 degrees smoothing angle and the third to 40. When I export with all the geometry as one (global object) its failing to take into account and doesn't apply any mesh smoothing what so ever. If I split the model into different mesh layers before export, it does work, however I then get problems with UV coordinates being out of alignment.

Image

As you can see on the scene, the edges of the wall should be smoothed, along with the garden path, but when rendered in H3d their not.

I can't, and don't want to have to split the mesh up into their own GEO files as its not practical.

Any suggestions?

Author:  marciano [ 10.10.2009, 20:52 ]
Post subject:  Re: model export, phong shader

Did you enable the export of normals to the collada file?

Collada does not support smoothing groups, so ColladaConv tries to derive these from the vertex normals.

Author:  PuG [ 11.10.2009, 09:18 ]
Post subject:  Re: model export, phong shader

Yep, vertex normals are being exported. If I remove everything apart from one item then smoothing will work, I suspect its not liking the fact the meshes airn't attached to each other?

(the wall, garden ground and walk way are not merged into one continuous model)

Author:  marciano [ 17.10.2009, 10:57 ]
Post subject:  Re: model export, phong shader

If you have a small sample to reproduce the problem, this will certainly help.

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