XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

Simple 2D effect shader for a 3D environment

Last post 12/24/2008 4:11 PM by AZN FTW. 0 replies.
  • 12/24/2008 4:11 PM

    Simple 2D effect shader for a 3D environment

    So I've looked throught the internet, and at the Simple Effect shader as well as the primitive sample, but I can't seem to figure out how to draw per-pixel based on the particular model and the model's "color". Basically I'm making a 3-D stick figure game (like Xiao Xiao or other flash animations from stickpage.com) with a shader that colors everything on a particular model one color, no shading, no effects, no nothing making it appear to be 2D. I don't understand shaders at all. All I want to do is be able to pass a quaternion to color a model at runtime. Same will go for rigid models later (like weapons, walls, etc.) and possible with some type of outline. Is there a tutorial or anything on this? Or could someone help me write one. I'm sure the actual coloring part is simple, just not laid out anywhere. As for the outline I think it may be some edge detection algorithm...

    Thanks in advance for your time
Page 1 of 1 (1 items) Previous Next