The International Simutrans Forum

 

Author Topic: Graphical glitch on taxiways (unsolvable)  (Read 5397 times)

0 Members and 1 Guest are viewing this topic.

Offline wipi35

  • Devotee
  • *
  • Posts: 250
  • Imagination is more important than knowledge
  • Languages: NL,EN,GE,FR
Graphical glitch on taxiways (unsolvable)
« on: August 21, 2008, 11:03:31 AM »
Oneway signs on taxiways are visible through the airplane in two of the four directions.
R1953 with Pak128-62
« Last Edit: August 24, 2008, 06:54:06 PM by prissi »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: Graphical glitch on taxiways
« Reply #1 on: August 21, 2008, 11:24:08 AM »
Not changable, since these are "front" graphics and are meant to be drawn on top of vehicles. Additionally, given the large size of aircrafts, such clipping errors are cannot easily prevented.

Offline wipi35

  • Devotee
  • *
  • Posts: 250
  • Imagination is more important than knowledge
  • Languages: NL,EN,GE,FR
Re: Graphical glitch on taxiways
« Reply #2 on: August 21, 2008, 11:30:18 AM »
OK, but then I don't understand why in two directions the signs are not visible.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: Graphical glitch on taxiways
« Reply #3 on: August 21, 2008, 11:33:57 AM »
Because the are the signs, which are on the right side of the road, i.e. usually drawn behind a car ... As such, these are back images.

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Graphical glitch on taxiways
« Reply #4 on: August 21, 2008, 11:55:45 AM »
Wouldn't be more reasonable to use only backimages in four views? They're signs on the road, and in this case the vehicle will always pass over the sign. Other thing is that I can't be possible due to the way signs are implemented. I'm afraid the game engine does not distinguishes between signs on the road and "elevated" signs, does it?

EDIT: I've done a little search in the SVN, and I thought the problem is the way signs are implemented. You can't use front and back images in sign dat files. A example from 64pak:
Code: [Select]
# no entry sign
obj=roadsign
name=NoAirEntry
copyright=timeshock
cost=500
waytype=air
min_speed=0
single_way=1
image[0]=roadsign.0.0
Image[1]=roadsign.0.1
Image[2]=roadsign.0.2
Image[3]=roadsign.0.3
Icon=> roadsign.0.4
Cursor=roadsign.0.5

So, imho,  if you want to fix that you will have to repaint the sign or code it in another way... :(
« Last Edit: August 21, 2008, 12:04:35 PM by vilvoh »

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: Graphical glitch on taxiways
« Reply #5 on: August 21, 2008, 01:18:01 PM »
...
EDIT: I've done a little search in the SVN, and I thought the problem is the way signs are implemented. You can't use front and back images in sign dat files. A example from 64pak:
...

Image[0] and Image[3] is FrontImage
Image[1] and Image[2] is BackImage

grafics and dat in german Wiki


Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Graphical glitch on taxiways
« Reply #6 on: August 21, 2008, 10:00:24 PM »
I don't understand the wiki explanation. It's a bit confusing for me.. ???...I guess the current dat file of that object could be something like this:
Code: [Select]
Image[0]=pre_signale.1.0
Image[0]=one_way.1.0 --- Front S
Image[1]=one_way.1.1 --- Back S
Image[2]=one_way.1.2 --- Back E
Image[3]=one_way.1.3 --- Front E
Image[4]=one_way.1.4 --- Front N
Image[5]=one_way.1.5 --- Back N
Image[6]=one_way.1.6 --- Back W
Image[7]=one_way.1.7 --- Front W

and If I haven't read wrong it could be fixed just coding it this way (removing lines that make reference to FrontImage and coding them as BackImages), couldn't it?
Code: [Select]
Image[0]=one_way.1.0 --- Back S
Image[3]=one_way.1.3 --- Back E
Image[4]=one_way.1.4 --- Back N
Image[7]=one_way.1.7 --- Back W
« Last Edit: August 22, 2008, 08:50:05 AM by vilvoh »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: Graphical glitch on taxiways
« Reply #7 on: August 22, 2008, 08:43:56 AM »
No roadsign has just four images.

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Graphical glitch on taxiways
« Reply #8 on: August 22, 2008, 08:48:12 AM »
And what about using just the ones refered to FrontImage (0,3,4 and 7 if I haven't understood wrong)? Would it work?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: Graphical glitch on taxiways
« Reply #9 on: August 22, 2008, 09:12:08 AM »
Sorry, a road sign has only four images. Not 5 not 8, but maximum four currently. Thus you can put image[4] into the pak, but it will never been used. Four, not three, not five but four.

Also unlikely to be changed, since this would also mean changes to signals and so on.

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Graphical glitch on taxiways
« Reply #10 on: August 22, 2008, 09:33:44 AM »
I see...I thought you were refering to the amount of lines related to images, not to the Image index number.I think that a way this can be fixed is using an sign that doesn't need four views, but the point is that in this case you need to show which is the allowed direction.... :-\

One thing more, so signs are supposed to have only two rotations? and what about semaphores?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: Graphical glitch on taxiways
« Reply #11 on: August 22, 2008, 10:22:27 AM »
The same wiki page will show it to you: Four images per state. This is, because signals are based internally on signs.

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Graphical glitch on taxiways
« Reply #12 on: August 22, 2008, 11:15:58 AM »
In real airports they use this sign:

Which means the same as for road vehicles
Quote
No entry sign: Do not enter this area. Aircraft are prohibited. This sign would be found at the entrance to a one-way taxiway or at the intersection of a road intended for vehicles.

More info about taxiing signage, in case you want to try a different design:



« Last Edit: August 22, 2008, 12:15:32 PM by vilvoh »

Offline Kgm13

  • *
  • Posts: 28
Re: Graphical glitch on taxiways
« Reply #13 on: August 24, 2008, 03:50:33 AM »
personaly its only a small grapics problem, i dont see the problem with it, it is possible to live with it isnt it?