I'm really disappointed of the work of the ARB. I was hoping for a clean start with a new API. But hey, OpenGL can still be extended with extensions. We should develop a new extension...
Type: Posts; User: Trenki
I'm really disappointed of the work of the ARB. I was hoping for a clean start with a new API. But hey, OpenGL can still be extended with extensions. We should develop a new extension...
(x = 0, y = 0) is the bottom left and (1, 1) is the top right corner in the OpenGL coordinate system. The first pixel you load is assigned the coordinate (0, 0). Each row gets an increasing y...
Instead of disabling the depth test you can try to simply clear the depth buffer.
[ www.trenki.net | vector_math (3d math library) | software renderer ]
I believe the GF6 series cards and probably also the GF7 cards do the clipping by user defined clipping planes in the fragment shader using the discard instruction. This would explain why there is no...
Vertex arrays are is the same as using VBOs just that VBOs are supposed to be more efficient since you don't always have to retransmit the vertex data to the card. To render to your model you do not...
There are the dFdx and dFdy functions in GLSL to get the derivative of some variables. There are a lot of cases in which the derivatives are undefined though e.g in some cases involving conditionals....
There is no reason you should experience any slow down with the SDL+OpenGL combination after initializing both properly.
[ www.trenki.net | vector_math (3d math library) | software renderer ]
Hi!
I would like if it is worth to learn Cg and its API when I already know GLSL and how to interface it with OpenGL.
I mean I know of some possible advantages:
multiple target profiles: for...
Your initial approach does not seem to wrong. Maybe you messed up somewhere.
But you could also try using gluProject and gluUnproject to get what you want. Basically you could take the the upper...
On current cards the fixed functionality will mostly be emulated via shaders internally. You can most likely get better performance with shaders when you tailor them to your specific need.
Yes,...
After attaching and linking the shaders objets into the program object they will be referenced by the program object, so you can delete the shader objects of you are not going to need them again.
...
CeGUI maybe.
[ www.trenki.net | vector_math (3d math library) | software renderer ]
Id's say it is invalid. you can't have samples in a struct as samplers always have to be uniforms which can't be in a struct either.
I used the GLSLValidate tool to verify correctnes. It is a good...
The OpenGL library is already included with your compiler, so you don't have to download anything! The <GL/gl.h> header file provides only declarations for OpenGL 1.1. If you even want to use newer...
Yes, GLSL programming is hell. The syntax is all good althoug I found out that array initializers are only available since version 1.2 which is bad since not all cards support GLSL 1.2.
In DirectX...
I suggest to use GLEW. It makes using OpenGL functionality beyond OpenGL extremly easy. All the functions and symbols are already defined, you can simply call your functions.
[ www.trenki.net |...
Look at glBufferSubData.
[ www.trenki.net | vector_math (3d math library) | software renderer ]
And, what is your problem? Don't expect anyone to just read all of the source without even knowing what the problem is. And for posting code you might want to use the appropriate tags, so the...
This looks very much like either your desktop is not 32 bit or your OpenGL context or you created Renderbuffer or RenderTexture have not 32 bit color. If you use a texture to render to you have to be...
AFAIK ATI uses the same open source parser for GLSL as the 3DLabs GLSLValitade tool. So if you can get your shaders to properly compile with GLSLValidate they should also work for ATI. AFAIK the only...
Set the texture paramters specifically those for the minification filter. The minification filter is normally set to use mipmaps but as you don't specify any the texture isn't complete. Set the...
glOrtho is typically used in CAD application or for 2D graphics, where this projection is useful.
glPerspective on the other hand create a perspective transformation where things further away will...
First of all omit the SDL_GL_SetAttribute calls (they are not needed; you will get some other defaults which may fit better than a 15bit color buffer with a 16bit depth buffer; you want 32 bit color...
Yes, the function name is missleading but AFAIK textures and any other objects will be shared for the contexts not just display lists. The also don't have to be "called" by the display list to be...
You can also rotate around an arbitrary axis with glRotate. Maybe this is enough for your purposes?
[ www.trenki.net | vector_math (3d math library) | software renderer ]