Horde3D
http://horde3d.org/forums/

Example on making a box in Blender and displaying it
http://horde3d.org/forums/viewtopic.php?f=2&t=557
Page 2 of 2

Author:  swiftcoder [ 02.02.2009, 19:50 ]
Post subject:  Re: Example on making a box in Blender and displaying it

Siavash wrote:
Could you explain it a bit more, then how to export and assign textures to models ?
Copy the texture manually into the right directory. The texture assignment should have come through correctly, although the path may be messed up (check the material.xml file).

Author:  Siavash [ 02.02.2009, 20:23 ]
Post subject:  Re: Example on making a box in Blender and displaying it

Then I must to edit material.xml and add something like this ? (<TexUnit>)
Code:
<Material>
   <Shader source="skinning.shader.xml" />

        <TexUnit unit="0" map="cube.png" />

   <Uniform name="Materialcol" a="0.8" b="0.8" c="0.8" d="1.0" />
</Material>
Thanks for help ;)

Author:  Volker [ 02.02.2009, 21:23 ]
Post subject:  Re: Example on making a box in Blender and displaying it

If there is a Materialcol uniform it means you don't have UV texture coordinates assigned to that mesh. In this case check your Blender model.

swiftcoder wrote:
You have to export the textures separately - I don't think any of the exporters handle this for you.

The Blender exporter should do this indeed ( if everything works as expected )

Author:  Siavash [ 03.02.2009, 05:21 ]
Post subject:  Re: Example on making a box in Blender and displaying it

I've selected some edges in Edit mode, then marked them seam and unwrapped them. I've exported the uv map in UV/Image Editor [using Save uv face layout script], then edited the .tga/.svg picture in gimp and saved .png image. Then I've imported the .png in UV/Image Editor and checked the TexFace in Materials panel. Now it's time to export the cube, but there isn't any textures in texture folder.

I've tried this by adding a simple image in Texture panel and exporter, exports that image successfully and places the image in texture folder and there isn't any Materialcol uniform again. But it fails to export the UV textures. or perhaps I'm wrong with some steps ?

Author:  Siavash [ 03.02.2009, 08:12 ]
Post subject:  Re: Example on making a box in Blender and displaying it

I've tried another sample from blender art magazine and exporter works correctly. I'm wrong with something, but any helps are welcome from blender guys :)

[SOLVED] FORG10 to load the texture in texture panel again and tell to the blender to use UV coordinates for texture, thanks for help :wink:

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