Home » Community » Forums » » Introduction to Shader Programming Part IV: Programming Pixel 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 
 Introduction to Shader Programming Part IV: Programming Pixel Shaders
Post Reply 
I currently think about doing a Cg version of some of the tutorials with one restriction: ps.1.4 is not supported by Cg. What do you think ?

Wolf

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

sounds like a good idea to me go for it...

nice work on the previous articles.

Jack;

www.DirectX4VB.Com
www.f1cm.co.uk

 User Rating: 1947   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Actually Cg versions would be good, I attended the Cg classes at Siggraph and picked up your book ShaderX which I must say is the single best reference on Vertex/Pixel shading around.

As for ps1.4 well, its going to be gone soon enough, 2.0.
And since most people have 1.1 installed it probably is more important to have 1.1 shaders working.

Keep up the good work.

Jaltz


[edited by - Jaltz on August 9, 2002 6:18:41 AM]

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

Jaltz,
ps.2.0 hardware will support ps.1.4 too. So while ps.2.0 is not released, the most advanced standard supported in all upcoming graphic cards is ps.1.4.
But you are right regarding the market share of ps.1.1. As the least common denominator it will have the biggest marketshare in the next couple of years ... until someone decides to remove ps.1.1 from the DirectX spec.
I am currently evaluating the Cg path.

BTW.: Shader tutorial #5 can be found on my website www.direct3d.net.


- Wolf


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

quote:
Original post by wolf
Jaltz,
ps.2.0 hardware will support ps.1.4 too. So while ps.2.0 is not released, the most advanced standard supported in all upcoming graphic cards is ps.1.4.
But you are right regarding the market share of ps.1.1. As the least common denominator it will have the biggest marketshare in the next couple of years ... until someone decides to remove ps.1.1 from the DirectX spec.
I am currently evaluating the Cg path.



ps 2.0 assembly is greatly different from the previous ps.
Cg will make the codes much more understadable.



Chang

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

In your vertex shader code, you have
m3x3 r3, v8, c4
m3x3 r5, v3, c4
mul r0, -r3.zxyw, r5.yzxw;
mad r4, -r3.yzxw, r5.zxyw, -r0;

But this gives errors since the w component is never initialized. Just wondering if it's necessary to have it in the mul and mad instructions.

 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: