LykosEpp
Member
|
Programmable Colour Change of the Terrain in 1.0
Is there a way to change the colour of the terrain using the code if for example the height is bigger than a value?
I look at the heightmap.h tutorial but i dont understand and i am not sure that it does the same thing.
Specifically, i already have created my world and i want to put white colour on top of mountains.. I want to do it using the code not the editor.
Thanks!
|
|
02-27-2013 03:33 PM |
|
Esenthel
Administrator
|
RE: Colour Change
Hi,
Adjusting World Editor's data (in the Editor stage) by Code is not yet available.
|
|
02-27-2013 03:38 PM |
|
LykosEpp
Member
|
RE: Colour Change
That means that i can't do it?
|
|
02-27-2013 04:04 PM |
|
Ogniok
Member
|
RE: Colour Change
You can create your application which will load the world, then colorize the terrain the way you want and save it.
|
|
02-27-2013 04:47 PM |
|
LykosEpp
Member
|
RE: Colour Change
Hmm interesting!How can i do that?Can you please give me some more information about the way i could create this application?
|
|
02-27-2013 10:44 PM |
|
Ogniok
Member
|
RE: Colour Change
Load the world as you normally do it, then according to Game::World.hmHeight() result set the color you want (There is function to set certain material on heightmap - Search Engine Headers for it). After the work is done, save the world.
|
|
02-28-2013 10:29 PM |
|
Esenthel
Administrator
|
RE: Colour Change
That will affect the "game version" of the game , you won't be able to see the changes (and will lose them) when opening in the Editor.
|
|
03-01-2013 01:21 PM |
|
Ogniok
Member
|
RE: Programmable Colour Change of the Terrain in 1.0
You are talking about opening it in the Editor 2.0, right?
|
|
03-01-2013 05:56 PM |
|
LykosEpp
Member
|
RE: Programmable Colour Change of the Terrain in 1.0
No I'm doing it on Editor 1.. Should i upgrade? Is the demo version enough for my project?
|
|
03-03-2013 04:07 PM |
|