Sign in to follow this  
Anddos

Fbx with DirectX 9 problem

Recommended Posts

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 ==========

 

Share this post


Link to post
Share on other sites

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

Edited by L. Spiro

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this