Jump to content
  • Advertisement

Archived

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

MessageBox

Vertex programs

This topic is 5364 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!