|
1 registered members (1 invisible),
10,003
guests, and 5
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
runtime editor for Terrain
#374586
06/20/11 12:31
06/20/11 12:31
|
Joined: Jul 2008
Posts: 40
Vahid_PC_Games
OP
Newbie
|
OP
Newbie
Joined: Jul 2008
Posts: 40
|
hi guys. i have two questions: 1- How to edit a Terrain in runtime (played game , no GED) , like this: 2- How to set other textures at a Terrain in runtime (played game , no GED) , like this: tanks.
Last edited by Vahid_PC_Games; 06/20/11 12:37.
|
|
|
Re: runtime editor for Terrain
[Re: Vahid_PC_Games]
#374601
06/20/11 14:33
06/20/11 14:33
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
Here is a new link for my TERRAIN DEFORMER: DEFORM TERRAIN A8 With the old link is a error, because since A8.10 is changed somethings with pan_setdigits... To paint at the terrain i already have a tool too: I use blendmaps for my terrain and painting directly to this blendmaps.
Last edited by Widi; 06/20/11 14:36.
|
|
|
Re: runtime editor for Terrain
[Re: Widi]
#374607
06/20/11 15:01
06/20/11 15:01
|
Joined: Jul 2008
Posts: 40
Vahid_PC_Games
OP
Newbie
|
OP
Newbie
Joined: Jul 2008
Posts: 40
|
tanks Widi , its perfect.
1- talk more about "To paint at the terrain i already have a tool too: I use blendmaps for my terrain and painting directly to this blendmaps."
2- what is "terrain_resave.dll"?is it Source of your mod?
3- can i use this mod in C# wrapper?
Last edited by Vahid_PC_Games; 06/20/11 15:02.
|
|
|
Re: runtime editor for Terrain
[Re: Vahid_PC_Games]
#374635
06/20/11 16:48
06/20/11 16:48
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
1: I try to explain it, but my english is not so good. My terrain have blendmaps. With this blendmaps i set the detailmaps with a shader to the terrain. For example: red in the blendmaps says that in the terrain is grass, green for rocks, blue for sand and alpha for stone. My terrain works with 2 blendmaps and i have with my shader 11 different materials for my terrain. In your code you have to read the pixels around the mousecursor with pixel_for_bmap() from the blendmap and if you want there f.e. grass make green higher and all other colors deeper, set it in the blendmap with pixel_to_bmap() and save the blendmap. 2: With "terrain_resave.dll" you can save the changed terrain what is not possible only with 3dgs. 3: I never work with c# wrapper, so i don`t know...
Last edited by Widi; 06/20/11 16:55.
|
|
|
Re: runtime editor for Terrain
[Re: Vahid_PC_Games]
#374666
06/20/11 20:07
06/20/11 20:07
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
Not jet, this code is impemented in my project. But i also want to implement this part at my DEFORM TERRAIN. If you can wait until next weekend, i try to finish this part.
Last edited by Widi; 06/20/11 20:22.
|
|
|
|