PDA

View Full Version : texturing, vertex and pixel shaders



BlackSoftware
06-30-2003, 03:38 PM
my current opengl 1.1 engine is ready for me to implement texturing. using my trusty quadro fx 500 I'm planning on adding 3d textures as well as, pixel and vertex shaders. it seems natural to implement pixel and vertex shaders alongside 3d texturing for a overall simpler scenegraph.

********************************************
Is it possible for me to implement pixel and vertex shaders on nvidia chipsets without migrating to cg, or dx?
******************************************
is it possible to write assembly pixel and vertex programs to incorperate into my current opengl engine? (I have written plenty of assembly code by the way)
*********************************************

Acheum
06-30-2003, 10:48 PM
Originally posted by BlackSoftware:
my current opengl 1.1 engine is ready for me to implement texturing. using my trusty quadro fx 500 I'm planning on adding 3d textures as well as, pixel and vertex shaders. it seems natural to implement pixel and vertex shaders alongside 3d texturing for a overall simpler scenegraph.

********************************************
Is it possible for me to implement pixel and vertex shaders on nvidia chipsets without migrating to cg, or dx?
******************************************
is it possible to write assembly pixel and vertex programs to incorperate into my current opengl engine? (I have written plenty of assembly code by the way)
*********************************************

Yes, you can use the GL_ARB_VERTEX_PROGRAM extension for certex shader, and GL_ARB_FRAGMENT_PROGRAM extension for pixel shader !
For more information, see here :
http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_program.txt
http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt

[This message has been edited by Acheum (edited 07-01-2003).]

vincoof
07-01-2003, 01:59 AM
That's right, but for vertex and pixel shaders to work, you will need at least a GeForceFX, Quadro FX or an ATi Radeon9500. If you want your application to run on lower hardware you will have to disable vertex and pixel shaders.