Radioactive-Software Radioactive-Software
Forum to discuss Radioactive-Software Products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pixel shaders and vertex shaders , DIRECTX

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Radioactive-Software Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Anddos
Guest





PostPosted: Sun Oct 26, 2008 7:57 pm    Post subject: pixel shaders and vertex shaders , DIRECTX Reply with quote

just starting to learn shaders and confused on how the new color is applied to the vertices of the geometrey ,

does it go through each x,y,z vertices like you do with lock index and vertex buffer?

any web tuts on this topic
Back to top
dgreen
The One


Joined: 24 Sep 2005
Posts: 6811
Location: Raleigh, NC

PostPosted: Mon Oct 27, 2008 1:48 pm    Post subject: Reply with quote

You color the transformed pixels inside the pixel shader Wink

You apply all you matrices, etc. in the vertex shader to transform the verts.

I would recommend a book, by Wolfgang Engel. Cleverly named 'Programming vertex and pixel shaders'.

I have 25+ books on the topic that is a good one to start with.

- Danny

P.S. Yes there are also web tutorials out there, google is your friend Surprised
_________________
I run this place.
"Some muckety-muck architecture magazine was interviewing Will Wright about SimCity, and they asked
him a question something like "which ontological urban paridigm most influenced your design of the simulator,
the Exo-Hamiltonian Pattern Language Movement, or the Intra-Urban Deconstructionist Sub-Culture Hypothesis?"
He replied, "I just kind of optimized for game play."

Back to top
View user's profile Send private message Visit poster's website AIM Address
Anddos
Guest





PostPosted: Tue Oct 28, 2008 8:23 am    Post subject: reply Reply with quote

in the matrix there is m_1.1,m_1.2 , i am unsure what these 16 floats means exactly , does each float mean something diferent are they all the
same , you say you have 25 books , i have about 5 books but i need a good book on frame heirchy .x and pixel shader learning , if you can list book of those tops that would be great
Back to top
dgreen
The One


Joined: 24 Sep 2005
Posts: 6811
Location: Raleigh, NC

PostPosted: Tue Oct 28, 2008 1:00 pm    Post subject: Reply with quote

First result from google - http://www.senocular.com/flash/tutorials/transformmatrix/

I think you'll need a book on linear algebra or a generic book about game programming with a math primer section...

Most of my game books are the GPU Gems, Game Programming Gems, and ShaderX series of books...I've also got some old ones on openGL and DirectX 7 ( when I was learning DirectX many years ago )

The old books I used probably wouldn't help you much since DX9 is a lot different. You can find the info about .x hierachys all over the internet for free.
_________________
I run this place.
"Some muckety-muck architecture magazine was interviewing Will Wright about SimCity, and they asked
him a question something like "which ontological urban paridigm most influenced your design of the simulator,
the Exo-Hamiltonian Pattern Language Movement, or the Intra-Urban Deconstructionist Sub-Culture Hypothesis?"
He replied, "I just kind of optimized for game play."

Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Radioactive-Software Forum Index -> Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group