Page 1 of 1
AddTerrainLayer - Need a variable for texture file name
Posted: Sat Aug 03, 2013 7:27 am
by Lexicon
Hi guys!
I have a question...
Now I see: AddTerrainTexture(0, 0, 70, "grass_tile1.dds", "grass_tile2.dds")
I need: AddTerrainTexture(0, 0, 70, TextureID(1), TextureID(2))
Is that possible?
Re: AddTerrainLayer - Need a variable for texture file name
Posted: Tue Aug 06, 2013 11:03 pm
by Comtois
Lexicon wrote:Hi guys!
I have a question...
Now I see: AddTerrainTexture(0, 0, 70, "grass_tile1.dds", "grass_tile2.dds")
I need: AddTerrainTexture(0, 0, 70, TextureID(1), TextureID(2))
Is that possible?
No, but you can do this
Code: Select all
Dim MyTextureID.s(2)
MyTextureID(1) = "grass_tile1.dds"
MyTextureID(2) = "grass_tile2.dds"
AddTerrainTexture(0, 0, 70, MyTextureID(1), MyTextureID(2))
Re: AddTerrainLayer - Need a variable for texture file name
Posted: Wed Aug 07, 2013 4:23 am
by Lexicon
Thanks! You're really guru!
May be you know...
I have an entity (pseudoterrain) 5x5 vertexes and 5 associated textures. How may I do this:
0x2 vert - texture 3
0x3 vert - texture 3
1x1 vert - texture 0
1x2 vert - texture 2
1x3 vert - texture 3
2x2 vert - texture 2
3x3 vert - texture 1
3x4 vert - texture 1
etc.
Code: Select all
0-0-3-3-0
0-0-2-3-0
0-0-2-0-0
0-0-0-1-1
0-4-3-4-0
Thanks for your answer.
Re: AddTerrainLayer - Need a variable for texture file name
Posted: Wed Aug 07, 2013 8:02 am
by Bananenfreak
Open a new thread please, this has nothing to do with your first question.