|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Shader Programming Part I: Fundamentals of Vertex Shaders |
|
![]() Daedalus Member since: 1/1/2000 From: Chicago, USA |
||||
|
|
||||
I have to say that this article is a really nice resource for beginning vertex shader programming. However, I noticed this a while back when going through the article. In the section "High Level Vertex Shader Programming" there is a chart of ops and what they do. The description for the dp4 op seems to differ from what is listed in the MS DirectX8 docs. In the DX8 docs the op is defined as doing:
dest.w = (src0.x * src1.x) + (src0.y * src1.y) +
(src0.z * src1.z) + (src0.w * src1.w);
dest.x = dest.y = dest.z = the scalar result
while the article lists it's definition as: dest.w = (src1.x * src2.x) + (src1.y * src2.y) + (src1.z * src2.z) + (src1.w * src2.w); dest.x = dest.y = dest.z = unused I'm not perfect, but I'm assuming that the two versions above aren't logically equivalent. I would assume that its just a simple typo in the article, thought I have heard of mistakes in the MS docs. Just figured I'd mention it. -Daedalus |
||||
|
||||
![]() Crawl Member since: 1/14/2002 From: The Netherlands |
||||
|
|
||||
| Amazing article!!! It almost makes me regret switching to OpenGL a month or 2 ago.... oh well, i'll just have to wait for the big 2.0 |
||||
|
||||
![]() Blaster Member since: 5/31/2001 From: Montreal, Canada |
||||
|
|
||||
| I know vertex and pixel shaders are awesome, but I still can't figure out how can I use them to make better looking graphics than with the fixed function pipeline. I would need to see an example. Maybe I should download the NVidia Effects Browser. ---------------- Blaster Computer game programmer and part time human being Strategy First - http://www.strategyfirst.com BlasterSoft - http://www.blastersoft.com |
||||
|
||||
![]() CrazedGenius Member since: 6/12/2001 |
||||
|
|
||||
| yes, download the effects browser. You may also want to look at Realtime Rendering Tricks and Techniques in DirectX. It's focused on shaders. |
||||
|
||||
![]() wolf XNA/DirectX MVP Member since: 1/8/2000 From: Carlsbad, CA, United States |
||||
|
|
||||
| I will check the difference between my article and the DirectX 8 documentation and give a feedback. |
||||
|
||||
![]() SnprBoB86 Member since: 5/29/2001 |
||||
|
|
||||
| Wow... all these shader tutorials are simply astonishing! Thanks a ton man... Keep up the kick ass work -SniperBoB- |
||||
|
||||
![]() wolf XNA/DirectX MVP Member since: 1/8/2000 From: Carlsbad, CA, United States |
||||
|
|
||||
| Thanks a lot for the nice words. The documentation is correct regarding dp4. I will send a correction to Dave very soon. Any further comments are welcome. - Wolf |
||||
|
||||
![]() whysee Member since: 2/7/2005 From: France |
||||
|
|
||||
| Is there some as very good tutorial as this for ARBvp fp in opengl some links ? tanx |
||||
|
||||
![]() sd_iconoclast Member since: 12/6/2004 From: USA |
||||
|
|
||||
| Where can one get a copy of the nvidia shader debugger? Nvidia does not list it in their website, and they do not respond to my emails asking about it. Please let me know. Thanks for the great book. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|