PDA

View Full Version : Modifying the pipeline..



ki
16-08-2003, 08:17 AM
I know it's possible to use the programmable vertex processor but is it possible to do the following..

Let directx rotate/process all vertices..
access the rotated vertices in some buffer..
tweak around with vertex data.. (some effects)
let directx draw all for me. or, write my own shader without using dx shader language.

a bit complicated project, but I just want to know if it's possible..

Clootie
16-08-2003, 11:09 AM
>>Let directx rotate/process all vertices..
IDirect3DDevice9.ProcessVertices (always run on CPU, can use SSE class optimizations)
>>access the rotated vertices in some buffer..
VertexBuffer.Lock
>>let directx draw all for me.
VertexBuffer.UnLock
IDirect3DDevice9.DrawIndexedPrimitive

>>or, write my own shader without using dx shader language.
?????

ki
16-08-2003, 04:24 PM
thanks. sad It runs on cpu. not usable for my purposes. maybe I have to try ogl or forget about that idea.

Clootie
16-08-2003, 05:52 PM
It runs on CPU because it's faster in comparition to running it on GPU and later trying to get your results back.