Jump to content

  • Log In with Google      Sign In   
  • Create Account


Flicklizic

Member Since 04 Mar 2013
Offline Last Active Yesterday, 07:58 AM
-----

#5145011 Terrain type related problems in RTS game

Posted by Flicklizic on 07 April 2014 - 07:06 AM

You can store the data inside your heightmap, use R and G channels for the height level, B for the construction data and the alpha channel for the speed factor.
 
Using this approach you will only need a short lookup function. Just remember to store the texture info inside the heightmap when you "paint" your terrain.



#5044631 Vertex Shader - Constant Buffer Array

Posted by Flicklizic on 19 March 2013 - 12:27 PM

Ok I solved the problem, if anyone is having this same problem remember to see if the previous buffer is working correctly first (this can cause a ripple effect on all upcoming buffers)




PARTNERS