Hi all,
      first let me thank you for a great tool :)
And now to my question, I started work last week using your libaries, all was 
great, got it to load a model,light it,put on materials and textures.
However my system was slow, so I got a new system with nvdia graphics, loaded 
the brand new debian etch, gnome-core, sdl1.2 sdl mixer, sdl image and lib3ds.
The problem is when I went to run my code I just got a blank screen, I tested 
this by spinning a opengl cube, this worked fine. So I used some prints to try 
to find out what is happerning
in my model loader I used

/**********************************************/

file=lib3ds_file_load(filename);

if ( ! file ) 

{

printf("\n Loading 3DS file failed.\n");

exit(1);

}

printf("Name %s \n",file->name);

/**********************************************/

On every model I tied this either printed nothing ie name   ,or  name MAXSCENE, 
I thought it should print the model name?

However when I try to load the textures this appears to work

/**********************************************/

for (material = file->materials; material; material = material->next)

{ 

texturemap=&material->texture1_map;

TestLoadTexture(texturemap->name); 

}

DisplayMaterialList();

/*********************************************/

will show

name EARTH.BMP texture id 1 x 512 y 512 etc

But when I load in my vectors they are shown as xyz all zeroes

that is

/**********************************************/

glBegin(GL_TRIANGLES);

for ( i = 0; i < 3; i++) 

{ 



glTexCoord2f (mesh->texelL [f->points[i]][0],mesh->texelL [f->points[i]][1]);

glVertex3f (mesh->pointL [f->points[i]].pos[0],

mesh->pointL [f->points[i]].pos[1],

mesh->pointL [f->points[i]].pos[2]);


printf("x %f y %f z %f",mesh->pointL [f->points[i]].pos[0],

mesh->pointL [f->points[i]].pos[1],

mesh->pointL [f->points[i]].pos[2]);

}

glEnd();

/************************************************/

shows 

x 0.0 y 0.0 z 0.0

for every point, I suspect this is the reason nothing is drawn rather than the 
name missing?

When I install lib3ds configure, make and make install all appeared to go fine, 
however player has not produced an executable?

Can anyone advise me? If needed I'll post my whole model loader code or 
configure out put, Thanks in advace :) 




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to