JanHH

05-23-2004, 12:54 PM

Hello,

sorry for this probably stupid question, I must be missing something very obvius, but have no idea what. I am trying to use NV_vertex_program instead of ARB_vertex_program and so tried changing the program itself, starting with very basic parts. The arb version work, the NV doesn't. This is the code:

ARB:

!!ARBvp1.0

PARAM MVP[4] = { state.matrix.mvp }; # Modelview Projection Matrix.

DP4 result.position.x, MVP[0], vertex.position;

DP4 result.position.y, MVP[1], vertex.position;

DP4 result.position.z, MVP[2], vertex.position;

DP4 result.position.w, MVP[3], vertex.position;

END

NV:

...

glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, 0, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV);

...

!!VP1.0

DP4 o[HPOS].x, c[0], v[0];

DP4 o[HPOS].y, c[1], v[0];

DP4 o[HPOS].z, c[2], v[0];

DP4 o[HPOS].w, c[3], v[0];

END

Does anyone have an idea what is going wrong here? Thanks in advance..

Jan

sorry for this probably stupid question, I must be missing something very obvius, but have no idea what. I am trying to use NV_vertex_program instead of ARB_vertex_program and so tried changing the program itself, starting with very basic parts. The arb version work, the NV doesn't. This is the code:

ARB:

!!ARBvp1.0

PARAM MVP[4] = { state.matrix.mvp }; # Modelview Projection Matrix.

DP4 result.position.x, MVP[0], vertex.position;

DP4 result.position.y, MVP[1], vertex.position;

DP4 result.position.z, MVP[2], vertex.position;

DP4 result.position.w, MVP[3], vertex.position;

END

NV:

...

glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, 0, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV);

...

!!VP1.0

DP4 o[HPOS].x, c[0], v[0];

DP4 o[HPOS].y, c[1], v[0];

DP4 o[HPOS].z, c[2], v[0];

DP4 o[HPOS].w, c[3], v[0];

END

Does anyone have an idea what is going wrong here? Thanks in advance..

Jan