I am having a strange issue where calling glDrawElements appears to be blocking; stalling the CPU for a moment while it waits for the function to return. I placed a system timer immediately before...
Type: Posts; User: mikau
I am having a strange issue where calling glDrawElements appears to be blocking; stalling the CPU for a moment while it waits for the function to return. I placed a system timer immediately before...
Okay! But then what happens if I say glVertex4f(1,1,1,0.5)? That modifies the w coordinate directly, by my understanding, but even when using gluPerspective, this results in scaling the point by 2...
Well that makes sense but then why is it that if I use:
glVertex4f(1,1,1,0.5);
and the projection matrix generated by gluPerspective()
that the resulting point gets scaled by 2?
I am aware that the normalizing comes after the projection matrix, but my point is it will divide by the w component which in this case is (-z) which does not depend on w, and so x and y are not...
I am a little confused by how the matrix generated by gluPerspective accounts for the 'w' component of a given vertex.
Looking up the matrix generated by gluPerspective online, gives me that the...
what value is stored in the stencil buffer before its modified? I googled it and some say its 0, while others say its 1.
I'm pretty sure the best way to do this is to create a camera object that keeps track of direction and orientation, and provides all the functionality for moving, based on its present orientation....
so your cube objects contain fields: left, right, top, bottom. Just one question, do their coordinates range from 0 to 1?
Yo may already know this but texture coordinates range from (0,0) to...
Yes I believe all this does is project a texture (a fish-eye photograph) onto an object.
the object appears as a shiny object moving about in a stationary room. I see different relections based on...
I have a weird problem when posting messages on this site. Whenever I type something in, the scroll bar for the message body textfield automatically jumps to the top of the thread. Effectively I...
I haven't studied environment mapping in detail, my book discusses it briefly, and says that you need to generate new texture coordinates as the object moves, to move the reflections along with it....
I dont know how different 2010 is, but let me explain how this is done in Visual C++ express 2008.
At the top of the editor is a button that says 'Project', clicking that brings down a list of...
well thats pretty easy.. I was thinking about this Logitech gamepad: http://www.amazon.com/Logitech-Dual-Action-Game-Pad/dp/B0000ALFCI
so are those functions easy to use? I didn't know they were...
I hope this isn't too off topic..
I'm just begining to realize that my openGL game would be better suited for a gaming controller than a mouse and keyboard. But I don't know if they're difficult...
I really dont want to do anything super sophisticated, Brolingstanz. I don't care if its not the latest and greatest version of OpenGL or the best hardware, I just want something reasonable so I can...
is it a 2d square in a 2d world? or a 2d square in a 3d world?
either way.. you would need to consider both your modelview transformation matrix, and your perspective transformation matrix.
You need to keep in mind that OpenGL is a graphics library, not a math library. The rotation command only multiplies the current matrix by the rotation matrix, so that when you draw a new object, the...
Ok I found a sticker that says 'rev A02' and its a Dell. It appears to be a Dell Rev A02 motherboard.
Since my laptop graphics card sucks, I'm thinking about buying a graphics card for my desktop computer for use with graphics programming. My family had this desktop put together by a local computer...
Whyz that, Zbuffer?
Hi, Stephan, thanks for the info. I tested that statement and the result was "Intel". Is that what we'd like to see?
yeah.. too bad I wasn't planning to do openGL programming when I bought my laptop! >.<
So basically its best suited for DirectX eh..
I'm using a Dell Inspiron laptop with an integrated graphics accelerator, and I'm having performance issues with fairly simple OpenGL applications. (See my post here...
Hi Frodak!
Nah, I'm using WGL and handling the windowing myself. Marshats just posted a few glut programs to try different ideas. The issues are the same on both windows and glut.
I compiled and executed your code. It dropped to 13 fps.
My only other idea is to try running in fullscreen mode.