Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   GeoMaker Question (https://postpacific.loc-online.com/showthread.php?t=2981)

HongK 13.01.2006 20:47

GeoMaker Question
 
Hey guys,

I started messing with vaskes geomaker prog yesterday and I read somewhere in another thread that enishi posted that he was having some probs with it too ...

My question basically is, when I open the heightmap bmp extracted from the client with UTPT in vaskes prog, I set the first byte and second byte to the map name, since thats obviously the beginning of the header, and in enishis post vaskes said waterlevel was not functioning in the prog, so I leave that at its default ... The last thing I set is the height which has to be anywhere between 10 and 30 according to vaskes .. After that I save the conv file to c:\ ...

When I finally open the conv file in a geoviewer, it shows up VERY light and the file size is generally only around 345kb compared to several megs that the normal geodata file is ... Anyone know more about this prog and why I would be getting such small file sizes? Thanks :P

Enishi 13.01.2006 20:54

According to the readme in L2 tools, the height for geomaker HAS to be 75.
And since its only ground layers the program does...the 384kb file size is expected.

*EDIT* Nevermind the 75...I was thinking of the BR dev team generator.

HongK 13.01.2006 21:22

Quote:

Originally Posted by Enishi
According to the readme in L2 tools, the height for geomaker HAS to be 75.
And since its only ground layers the program does...the 384kb file size is expected.

*EDIT* Nevermind the 75...I was thinking of the BR dev team generator.

I have seen some pretty good looking geodatas that you posted of blazing swamps ... Did you get those by using this program?

Enishi 13.01.2006 22:41

Did it with the BR dev team maker.
Multiplier set to 75 and the geodata is useable...not perfect though :P

knife_sj 14.01.2006 01:17

i've generated field of silence with that and a /loc the coord in Z are -15xxx

With multiplier in 75

With 3D viewer the color of the plane is DeepGreen
And the previous Map is Deepblue what means that??

HongK 14.01.2006 01:32

I actually just did the same map .. The only thing I'm having problems with is getting the right height multiplier ... They were talking about it relating to the Z coords in game ... Can someone perhaps explain that a bit :O

SoaPy 14.01.2006 03:03

yes flakka said in a txt inside the l2tools, 75 for multp, but is incorrect, if you see with a viewer the geodata terrain is like perfect but ingame the height is like more than 10k, i think the only way to get a normal geodata (terrain) with those tools is testing in every multp, starting between 20 and 26 or something like that.

HongK 14.01.2006 03:24

There is no formula for calculating the correct height multiplier?

SoaPy 14.01.2006 03:50

i dont think so, the default of the br team is 23 and the default of stazis program is 18, try moving this value and test if the terrain if correct or not, is the only way.

Stazis 14.01.2006 03:53

Thought i already posted somewhere

ingame.z := (grayscale_color) * 76 - 95xx.xx;

because
TerrainScale=Vector=[ X:1xx.xx0000 Y:1xx.xx0000 Z:xx.xx0000]
KRestitution=-95xx.xx0000

that's from TerrainInfo class

HongK 14.01.2006 04:34

So how does that give you the height multiplier to use for the geomaker?

HongK 14.01.2006 05:08

EDIT: NEVERMIND

Figured it out hehe ... fun stuff .. finally I can fix some probs

Enishi 14.01.2006 17:11

Mind explaining that to the rest of us HongK? :P

HongK 14.01.2006 20:52

Well I was browsing some stuff by torune last night and I ran across his old post where he shared all those geodatas he made and they are all the same thing I was doing so there doesn't really seem to be any point to generating anymore geodata except for c4, although they are included in his pack ... The only thing I saw that needed to be changed in his files were the addition of planes for the catacombs/necros and then some wall generation

Enishi 14.01.2006 21:02

I meant...how did you figure out the correct height multiplier? o.O

Sauron 14.01.2006 22:05

Quote:

Originally Posted by HongK
There is no formula for calculating the correct height multiplier?

if the formula is not correct then there is no multiplier that will work in all the cases. The best way to deal with geodatas (terrain at least) is doing it urself, that way you could try new formulas instead of using a program with the wrong formula.

knife_sj 16.01.2006 03:20

Ok, after the problem of heights with geos created by Geogenerator i've maded this tool to correct it...

i've have to do 2 things:
1st: U Must rotate 90º to left the bmp, then generate with geogenerator

2nd:
Up the terrain (its just to correct the high of the plane, doesnt work with multi layered geos)...

id use this formula:
Newheight:=OldHeight+Z;

Edit: New Version must specify the Z to add.
U can take this value with the next formula
Ill take for example Blazing Swamp (24_17)
Take "Lineage ][ Geo data viewer" and take a value (From Status Bar) from the top left corner of the map next to the map to modify (in example 24_18 Aden Town)
http://images1.pictiger.com/thumbs/2...890392d.th.jpg

and then open 24_17 and take the bottom left corner value

http://images1.pictiger.com/thumbs/8...3a1118f.th.jpg

then make Value from ( 24_17 ) - ( 24_18 ) this should give a number, thats the Z value :)

Flamestrike 16.01.2006 05:39

Sweet thing.

TheOrder 16.01.2006 08:14

Cool tool . Tnx for the Share !!!

knife_sj 16.01.2006 08:27

updated, wrong calculation, isnt the same number 4 all maps :P

Metalmurphy 16.01.2006 12:30

Thanks for the tool knife_sj :thumbs up:

Mirror 16.01.2006 18:44

knife_sj : thanks for tool but doesn't correct things. explanation : difference in heights from correct ones is not constant. some points differ more, others less. just adding the layer up or down doesn't correct things.
this is not flame. just constructive notes

Liahhim 17.01.2006 05:58

Isn't this a little too complicated? Why don't you play with extracted picture brightness/contrast (height shift/multiplyer) instead?

Mirror 17.01.2006 09:04

i think the problem is this :

the extracted picture is greyscale. greyscale has only 256 flavors of grey. but the heights in l2 world are much more. so a lot of inromatin is lost. so the differences are not constant..it depends on average map height or on min and max map height. so the multiplier which is i believe the factor for stretching up the map..has to be changed on each map differently according to that particular map min max or average height. i wonder if the heightmaps in .utx are saved only in 256 colors or is just UTPT which discards color information.

knife_sj 21.01.2006 00:45

some1 knows how each height is linked to ingame Z?

i cant find the relation :P

i was wondering that the int value is short (pos and neg) numbers, but seems to dont be it :?


All times are GMT. The time now is 15:59.