• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# OpenGL OpenGL\GLUT

## Recommended Posts

I''ve recently purchased a book, OpenGL SuperBible, and the author uses the GLUT library for OpenGL. The cd that came with the book tells how to configure VC++ to compile it, but trouble always arises when my programs try to link, even the simple ones! If anyone out there uses GLUT could you tell me me how to install GLUT in my system so that it works? Thanks.

##### Share on other sites
There are things you have to add to the project I believe they are glut.lib gl.lib glu.lib. Sorry if that didn''t help.

##### Share on other sites
You should have glut32.lib, glu32.lib and opengl32.lib in the compilers lib directory. I guess the headers are OK since you can compile. You can put glut32.dll in windows\system so the programs finds it.

The author has a web page with errata and other good stuff.

##### Share on other sites
I also purchased the OpenGL SuperBible and also couldn''t link to glut32.lib without getting a wacky error telling me that the file wasn''t there or the disk was full (neither of which was the case). I suspect we got a bunk version of it...

OGL SuperBible comes with Mesa 3.0 on the CD... on the CD, goto \tools\MESA 3.0\lib (at least I think thats the path... you can find it easy) and copy MesaGLUT.lib into your libraries path for your compiler... That''s what I did, and all I had to do was link to mesaglut.lib instead of glut32.lib and it worked fine. That ONE link library was all I changed to make everything work.

I suspect if you go to the OGL official site you can download another version of glut32.lib that will more than likely work.

##### Share on other sites
do u have vc5 by any chance if so recompile the glut libs and use those instead of the libs u have now

http://members.xoom.com/myBollux

##### Share on other sites
Sorry, I''ve already tried including all of those libs and it still doesnt work. MesaGLUT.lib doesnt work either. zedzeek, how do you recompile libraries? I havent tried recompiling libraries before. I am using VC 6.0 btw

##### Share on other sites
it works with vc6
http://www.xmission.com/%7Enate/glut.html

http://members.xoom.com/myBollux

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627680
• Total Posts
2978610
• ### Similar Content

• Both functions are available since 3.0, and I'm currently using glMapBuffer(), which works fine.
But, I was wondering if anyone has experienced advantage in using glMapBufferRange(), which allows to specify the range of the mapped buffer. Could this be only a safety measure or does it improve performance?
Note: I'm not asking about glBufferSubData()/glBufferData. Those two are irrelevant in this case.
• By xhcao
Before using void glBindImageTexture(    GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format), does need to make sure that texture is completeness.
• By cebugdev
hi guys,
are there any books, link online or any other resources that discusses on how to build special effects such as magic, lightning, etc. in OpenGL? i mean, yeah most of them are using particles but im looking for resources specifically on how to manipulate the particles to look like an effect that can be use for games,. i did fire particle before, and I want to learn how to do the other 'magic' as well.
Like are there one book or link(cant find in google) that atleast featured how to make different particle effects in OpenGL (or DirectX)? If there is no one stop shop for it, maybe ill just look for some tips on how to make a particle engine that is flexible enough to enable me to design different effects/magic
let me know if you guys have recommendations.
• By dud3
How do we rotate the camera around x axis 360 degrees, without having the strange effect as in my video below?
Mine behaves exactly the same way spherical coordinates would, I'm using euler angles.
Tried googling, but couldn't find a proper answer, guessing I don't know what exactly to google for, googled 'rotate 360 around x axis', got no proper answers.

References:
Code: https://pastebin.com/Hcshj3FQ
The video shows the difference between blender and my rotation:

• By Defend
I've had a Google around for this but haven't yet found some solid advice. There is a lot of "it depends", but I'm not sure on what.
My question is what's a good rule of thumb to follow when it comes to creating/using VBOs & VAOs? As in, when should I use multiple or when should I not? My understanding so far is that if I need a new VBO, then I need a new VAO. So when it comes to rendering multiple objects I can either:
* make lots of VAO/VBO pairs and flip through them to render different objects, or
* make one big VBO and jump around its memory to render different objects.
I also understand that if I need to render objects with different vertex attributes, then a new VAO is necessary in this case.
If that "it depends" really is quite variable, what's best for a beginner with OpenGL, assuming that better approaches can be learnt later with better understanding?

• 13
• 12
• 10
• 12
• 22