Skip to main content
gamedev.net
🔒 Locked

Vertex programs

Started by MessageBox Oct 12, 2003 at 11:53 AM 2 replies 400+ views
Original Post
MessageBox
MessageBox
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.
_DarkWIng_
_DarkWIng_
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.
MessageBox
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
Yann L
Yann L
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.