Jump to content
  • Advertisement
Sign in to follow this  
lxxxk

A beginner's question of VS

This topic is 5028 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have read HLSL and VS from "Introduction to 3D Game Programming with DirectX 9.0" these days,and I practised Cartoon Shader today,but I find I can't outline silhouette following this book.It says the input semantic NORMAL1 and the NORMAL2 refer to faces' normal around the vertex,I doubt it's only predefined in the author's model,because I didn't say any effect with my program.If NORMAL1 and NORMAL2 are indicate normals as the author says,then what's the meaning of NORMAL3~NORMAL15?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
hi,
I understand that toon shaders use a sillohette, which is a list of edges.
The list of edges is constructed using the dotproduct of the vector to a vertex from the camera position, and the normal vector of the vertex. ( I think using the triangle normal should be enough )

If your model does not contain vertex normals then you will have to compute normal vectors.

Share this post


Link to post
Share on other sites
Thx for replying,I made it through with the method u just mentioned after I have been frustrated by the author's method.
But I still want to know that what's the definition of the rest semantic from NORMAL1 to NORMAL15, are they predefined by shader or defined by 3D modeling software,I used 3DSMAX,but I didn't find a way that can let me build two normals or more to a vetex.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!