Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.09.2006, 03:47   #1
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default [SHARE] Geodata Convertion Tool

Ok. This must be my biggest share since C1 L2Admin HOWTO documents on RZ. Long time ago ...
Hope this program will make your lives easier.
This is not final release and it still have some bugs.
Please do not ask me questions on how it works or what settings you should use. I suppose that Hints explanations are enought to understand.

Known buglist
1. Possible troubles with some bridges (western bridge from Giran to fields and around Angel waterfalls also Rune Region bridges)

Updates List:
v0.93
- Lineage Map 3D viewer integrated.
(there are no changes in converting algorithm - so do not regenerate your geodata if you already did it with v0.922)

ViewPortal Window controls:
Left Mouse down and drag - forward and back
Right Mouse downa and move left-right - turn scene around
Both Mouse btn down and move forward and back - get POV up and down

v0.922
- fixed access violation error

v0.92
- fixed problem with 16_10 map
- fixed error with caves entries
- fixed error with wrong Restore Defaults func for stairs vert
- revised memory managment (should exclude possibility of Memory Leak)

v0.91
- terrain heights problem fixed - it is perfect now

I included some tuning fields in it but personally prefer using default settings.
Ok - looks like some settings really needs more explanations

Height Calculation Settings:
1. Max plane angle to XY - this is angle between horisontal XY plane and the surface on which character should be able to stand or go. It is normal i think that character can not stand on surface that have 40 and more degrees - it will just fall down or will not be able to go up due to physics.
So there is no need to generate heights for e.g. vertical or near to vertical surfaces like wall (i'm not saing abt top side of wall - i mean front and back sides of wall here).

2. Ray-tracing accuracy - program builds a map from terrain, models etc just like Unreal engine does it. It means that anything on map consists of triangles. Then every triangle (filtered by 1st setting) is scannes with certain step to find heights. It is done by fast ray-tracing algorithm determining dot of intersection of vertical ray with each triangle.
Since geodata detalization (i mean the smallest block of geodata file) determines height for 16*16 points of world setting this value above 16 is not recommended - couse some of needed heights will be skipped. You can just make this value lower to increase accuracy of scanning the surfaces.

Walkability settings:
after generation of heights are done we need to determine walkability flags for each of them
1. Min Plane angle to XY - this setting is an angle of surface wich will not allow character to move in it's direction. E.g. wall usually have it 90 degrees. But again due to physics character should not be able to walk though barrier having mush lower angle. Mean char cant get up on mountain if hill's angle is 40 degrees and more.
2. Stairs height - easy to understand that stairs is accepted also as wall but with little height and it should be walkable. I found that walkable stairs in Lineage always have height of 8 points. If you increase it too much - barriers of bridges and castlewaals will be walkable too and if you make it too low - stairs will be not walkable.
3. Stairs Vert-PArt Angle - this is just for the case if you found stairs with not 90 degree of front side - in that case decrease this value.

Output settings:
when program finishes with walkability flags calculation all it have to do - optimize and save the data. But. Coordinates of all models given in Unreal packages is not absolute. It is relative to model's pivot point but not to world's 0,0,0 coordinates. So each coordinate should be transformed to take it place in the world on exact map.
1. Use 00 00 blocks - this afects on using 00 00 blocks in output to determine big blocks 128*128 points which have no multilayers and have no much difference of heights and no unset walkability flags on it in 6 bytes instead of outputing 64 16*16 blocks which would take 129 bytes.
It affects on memory usage by server and it's perfomance during runtime.
Do not uncheck it if you have no at least 4Gb of RAM on server.
2. Optimization Different - while generating heights with high accuracy same surface can give several heights for near x,y coordinates - so before saving data program should exclude not needed heights - height of character is about 72 points so it can not stand or move between two heights with differens lower that this value under and top of it. So program just exclused lower of tho heights. e.g you have -3467 and -3487 heights at the same point - then -3487 will be excluded.
3. Height increment - character pawn is an volume with it's own cordinate system. This coordinate system's start is not under the feets. It is on 32 points higher than surface on which character stands. It is char's position.
So char's position is always 32 points higher than height of surface. Server works with char's position - not with surfaces. We should increase every height we output on 32 points.

Many thanks goes to:
Digital - supporting me with ideas while digging .dat files format in far 2005 spring
Vaskes - supporting me with many other stuff and testing it while i was busy with this program
Torune - supporting with ideas of per-triangle tracing instead of per-step-point tracing - this decreased runtime perfomance of program in many times
Livid - giving a lot of help with fixing meshes-rotation problem and cutting ground cells problem (i hope my CSG-BSP-tree solution was also usefull for him)
STREZZ, Aspire and some other developers who inspired me all this time
MY FAMILY of couse - being so patient while looking only at my back for 90% of time =)

