Generating heightmap -
zaibaslr2 - 01.07.2014
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.
Re: Generating heightmap -
Niko_boy - 02.07.2014
i am not sure but MapAndreas Plugin?
Re: Generating heightmap -
zaibaslr2 - 02.07.2014
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.
Re: Generating heightmap -
Baboon - 02.07.2014
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
Re: Generating heightmap -
Mauzen - 02.07.2014
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.
Re: Generating heightmap -
zaibaslr2 - 03.07.2014
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?
Re: Generating heightmap -
zaibaslr2 - 16.09.2014
Bump.
Re: Generating heightmap -
Lordzy - 16.09.2014
https://sampforum.blast.hk/showthread.php?tid=275492
Since v1.2 of Mauzen's MapAndreas plugin, it supports setting max Z height.