Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTMGeorge

Posted 15 April 2013 - 06:52 AM

 

Yes, it's possible. One option is to combine all the smaller tile textures into one big texture, and then just have each triangle reference the right portion of the large texture. Another option is to use multitexturing, but might make your shaders and draw calls a bit more complicated.

 

Hi, thx for your and the others reply. I think I have to read more into multi texturing. BTW I am using Java and JogAmp.

"one big texture" get's difficult.

e.g.: if I have 3*3 tiles of gras (g) at the same Level (0) it looks like
 

 

ggg   000
ggg   000
ggg   000

 



and I think already about getting one big 30*30 texture (assuming a tile is 10*10 px).

But If I now change the top left Level to 1 I will need to render a cliff © additionally to it's right and one to it's lower neighbour
 

 

gcgg      100
c ||      000
g-gg      000
g-gg

 


'|' & '-' means the gs are directly connected. The big texture would not be symmetric or contains a lot of holes ... just writing this got me thinking but I also think this approach would not be feasible.


BWT I am inspired by the Warcraft 3 Engine.


#1TMGeorge

Posted 15 April 2013 - 06:49 AM

 

Yes, it's possible. One option is to combine all the smaller tile textures into one big texture, and then just have each triangle reference the right portion of the large texture. Another option is to use multitexturing, but might make your shaders and draw calls a bit more complicated.

 

Hi, thx for your and the others reply. I think I have to read more into multi texturing. BTW I am using Java and JogAmp.

"one big texture" get's difficult.

e.g.: if I have 3*3 tiles of gras (g) at the same Level (0) it looks like

ggg 000
ggg 000
ggg 000

and I think already about getting one big 30*30 texture (assuming a tile is 10*10 px).

But If I now change the top left Level to 1 I will need to render a cliff © additionally to it's right and one to it's lower neighbour

gcgg
c ||
g-gg
g-gg

'|' & '-' means the gs are directly connected. The big texture would not be symmetric or contains a lot of holes ... just writing this got me thinking but I also think this approach would not be feasible.


BWT I am inspired by the Warcraft 3 Engine.

PARTNERS