I have an object(FBX format) in my project, it's a line drawn in 3D max. I want to color the line in XNA so that the color starts from a specific RGB color in both the start and end points of the line and finish in a specific RGB color.(e.x., from (255,255,255) to (128,128,128). Something like gradient coloring of an object. I need to do that programmatically, since later in my code I have to change these two specific colors a lot.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
In 3DS Max, select your line geometry and apply the If you need to change the color later, paint one end in pure white and the other in a middle gray; then, inside your code, change the |
|||
|
|
|
This article talks about gradient shaders: You might be able to adapt that to shade your model (draw it with the shader) instead of the skybox. |
|||
|
