Sample code to load 3ds model and render in openGL

949 views
Skip to first unread message

srimalj

unread,
Jan 20, 2010, 5:50:44 AM1/20/10
to lib3ds
Hi

Thanks for the lovely library. I've played around with 3dsdump.. and
it seems very informative.

I'm planning on using 3dslib to load a 3d model into a C program that
will render it using openGL.

I'm not an expert programmer and couldn't really make out how to do
this by looking at the API doc (which was in the old project site)

Could you please include some sample code that would use 3dslib to
load a 3ds model object and get its verteces, faces , face colors etc
to render it in openGL .

Many thanks

Srimal.

Jan Eric

unread,
Jan 20, 2010, 5:55:50 AM1/20/10
to lib3ds
lib3ds version 2 contains new examples: examples/3ds2obj (reading) and
examples/cube.c (writing)
-- Jan Eric

Fabio Perfetti

unread,
Jan 27, 2010, 5:56:26 PM1/27/10
to lib3ds
Hi, thanks for the library but i need a tutorial for use it. The
example don't compile!
sorry for my bad english

Jan Eric Kyprianidis

unread,
Jan 28, 2010, 6:09:28 PM1/28/10
to lib...@googlegroups.com
Can you please submit a bug report at http://code.google.com/p/lib3ds/. Thanks!
Reply all
Reply to author
Forward
0 new messages