Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 11 Mar 2013
Offline Last Active May 08 2013 06:50 PM

Topics I've Started

Loading a model into OpenGL

19 March 2013 - 11:38 PM

I want to take a model from 3DS MAX and load it into an OpenGL project.


How can this be done?


I just can't find much resources for it but it seems like such a vital part of video games programming. Surely people don't make all their models in the OpenGL code.


The only thing I've found is lib3ds, which I can only find one tutorial for.


I also found this decade old tutorial on NeHe




Surely there is a more recent way of doing this?


Thanks in advance


19 March 2013 - 11:07 PM

Hi I am trying to load a 3ds model into OpenGL. I did some research and found that lib3ds is a popular solution.


I read this tutorial on how to use it, which wasn't too hard


but after downloading the zip folder and unzipping I have no idea how to install it.


I've never really installed a library before, is there a generic tutorial on how to do this?


I am using code blocks.


Is lib3ds is a good solution for this?


If so could I get some instructions for installing lib3ds into codeblocks.



Starting OpenGL

11 March 2013 - 11:39 PM

Hi I'm starting out learning OpenGL from the book "Beginning OpenGL Game programming".


I am using Code blocks as an IDE and Windows 7 as an operating system. I've followed the steps in this tutorial to setup Code blocks mingw with GLUT.




When I take the source code from chapter 2 on the CD and I copy and paste it into my IDE I get the attached print screen as an error. 


The print screen indicates that the SetPixelFormat() method cannot be referenced. I did some research and it appears that the SetPixelFormat() method is under the WGL reference




and I infer that GLUT installs WGL for me. So why can't I reference SetPixelFormat()? What am I missing? Do I have to do some kind of linking first?


Note - I was able to successfully copy, paste, build and run the source code of chapter 1 without any problems.