Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 27.03.2006, 15:31   #1
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default About fall through L0

therory:
inside conv files there 3 kind of blocks 0000, 0040 and 0041-00FF

with 0040 and 0040+ all is clear

but 0000 (solid 8x8 single layer block) have TWO Z coords (Z1 and Z2) (i still do not know what for)

HDGE exporter make them equal on export, but maybe they must be different?
maybe Z2 must be Z1+100 or vice versa?
or some another logic?
humordwarf is offline  
Old 27.03.2006, 16:40   #2
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

there are two Z? uhm... maybe is the height like we have when you make npcpos territories (X,Y,Z1,Z2) or castledata
drugolo is offline  
Old 27.03.2006, 16:49   #3
Liahhim
Архивный участник
 
Join Date: Jan 2006
Posts: 22
Default

Think it could be highest and lowest points... In original C1 geos we can see 0000 cells with equal heights on central square of giran for example. And somewhere in mountains those two heights are always different.

After ///geodata command client seems to show 0000 cells as if their height was average of those two. And 200/200 should look the same as 300/100 (the highest one comes first).

Difference between 200/200 and 300/100? - On 200/200 items will fall through when visible (visualized by ///geodata) geo is lower than client terrain. On 300/100 - fall through if client terrain out of 100/300 range.

I suggest exporting 0000 cells in a way that every cell has lower height value equal to higher value of next lower neighbour. And cells higher value should be equal to lower value of next higher neighbour...

And one more... About built-in L0 generator from .BMP... Could you make max height difference adjustable? Or maybe make generator keep the smallest possible height difference? It seems that if difference is more than 16 (client height) - character fall to lower level (if it exists). This accuracy means nothing for 1-layer maps, but if we add catacombs - the area above them must have Z-diff between neighbour cells not more than 16(in client) or 32(value in conv.dat).
Liahhim is offline  
Old 27.03.2006, 17:14   #4
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

https://postpacific.loc-online.com/f...r=asc&start=90

if difference is higher than 24(in conv) they will drop into next layer
add an extra step of surface scan wont hurt
torune is offline  
Old 27.03.2006, 17:28   #5
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

my 1 layer 0000 only block geogen was such that 2nd height of oen block was equal to first height of next block ( vertically scanned ), it produced better resutls.
Mirror is offline  
Old 28.03.2006, 01:55   #6
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

Эмм... Гхмм...
Code:
if ((abs(next height) - abs(current height)) > 0xF)
I think something... Really...

BTW, I think (ehhhe... think...), this code much simple...

if(Hcur < Hnext) -> if((Hnext - Hcur) & ~0xF) -> fall down to lower layer

So, MB default NSEW diff must be 15 ? (or this must be fixed to 15 ?)
ANRDaemon is offline  
Old 28.03.2006, 02:58   #7
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Quote:
Originally Posted by torune
https://postpacific.loc-online.com/forum/viewtopic.php?t=1934&postdays=0&postorder=asc&star t=90

if difference is higher than 24(in conv) they will drop into next layer
add an extra step of surface scan wont hurt
Yes, that is. It's very simple You need better terrain smoothing.
lich 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 16:10.