blender and .X

I have created some models in Blender and was wondering how to set the coords and render them in DX. I am using C#.
[116 byte] By [tmasboa] at [2008-1-28]
# 1
tmasboa wrote:
I have created some models in Blender and was wondering how to set the coords and render them in DX. I am using C#.

I'm not sure what you're asking for here? Are you wondering how to export from Blender to .x, how to load the .x into D3DX for rendering, or something else?

PaulBleisch at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 2
I think that he wanna know how export a blender file to .x! and I wanna know too :D
WilmarBastos at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 3
Wilmar Bastos wrote:
I think that he wanna know how export a blender file to .x! and I wanna know too :D

I believe there is an exporter for Blender that will export .X files. I don't use Blender, but this thread mentions using one of the X-File exporters.

I'd recommend exporting something from blender with the above exporter and loading the resulting X-file into dxviewer as a simple test. The source code to DXViewer ships in the latest DXSDK so that can give you an idea of how we load X-files.

PaulBleisch at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 4
Blender is awesome, especially for being open source!
I believe this link can help you:

http://projects.blender.org/projects/directxexporter/

Hope it helps!
~Ricky28269

Ricky28269 at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 5
I am also using C# and Blender for mesh development.

There is a new script out there for Blender that is suppose to fix DX export issues here: http://xoomer.virgilio.it/glabro1/python236.html . Now when you use the export to DX8 it will be formatted correctly. Another issue I found was object naming in Blender is not compatible with DirectX. Blender names successive objects with dot delimeters: Ex cylinder.001, cylinder.002 . You have to change those dots to underscores and you should be able to use the mesh in your app or at a minimum, view it in the DX Viewer.

Hattrick at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...