Skip to content

3D Studio Max 3DS model viewer with JPEG and BMP texture support.

License

Notifications You must be signed in to change notification settings

ferrellsl/3DSViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DSViewer

3D Studio Max 3DS model viewer

This code was originally written by Mark M. Lanning in the late 90's to view 3DS files. It originally had dependencies on GLAUX, libjpeg, GLUT32 and GLU. I have removed most of these dependencies because they have long since been deprecated. The only remaining dependencies are now freeglut and libjpeg. It was also a 32-bit app and I have compiled it for 64-bit versions of Windows. This code is highly portable and should compile on Linux and MacOS without issues provided the programmer links against MacOS or Linux versions of freeglut and libjpeg. This is a command line app which takes a single argument. To view a 3DS file, type: 3dsviewer followed by the name of the 3DS model that you want to view. I.e. 3dsviewer my_file.3ds

Texture files will be loaded automatically provided they have the same base name as the model. Both BMP and JPEG files are supported. I have included skull.3ds and skull.jpg as examples. The viewer will search for a JPEG or BMP texture file automatically upon loading a model, so there's no need to specify the texture file name. Alternatively, just drag-and-drop your 3DS file onto the 3DSViewer.exe file.

Pressing the space bar will toggle the animation. Pressing the V or v key will toggle mesh or textured mode. Pressing ESC or Q will quit the program.

There is a Visual Studio 2019 Solution file included. For coders too lazy to build libjpeg and freeglut, I have included those dependecies as zip files in the Dependencies folder of this repo.

image

image

image

image

image