Generating heightmap
#1

Hey.
I saw a video today (http://fr.xfire.com/video/ed121/), where a guy gets coordinates for his heightmap.
I really want to do my heightmap (I have the map on the water (it's an island)).
What and how should I do? What kind of script?
Thanks.

Sorry for my bad english.
Reply
#2

i am not sure but MapAndreas Plugin?
Reply
#3

Well MapAndreas just gives the ability to have original SA map heightmap. And I have my own map not at San Andreas map, and I want to get it's heightmap.
Reply
#4

I did this for my islands.
The way I did it, takes a lot of time to gather that info. It gathers the z info of a 3x3 box.

I don't really want to tell anyting more.

https://sampforum.blast.hk/showthread.php?tid=508552
Reply
#5

You could basically use SetPlayerPosFindZ to move one or more players in small steps over your map. Invert the direction so there are no big teleports that stream out the map for the player.
Код:
-->-->-->-->
<--<--<--<--
-->-->-->-->
<--<--<--<--
You can either move slowly and get accurate results (but big area will take days), or fast, but there will be some offset then that you need to subtract, as SetPlayerPosFindZ actually moves the player a bit over the actual ground.

Thats what I did before MapAndreas existed, when I needed the coordinates for the bombing fs (I had them in MYSQL OMGOMGOMG). I once posted my full code for this here, but that was years ago and I cant find it anymore. Theres nothing difficult about it anyways. Be aware that this takes a while. If you want 1x1 steps, whole San Andreas has 36,000,000 fields to check, and using a 10ms delay (which might already be too short to get good results) youll end up with 100 hours of mapping.

Alternatively I thought about a "live mapping", that tracks the position of players on your server, and saves the z coordinate of walking players while they move. Youll need trusted players for that of course, as hackers would ruin that, and it will take a while until the map is dense enough to be useable.
Reply
#6

Thanks guys for your answers, but I have one more question - what should I do when I get Z coordinates? How to put them in a terrain program?
Reply
#7

Bump.
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=275492

Since v1.2 of Mauzen's MapAndreas plugin, it supports setting max Z height.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)