Sign in to follow this  

A beginner's question of VS

This topic is 4815 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
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

This topic is 4815 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this