Jump to content
  • Advertisement
Sign in to follow this  
Anddos

Fbx with DirectX 9 problem

This topic is 1731 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

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

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)

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!