Home » Community » Forums » » Shader Programming Part I: Fundamentals of Vertex Shaders
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

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
Post Reply 
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


 User Rating: 992   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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

 User Rating: 1024   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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

 User Rating: 1016   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

yes, download the effects browser.

You may also want to look at Realtime Rendering Tricks and Techniques in DirectX. It's focused on shaders.

 User Rating: 1037   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I will check the difference between my article and the DirectX 8 documentation and give a feedback.

 User Rating: 1469   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Wow... all these shader tutorials are simply astonishing!

Thanks a ton man...
Keep up the kick ass work

-SniperBoB-

 User Rating: 1118   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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

 User Rating: 1469   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Is there some as very good tutorial as this for ARBvp fp in opengl
some links ?
tanx

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: