Vertex Shaders, Again

Started by
11 comments, last by Draigan 22 years ago
Adso:

1. There isn''t a vertex shader version 1.4 - the only 1.4 shaders are 1.4 *pixel* shaders, which are fully documented in the 8.1 docs.

2. The 2.0 vertex shader spec isn''t set in stone yet, and there is no hardware available which supports it yet. It''s a DX9 thing - the *proposed* spec was shown at Meltdown last year. The slides from Meltdown are available online, IIRC the URL is something like http://www.microsoft.com/hwdev/meltdown - there should also be a link from the DirectX developers page (http://msdn.microsoft.com/directx).

3. Umm - you have a reciprocal square root instruction - that should be enough to do a proper implementation. Don''t be scared off by CPU performance of square root instructions either - current hardware implementations of vertex shaders tend to have 1 instruction=1 clock cycle timing.
To see smart code using shaders take a look at the ATI and nVidia websites where you''ll find all sorts of cool shaders - including a very smart vector normalisation in a *pixel* shader using *2* instructions!

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Advertisement
After ten minutes of posting the message, I viewed that the 1.4 is pixel shader and no vertex '':-)

I know there aren''t hardware with vertex shader 2.0, but I wanted to know how they will be.

Now, I have written a simple code to normalize a vector, is only 3 instructions, for testing is sufficient.

I am downloading the nVidia Browser & Effects, but it''s sloooow, no the nVidia site, my 56K connection :-) It''s a 56MB file.


Thanks

Anyone know if:
If I use the D3DX Effects for the vertex shaders and I choose to implement the fixed-function vertex shader in there to automatically transform, does it use hardware for this?

This topic is closed to new replies.

Advertisement