Vertex programs

Started by
2 comments, last by MessageBox 20 years, 6 months ago
I want to start using vertex programs in OpenGL. I was wondering what the difference is between using GL_VERTEX_STATE_PROGRAM_NV and GL_VERTEX_PROGRAM_NV in glLoadProgram(......). And is there a way to query the maximum instructions, parameters, etc.. when using _NV extensions. ARB has GL_MAX_INSTRUCTIONS_ARB, etc... There doesn''t seem to be an execute program function for the ARB version so how do you execute a program using ARB extensions.
Advertisement
Don''t use VN_VERTEX_PROGRAM... use ARB_VERTEX_PROGRAM. It''s supported on more cards and alos is a bit more "user friendly".

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
Yeah, I''m after doing a bit more reading up and it seems ARB is the way to go.
What''s the equivalent of the glExectureProgramNV()
function with the ARB
quote:Original post by MessageBox
Yeah, I''m after doing a bit more reading up and it seems ARB is the way to go.
What''s the equivalent of the glExectureProgramNV()
function with the ARB

There is none. The ARB version doesn''t let you manually invoke vertex program. Actually, the whole concept of vertex state programs was removed (because it was basically useless). Just as in the NV version, your vertex program will be automatically invoked by the hardware by a write on attribute register 0.

This topic is closed to new replies.

Advertisement