Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / does anyone have any example of terrain editor created with heightmap that can give me just a "light" to make my terrain editor?

Author
Message
SkinK4ir3
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 22nd Mar 2023 18:53
Hello everyone, could someone provide me with a terrain editor using the latest AppGameKit functions and updates so I can get a feel for how to start making my terrain editor?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Mar 2023 19:23
In the examples provided with the product (In the IDE select Tools/Install additional files) there is a folder called "Terrain" that has an example of using the heightmap commands.
SkinK4ir3
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 22nd Mar 2023 21:06 Edited at: 22nd Mar 2023 21:08
i would like to edit heightmap on realtime …
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Mar 2023 21:14 Edited at: 22nd Mar 2023 21:17
I personally would modify the image and re-generate the mesh because CreateObjectFromHeightMap() creates a special type of mesh that loading from disk would take ages.

If you want to modify a mesh then I would look at the following commands.
CreateMemblockFromObjectMesh()
and
SetObjectMeshFromMemblock()

Remember that you will need to manually save the mesh to one of the supported 3D formats like .obj .fbx .x etc

This might help as well
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 23rd Mar 2023 11:07
there is a couple of examples here https://forum.thegamecreators.com/thread/222027
or you could use this method which is only suitable for smaller maps
fubarpk
https://fubarpk.itch.io/

Login to post a reply

Server time is: 2024-11-23 08:04:08
Your offset time is: 2024-11-23 08:04:08