How to create a Directional Icon for your game…

added by berben11
3/4/2011 1:35:20 AM

1 Kicks, 72 Views

Using some of the feedback, I decided to add the ability to display a ‘Directional Icon’ in the game engine. The idea was to display the icon anywhere in the game world, have it look like it’s painted on the ground floor, and be able to set the color, position, scale and rotation from a scripting-like call. But how would you do this? You could create a separate effect, but then you would have to pass in the light matrix, view matrix, and the details from the terrain map, etc. Also, optimization is key point here when dealing with the Xbox, so it was critical to come up with a solution which fit into the original Terrain’s shader code.