Fbx with DirectX 9 problem

Started by
5 comments, last by Alessio1989 10 years, 6 months ago
Ive included the sdk include paths to the directories
#include <d3d9.h>
#include <fbxsdk.h>
class Mesh
{
private:
LPDIRECT3DVERTEXBUFFER9 vertex_buffer;
LPDIRECT3DINDEXBUFFER9 index_buffer;
unsigned int vertex_count;
unsigned int face_count;
public:
void Create ( KFbxMesh *mesh, IDirect3DDevice9 *device );
void Render ( IDirect3DDevice9 *device );
};
1> stdafx.cpp
1> dx9.fbx.cpp
1>c:\users\pc-x64\documents\visual studio 2010\projects\dx9.fbx\dx9.fbx\mesh.h(14): error C2061: syntax error : identifier 'KFbxMesh'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.82
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

:)
Advertisement

First-off you shouldn’t be working with the FBX SDK from within your actual game engine. The Autodesk® FBX® file format is an interchange format, meaning not designed for use in games. You should be converting it to your own format via some custom tool.

Secondly if you have the latest version it is FbxMesh, not KFbxMesh.

L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

are you saying i should parse the .fbx and then write out the data to my own format and then load that file?

:)

I am saying that.

L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

Or use Assimp - the official release doesn't have FBX support yet, but support is there in their git repository (and works well from what I hear)

I actaully think md5 is a nice format to work with, the only problem is i can only export 1 animation so how would i make it handle more on the same model without glitchs or looking like a mess :)

:)

You can also use DirectXTK to convert .fbx models into .CMO or the old .SDKMESH file format.

http://directxtk.codeplex.com/

http://directxtk.codeplex.com/wikipage?title=Model&referringTitle=DirectXTK

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

This topic is closed to new replies.

Advertisement