Archived

This topic is now archived and is closed to further replies.

MessageBox

Vertex programs

Recommended Posts

MessageBox    109
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.

Share this post


Link to post
Share on other sites
_DarkWIng_    602
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.

Share this post


Link to post
Share on other sites
Yann L    1802
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.

Share this post


Link to post
Share on other sites