PDA

View Full Version : NV_vertex_program to ARB



V-man
11-25-2003, 08:20 AM
Is anyone aware of a tool that can translate one program into another.

I did it manually but maybe I have bugs?
I ran my ARB version both on ATI and NV and both give screwed up geometry, however the result is not the same, which is odd.

While I'm at it http://www.opengl.org/discussion_boards/ubb/smile.gif, anyone know a Pixel Shader (1.4 and 2.0) to ARB_fragment_program converter?

I still haven't understood what the "+"
in front of instructions means in PS

Humus
11-25-2003, 08:22 AM
+ means co-issue. The instructions will run in parallel and count as one. It's basically only possible to do when one instruction works on rgb and the other works on alpha.

ScottManDeath
11-25-2003, 07:36 PM
http://xengine.sourceforge.net/

IRC there is the possibility to cross compile various shader file formats, including NV_vp -> ARB_vp, PS 1.X -> ARB_fp, probably you have to dig a little bit in the source and tinker to make a command line version of a cross compiler.

for more information ask Asgard, the creator of the Xengine

ScottManDeath
11-25-2003, 07:43 PM
just browsed the cvs tree biefly, there is a NV_vp -> ARB_vp file in there, but i didn't test it

V-man
11-28-2003, 03:27 PM
You mean this

xengine / XEngine / include / LexerParser / Attic /
XTranslator_NVVP_to_ARBVP.h

It says files removed.

I dont see much else there. Of course, there are plenty of files.

ScottManDeath
11-28-2003, 08:29 PM
nearly, these file(s) tricked me also in first place http://www.opengl.org/discussion_boards/ubb/wink.gif

these should be the current ones, i just studied them a little bit, it seems that you'll need plenty of other files from varius directories to make NVvp->ARBvp compiler
http://cvs.sourceforge.net/viewcvs.py/xe...NVVP_to_ARBVP.h (http://cvs.sourceforge.net/viewcvs.py/xengine/XEngine/include/Core/ShaderCompilers/XTranslator_NVVP_to_ARBVP.h)
http://cvs.sourceforge.net/viewcvs.py/xe...VP_to_ARBVP.cpp (http://cvs.sourceforge.net/viewcvs.py/xengine/XEngine/src/Core/ShaderCompilers/XTranslator_NVVP_to_ARBVP.cpp)