P.S. Any donation would be very appreciated. Thanks.
My WMZ are
Z860843335214
E235096803512
R343909594191
U260965927502

or E-Gold - AccNo 3607151

or PayPal - stazis@ua.fm

if you can't use a WebMoney but still want to donate - contact me
stazis at ua dot fm

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
GeoConv_v0.93.zip — 331706 байт
Stazis is offline  
Old 21.09.2006, 03:56   #2
[drzoom]
Архивный участник
 
Join Date: Jul 2006
Posts: 65
Default

o_O!
Thx Stazis
I knew u will share this

<rus>
1ый нах
</rus>
[drzoom] is offline  
Old 21.09.2006, 04:31   #3
soil
Архивный участник
 
Join Date: Sep 2006
Posts: 2
Default

Thanks!!Stazis
soil is offline  
Old 21.09.2006, 04:40   #4
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

Thanks for the share.
Rexx is offline  
Old 21.09.2006, 04:44   #5
nish
Архивный участник
 
Join Date: May 2006
Posts: 237
Default

damn real nice tool. thanks for your time you spent making this and most of all for sharing it thanks
nish is offline  
Old 21.09.2006, 05:03   #6
karabas
Архивный участник
 
Join Date: Jul 2005
Posts: 27
Default Thanks!

Thanks!
Stazis 20WMZ from me.
karabas is offline  
Old 21.09.2006, 05:05   #7
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Awsome stazis

Any paypal? Or just the donation methods above?
Sakumi is offline  
Old 21.09.2006, 05:23   #8
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

Quote:
Originally Posted by Sakumi View Post
Awsome stazis

Any paypal? Or just the donation methods above?
updated list with E-gold - i can't use PayPal.
Thanks anyway
Stazis is offline  
Old 21.09.2006, 05:24   #9
hex0id
Архивный участник
 
Join Date: Aug 2006
Posts: 21
Default

Wow, didn't even think that you could do that! Thanks a lot.

<rus>
Стазис от души!
</rus>
hex0id is offline  
Old 21.09.2006, 05:25   #10
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

thx man...
Domzelan is offline  
Old 21.09.2006, 06:47   #11
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Quote:
Originally Posted by Stazis View Post
updated list with E-gold - i can't use PayPal.
Thanks anyway
I'll see if I can 'assist' you in the ways listed. If not now, maybe after payday (my server is all of 30 players - so its out of my paycheck ^^)
Sakumi is offline  
Old 21.09.2006, 07:08   #12
mytynyk
Архивный участник
 
Join Date: Mar 2006
Posts: 33
Default

perfect job man ty
mytynyk is offline  
Old 21.09.2006, 07:34   #13
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Looks very nice, thanks
GMan is offline  
Old 21.09.2006, 07:35   #14
mmm2
Архивный участник
 
Join Date: Sep 2006
Posts: 2
Default

big thnx! great job
mmm2 is offline  
Old 21.09.2006, 07:36   #15
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Awsome share bud i knew u would share it in the end !
TheOrder is offline  
Old 21.09.2006, 08:45   #16
Luno
Архивный участник
 
Join Date: Sep 2006
Posts: 15
Default

When I lunch that converter and open package I get error " '95xx.xx' is not valid floating point value".
Luno is offline  
Old 21.09.2006, 09:02   #17
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Control Panel > Language and regional settings > >
... ... Replace "," to ".".
hel is offline  
Old 21.09.2006, 09:36   #18
Ameron
Архивный участник
 
Join Date: May 2005
Posts: 85
Default

Stazis, WMU plz =)
Ameron is offline  
Old 21.09.2006, 12:20   #19
L2Character
Архивный участник
 
Join Date: Apr 2006
Posts: 25
Default

Very, very nice. This is an awesome share. I trust that the entire L2 private world will be extremely grateful for this. Thank you very much.
L2Character is offline  
Old 21.09.2006, 12:24   #20
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

sharing spree ^_^
top-gear is offline  
Old 21.09.2006, 12:54   #21
Darkraven
Архивный участник
 
Join Date: Apr 2006
Posts: 76
Default

Who can make a guide for settings?
Darkraven is offline  
Old 21.09.2006, 13:27   #22
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

*updated list of WM with WMU and WMR
heh - 5WMZ total for now ... think it is worth to write some settings explanations ...=)
Stazis is offline  
Old 21.09.2006, 15:05   #23
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

Quote:
Originally Posted by TheOrder View Post
Awsome share bud i knew u would share it in the end !
It's not the end. =) It is only a start =)
Stazis is offline  
Old 21.09.2006, 18:17   #24
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

I will test it now, thank you Stazis
MuNLoK is offline  
Old 21.09.2006, 18:57   #25
Darkraven
Архивный участник
 
Join Date: Apr 2006
Posts: 76
Default

Height Increment setting is really needed? For what?
Darkraven is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:34.