This is not an OpenGL question. OpenGL is for graphics - it draws stuff.
http://www.gamedev.net/forum/20-math-and-physics/ would be a more appropriate place to ask ... or google for simple...
Type: Posts; User: tanzanite
This is not an OpenGL question. OpenGL is for graphics - it draws stuff.
http://www.gamedev.net/forum/20-math-and-physics/ would be a more appropriate place to ask ... or google for simple...
Your problem.
Not seeing an "help wanted" section is not an excuse to post in wrong forum. If a site does not have a forum section relevant to you then one would expect that you find some other...
Go there: http://www.gamedev.net/classifieds
What?
.
That is incorrect. It should be something like:
// (0,0) is bottom left corner of texel. As we use nearest filtering - we want to sample at the relevant texel centers.
vec2 tc_tmp = texcoord *...
The reference cards should suffice, like: http://www.khronos.org/files/opengl4-quick-reference-card.pdf
Although, OGL 2 and below are too ancient for anyone to care - the API specification is all...
Tried? As-in, did not in original attempt? OpenGL and Direct3D different here - be sure you do it the OpenGL way (well, the default way for OpenGL).
Just in case reference: (0,0) is where all the...
That was his point (although a fairly useless one, aka "the problem is NOT this"). The common mistake is doing it in the wrong order - which OP did not as StefanG noted.
Forgot to load the function pointers?
There are quite a lot of extension to query (done by whatever wrapper you use). Not familiar with glslDevil (it excels at crashing instantly on my PC), but there probably is a call you can make in...
You are missing headers and probably are not loading any of the functions you attempt to use, read:
http://www.opengl.org/wiki/Getting_Started#Getting_Functions
I recommend you use a loading...
Yes. For clarity i would write it out tho (ie. add the location explicitly):
layout(location=0) out vec4 someMeaningfulName;
That is not a loop.
Depends on glsl version - for nowadays use whatever you wish.
Again, depends on glsl version. There used to be some named outputs - but not anymore. You can set the output...
This is not really a OpenGL question (you seek to programmatically create a stair mesh/model suitable for drawing in 3D):
* for generating the mesh data etc - a more appropriate forum would be for...
If it is not used then the compiler will remove it. I seriously doubt any of the fragments are discarded ... like i said - check for NaNs (rgba8 can not represent NaNs, so they will all be converted...
You define a clear color but never actually clear the screen. Add a "glClear(GL_COLOR_BUFFER_BIT)" somewhere.
edit:
//Fill the screen black
glBegin( GL_QUADS );
...
Stop it!
Never just "Bump" - add information / what you have tried in the mean time etc.
PS. NaN * whatever + whatever = NaN, => Check for NaNs.
PS. OpenGl ignores invalid commands and i do...
"undefined behavior" means the behavior is undefined! Expect it to burn your house down etc ("undefined behavior" is a superset of all imaginable and unimaginable behaviors). "illegal" means is is...
Let's not do that. It is hardware specific detail and not something you need to know.
PS. it is a safe bet that no relevant hardware even has any such specialization - making your question rather...
Direct your complaints towards MS-Windows. The ass-backwardness of wgl* is because Windows is stuck with OGL 1.4 (or less for some OS versions).
1) No, as i found out by accident a few months ago. For example 0.5 as the third texture coordinate interpolates the 0th and 1st texture slice in the 2D_ARRAY texture. Not sure whether the behavior...
Assuming (can not think of any other way to see it that would make any sense) the questions is to gauge the priority (with fairly ridiculous error margins) of adding such an option - i have to say no...
Encountered a password recovery stock questions: "Is water wet or dry" - but it did not accept any answer i could come up with. Luckily, refreshing the page rerolled the question and i was able to...
GL_R8/GL_RED?
If the format does not need to be renderable then you might be able to use some packed formats (if your data allows. can not remember the names, but there was one for 1/2 channels...
Really? Good to know, would have not expected that :( (latest release seems to be 02/16/10 and is not available on Win + GLSL 1.2 max indeed). Would explain why it consistently crashed way beck then...