Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
runtime editor for Terrain #374586
06/20/11 12:31
06/20/11 12:31
Joined: Jul 2008
Posts: 40
V
Vahid_PC_Games Offline OP
Newbie
Vahid_PC_Games  Offline OP
Newbie
V

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] #374593
06/20/11 13:37
06/20/11 13:37
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany
For terrain deforming there is a script from Widi.
Link:
http://www.opserver.de/coni_users/web_users/pirvu/au/demo/zips/terraindeformer.zip

Terrain painting on the other hand is afaik only possible using a shader. I would look for an multitexture terrain shader which uses colormaps. Maybe you can change the colormaps in realtime?
Just a suggestion.

Greetings

Re: runtime editor for Terrain [Re: Timothy] #374597
06/20/11 14:09
06/20/11 14:09
Joined: Jul 2008
Posts: 40
V
Vahid_PC_Games Offline OP
Newbie
Vahid_PC_Games  Offline OP
Newbie
V

Joined: Jul 2008
Posts: 40
tanks man.
I'm waiting for more guidance.

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 Offline
Serious User
Widi  Offline
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
V
Vahid_PC_Games Offline OP
Newbie
Vahid_PC_Games  Offline OP
Newbie
V

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 Offline
Serious User
Widi  Offline
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: Widi] #374642
06/20/11 17:16
06/20/11 17:16
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline
User
Stromausfall  Offline
User

Joined: Dec 2002
Posts: 616
Austria
hmmm if you want to use it in C# you'll have to rewrite line by line and be aware, that some commands, like inkey don't exist in external languages !

theoretically it should be possible, but it's of course quite some work (although I guess, writing an editor always is)


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: runtime editor for Terrain [Re: Stromausfall] #374659
06/20/11 19:42
06/20/11 19:42
Joined: Jul 2008
Posts: 40
V
Vahid_PC_Games Offline OP
Newbie
Vahid_PC_Games  Offline OP
Newbie
V

Joined: Jul 2008
Posts: 40
tanks guys.

dier Widi , do you have a sample or demo for your blendmaps terrains?

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 Offline
Serious User
Widi  Offline
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.
Re: runtime editor for Terrain [Re: Widi] #374667
06/20/11 20:13
06/20/11 20:13
Joined: Jul 2008
Posts: 40
V
Vahid_PC_Games Offline OP
Newbie
Vahid_PC_Games  Offline OP
Newbie
V

Joined: Jul 2008
Posts: 40
OfCourse.
I'll stay waiting.

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1