PDA

View Full Version : Vertex program Tutorials



Dr. Trax
10-07-2003, 11:30 PM
I am looking for some vertex programs and pixelshaders tutorial, pls better for ATI :-)

Leyder Dylan
10-08-2003, 08:39 AM
1. For the vertex program, the (last?) "ARB_vertex_program" is supported on the both video card (NVIDIA and ATI). So just take a look http://www.ati.com/developer/sdk/RADEONSDK/Html/Info/Extensions/GL_ARB_vertex_progra m.html (http://www.ati.com/developer/sdk/RADEONSDK/Html/Info/Extensions/GL_ARB_vertex_program.html)

2. Next, just take a look on this http://www.ati.com/developer/indexsc.html or http://www.gamedev.net/reference/programming/features/dx81shader1/



[This message has been edited by Leyder Dylan (edited 10-08-2003).]

Dr. Trax
10-08-2003, 09:20 PM
Thank you very much, that is just what I need...

I heard Cg Toolkit is for both ATI and nVidia, can I use it for Radeon 9500?
Is it fully compatible?

DJSnow
10-09-2003, 05:58 AM
@Dr.Trax:

Cg is a highlevel language which compiles on target-videocard on which you are running your app - the Cg-compiler compiles your Cg code down to hardware-specific code, which could be in your case ARB_v_p code, or DX HLSL code -> so: yes, you can use it on your AR9500 and yes, it is that what you call "fully compatible".

Leyder Dylan
10-09-2003, 08:57 AM
Just this from www.cgshaders.org (http://www.cgshaders.org)



Was Cg designed for NVIDIA chips only?

No. Cg was designed to simplify graphics programming, regardless of the hardware that it runs on. Cg allows graphics chip manufacturers to easily and effectively expose the capabilities of their hardware by writing their own Cg compilers. These manufacturers have a unique understanding of their products, and are therefore the most capable compiler writers for their particular hardware. Programs compiled with Cg run today on DirectX 8-compatible hardware, and on any other vendor's implementation of OpenGL, if it supports the NV_vertex_program extension (ARB_vertex_program support is coming soon, since it was only recently approved by the ARB).

DJSnow
10-09-2003, 12:39 PM
@Leyder...:
istn't that a (more general) part of the same thing that i have told ?????

(P.S.: but yes, mine was more technically; that's right)


[This message has been edited by DJSnow (edited 10-09-2003).]

Dr. Trax
10-09-2003, 11:37 PM
Thank you both, now I can start my project...