SmaTheGreek
08-27-2006, 04:08 PM
I am programming with directx 8 in visual basic 6.However when I export an object from blender to the .x format it does not appear in my application when it renders.This happens with all objects except from the cube.Also when I am trying to load suzzane , I get an error message(this does not happen with the rest of the meshes)
Here is the code I use in visual basic 6 to load the object.
Set Obj.Mesh = d3dx.LoadMeshFromX("c:\1.x", D3DXMESH_MANAGED, d3ddevice, Nothing, buf, 1)
mesh is a D3DXMesh variable
d3ddevice is a Direct3DDevice8 variable
buf is a D3DXBuffer
Here is the code I use in visual basic 6 to load the object.
Set Obj.Mesh = d3dx.LoadMeshFromX("c:\1.x", D3DXMESH_MANAGED, d3ddevice, Nothing, buf, 1)
mesh is a D3DXMesh variable
d3ddevice is a Direct3DDevice8 variable
buf is a D3DXBuffer
