The International Simutrans Forum

PakSets and Customization => Pak64 => Pak64 Bug Reports => Topic started by: Dwachs on August 06, 2010, 01:06:03 PM

Title: oil rigg
Post by: Dwachs on August 06, 2010, 01:06:03 PM
Ships will drive over the oilrigg, which does not look nice.

The images have to be cutted into back- and front images.

Is there anybody out there who  could help?
Title: Re: oil rigg
Post by: vilvoh on August 08, 2010, 09:27:07 AM
I think that's not a matter of front-back images, but the way the water buildings are drawn by the graphic engine.
Title: Re: oil rigg
Post by: Dwachs on August 08, 2010, 01:07:21 PM
Yes you are right: there a no errors with the front images of this graphic. There is simply no front image defined.

And no: the graphics engine does take front images into account even on water. I know how the graphic engine works - I implemented a significant part of it ;)
Title: Re: oil rigg
Post by: prissi on August 08, 2010, 08:46:50 PM
Stupid question: Which images should be back images? The oil rigg is cutted like all other images.
Title: Re: oil rigg
Post by: Dwachs on August 09, 2010, 08:24:39 AM
Basically, everything that has to be drawn on top of the ships, has to go to the front image. See attachment. Everything above green line should go into frontimage imho (the plattform and some of the pillars).

Edit:

Actually, defining Front images as

BackImage[0][0][0][0][0]=-
BackImage[0][0][1][0][0]=-
BackImage[0][1][0][0][0]=-
BackImage[0][1][1][0][0]=./n0-oilrigg.0.0
FrontImage[0][0][0][0][0]=./n0-oilrigg.0.3
FrontImage[0][0][1][0][0]=./n0-oilrigg.0.2
FrontImage[0][1][0][0][0]=./n0-oilrigg.0.1
FrontImage[0][1][1][0][0]=-

cures a great part of the bug.