(Code updated on Feb 14th 2005)3ds Model Viewer has a set of classes that makes possible to load a 3ds file and to display it on a window using OpenGL. You walk through the 3D world using various controls. (Have Fun and DONT FORGET TO VOTE)
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come
out every day, so no prevention program can catch 100% of them. For your own safety, please:
Re-scan downloaded files using your personal virus checker before using it.
NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
If you don't have a virus scanner, you can get one at many places on the net
Terms of Agreement:
By using this code, you agree to the following terms...
You may use
this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this code from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
Sorry for my mistake. I didn't included animation.h header file earlier. Now I've added it. Check the new one. At present the animation content in the 3ds file cannot be played. I'm just working on it. So intially I failed to include it. I placed the file in my include directory so I had no problems. Now it works fine. Check it out. (If this comment was disrespectful, please report it.)
glut.h is the graphics library utility toolkit that is freely avilable over the net. It can be found at "http://www.xmission.com/~nate/glut.html". It has a header file which has to be placed in header files dir, the lib file in the lib diretory and a dll which will be hidden must be placed in the c:\windows\system dir. Then I think you can continue without any problem. That's it. Please check this and tell me about "3ds Model Viewer". (If this comment was disrespectful, please report it.)
park.3ds is just any .3ds file. you can use any .3ds file you like. Most 3D animation softwares provide options to export to .3ds file format(3DS MAX for eg.). (If this comment was disrespectful, please report it.)
3/10/2004 7:25:59 PM:
ok .. i make everything and when i start program and choose *.3ds file ... I see Only black screen. Why? (If this comment was disrespectful, please report it.)
You opened a .3ds file but see nothing, its because the object is displayed some where in the world and not in front of the camera. To see the object try navigating through the world. (If this comment was disrespectful, please report it.)
5/23/2004 2:39:12 PM:
Raj this is fantastic piece of code. I needed it badly for my game related work. You saved lot of my time. thanks buddy. (If this comment was disrespectful, please report it.)
Yes the basic work is from gametutorials. I learnt most of the stuff from there and gamedev. In addition i've tried to add animation in it, and added the code but didn't included in the project as I was in the developing stage. (If this comment was disrespectful, please report it.)
10/3/2004 1:16:48 PM:
I just downloaded the source, and... have to play the animation? (If this comment was disrespectful, please report it.)
10/5/2004 3:12:36 AM:
Nobady's listening :((( (If this comment was disrespectful, please report it.)
Sorry ya. Its late. The animation work is not complete. And i'm not working in it right now. But a new updated version of the code is added. Take a look... (If this comment was disrespectful, please report it.)
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular code, please
click here instead.)