You are not logged in.

#1 2010-02-25 09:42:21

bonm014
Member

Object Import

If you take a look at the revolutionengine.tk, thay can load a object into there library and render it. The hole object is imported as a mesh and then you can render this object on to the screen.

Perhaps it is a valued addon to your library.

Offline

 

#2 2010-02-26 18:06:32

Crayon
Bad Mother Fucker

Re: Object Import

We already started to work on something like this. If you are curious you could look at this branch of the repository: http://code.google.com/p/grrlib/source/ … es/3D_test

New functions are:

Code:

void Draw3dObj(GRRLIB_Model* model);
GRRLIB_Model* GRRLIB_ReadOBJ(char* filename);
GRRLIB_Model* GRRLIB_ReadOBJMem(const char *buffer, u32 size);
void GRRLIB_DeleteObj(GRRLIB_Model* model);
void GRRLIB_VertexNormals(GRRLIB_Model* model, f32 angle);
void GRRLIB_FacetNormals(GRRLIB_Model* model);
void GRRLIB_LinearTexture(GRRLIB_Model* model);
void GRRLIB_SpheremapTexture(GRRLIB_Model* model);

Right now the example does not work because light functions have been taken out, but they will soon come back.

Remember that this code is in development.

Offline

 

Board footer

Powered by FluxBB