Hi Arno et al,
I'm having a problem with my latest ground textures. If I do an export with just the summer texture, everything is fine. Once I do the tweaks for the seasons, the image appears almost completely transparent. I have a mask built into the image. If I remove the mask completely - no alpha - the texture still appears semi-transparent.
Here is my code. Could you please have a look and tell me if there is anything wrong?
Thanks, Adam
asm:
;compile with BGLC /BGL C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay.asm
header label word
dw 0001 ; 00 World set number
dd 00056AD22H ; 02 North bound
dd 00056A43CH ; 06 South bound
dd 0AEAB40E1H ; 10 East bound
dd 0AEAB40DFH ; 14 West bound
dw 20 dup(0)
dd (offset OBJECT_DATA) - (offset header)
dw 33 dup(0)
OBJECT_DATA label word
db 21 ;;LATBAND_REL
dw 02B52h ;;lat min (inclusive) 512M units
dw 02B57h ;;lat max (exclusive)
dd (offset OBJECT_0) - (offset OBJECT_DATA)
db 0 ;;EOL
OBJECT_0 label BGLCODE
db 12 ; NEAR_FAR_HUGE_OBJECT_HEADER
dd 00056A8AFh,0AEAB40E0h ; latitude,longitude
db 100 ; image power
dd (offset OBJECT_0_END) - (offset OBJECT_0)
OBJECT_0_START label word
IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767
ADDCAT OBJECT_0_SCALE, 2
OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 1139, 131072, 00056A8AFh, 0F383h, 0AEAB40E0h, 0D5B8h, 0, 0
BGL_CALL OBJECT_0_BEGIN
OBJECT_0_RETURN label word
BGL_RETURN
OBJECT_0_BEGIN label word
model_outside label BGLCODE
model_shadow label BGLCODE
LOD_0 label BGLCODE
BGL_JUMP_32 LOD_0L
model_inside label BGLCODE
BGL_RETURN
LOD_0L label BGLCODE
include Overlay_0.asm
OBJECT_0_END label word
EOF
asm_0:
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 03/06/07 12:14:48
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
; BGL model for C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
;
; $Header:$
;
;----------------------------------------------------------------------------
;
; Final Status: 2 polys
; Alpha Status: 0 polys
; Light Status: 0 polys
; Library Status: 0 polys
;
; Start Time: 03/06/07 12:14:48
; Stop Time : 03/06/07 12:14:48
;
; Modeling units = 2.0000
; Radius = 1138.1237
; Radius in meters = 1138.1237
; Radius in modeling units = 2277
;
Overlay_top label BGLCODE
BGL_BEGIN 0800h ; version = 8.00
TEXTURE_LIST_BEGIN
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1.BMP" ; 0
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_SP.BMP" ; 1
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_FA.BMP" ; 2
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_WI.BMP" ; 3
TEXTURE_LIST_END
MATERIAL_LIST_BEGIN
MATERIAL_DEF 1.000000,1.000000,1.000000,0.000000, 0.392157,0.392157,0.392157, 0.000000,0.000000,0.000000, 0.000000,0.000000,0.000000, 0.000000 ; 0
MATERIAL_LIST_END
VERTEX_LIST_BEGIN
VERTEX_DEF -490.423828, -451.422394, 0.000000, 0.000000, 0.000000,-1.000000, 0.003589,0.002327 ; 0 part= 4 prim=0
VERTEX_DEF -490.423828, 477.931152, 0.000000, 0.000000, 0.000000,-1.000000, 0.003589,0.999486 ; 1 part= 4 prim=0
VERTEX_DEF 477.195496, -451.422394, 0.000000, 0.000000, 0.000000,-1.000000, 0.995243,0.002327 ; 2 part= 4 prim=0
VERTEX_DEF 477.195496, 477.931152, 0.000000, 0.000000, 0.000000,-1.000000, 0.995243,0.999486 ; 3 part= 4 prim=0
VERTEX_LIST_END
; NonAlpha
Overlay_NonAlpha label BGLCODE
IFIN1 tex_01, 038Ah, 0, 107
MATERIAL 0,3 ; winter
JUMP tex_continue
tex_01 label word
IFIN1 tex_02, 038Ah, 356, 365
MATERIAL 0,3 ; winter
JUMP tex_continue
tex_02 label word
IFIN1 tex_03, 038Ah, 108, 152
MATERIAL 0,1 ; spring
JUMP tex_continue
tex_03 label word
IFIN1 tex_04, 038Ah, 153, 244
MATERIAL 1,0 ; summer
JUMP tex_continue
tex_04 label word
MATERIAL 0,2 ; fall
tex_continue label word
BGL_FTAG "MasterScale", 0.00 ; Node 1
; Node 1 - MasterScale transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 0.000977,0.000000,0.000000, 0.000000,0.000977,0.000000, 0.000000,0.000000,0.000977
BGL_FTAG "MasterUnitConve", 0.00 ; Node 2
; Node 2 - MasterUnitConversion transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 1024.000000,0.000000,0.000000, 0.000000,1024.000000,0.000000, 0.000000,0.000000,1024.000000
BGL_FTAG "RotateAroundX", 0.00 ; Node 3
; Node 3 - RotateAroundX transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 1.000000,0.000000,0.000000, 0.000000,0.000000,1.000000, 0.000000,-1.000000,0.000000
BGL_FTAG "Plane01", 0.00 ; Node 4
; Node 4 - Plane01 transform:
BGL_TRANSFORM_MAT -419.904510,1380.282959,-0.099968, 1.317600,0.000000,0.000000, 0.000000,1.317600,0.000000, 0.000000,0.000000,1.317600
; MATERIAL 0,0 ; <255,255,255,255> OVERLAY1.BMP;;;
DRAW_TRI_BEGIN 0, 4
DRAW_TRI 2, 3, 0 ; poly=2 part=4
DRAW_TRI 1, 0, 3 ; poly=1 part=4
DRAW_TRI_END
BGL_TRANSFORM_END ; Transform Plane01
BGL_TRANSFORM_END ; Transform RotateAroundX
BGL_TRANSFORM_END ; Transform MasterUnitConversion
BGL_TRANSFORM_END ; Transform MasterScale
BGL_END
BGL_RETURN
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 03/06/07 12:14:48
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
I'm having a problem with my latest ground textures. If I do an export with just the summer texture, everything is fine. Once I do the tweaks for the seasons, the image appears almost completely transparent. I have a mask built into the image. If I remove the mask completely - no alpha - the texture still appears semi-transparent.
Here is my code. Could you please have a look and tell me if there is anything wrong?
Thanks, Adam
asm:
;compile with BGLC /BGL C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay.asm
header label word
dw 0001 ; 00 World set number
dd 00056AD22H ; 02 North bound
dd 00056A43CH ; 06 South bound
dd 0AEAB40E1H ; 10 East bound
dd 0AEAB40DFH ; 14 West bound
dw 20 dup(0)
dd (offset OBJECT_DATA) - (offset header)
dw 33 dup(0)
OBJECT_DATA label word
db 21 ;;LATBAND_REL
dw 02B52h ;;lat min (inclusive) 512M units
dw 02B57h ;;lat max (exclusive)
dd (offset OBJECT_0) - (offset OBJECT_DATA)
db 0 ;;EOL
OBJECT_0 label BGLCODE
db 12 ; NEAR_FAR_HUGE_OBJECT_HEADER
dd 00056A8AFh,0AEAB40E0h ; latitude,longitude
db 100 ; image power
dd (offset OBJECT_0_END) - (offset OBJECT_0)
OBJECT_0_START label word
IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767
ADDCAT OBJECT_0_SCALE, 2
OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 1139, 131072, 00056A8AFh, 0F383h, 0AEAB40E0h, 0D5B8h, 0, 0
BGL_CALL OBJECT_0_BEGIN
OBJECT_0_RETURN label word
BGL_RETURN
OBJECT_0_BEGIN label word
model_outside label BGLCODE
model_shadow label BGLCODE
LOD_0 label BGLCODE
BGL_JUMP_32 LOD_0L
model_inside label BGLCODE
BGL_RETURN
LOD_0L label BGLCODE
include Overlay_0.asm
OBJECT_0_END label word
EOF
asm_0:
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 03/06/07 12:14:48
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
; BGL model for C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
;
; $Header:$
;
;----------------------------------------------------------------------------
;
; Final Status: 2 polys
; Alpha Status: 0 polys
; Light Status: 0 polys
; Library Status: 0 polys
;
; Start Time: 03/06/07 12:14:48
; Stop Time : 03/06/07 12:14:48
;
; Modeling units = 2.0000
; Radius = 1138.1237
; Radius in meters = 1138.1237
; Radius in modeling units = 2277
;
Overlay_top label BGLCODE
BGL_BEGIN 0800h ; version = 8.00
TEXTURE_LIST_BEGIN
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1.BMP" ; 0
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_SP.BMP" ; 1
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_FA.BMP" ; 2
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 444.440483, "OVERLAY1_WI.BMP" ; 3
TEXTURE_LIST_END
MATERIAL_LIST_BEGIN
MATERIAL_DEF 1.000000,1.000000,1.000000,0.000000, 0.392157,0.392157,0.392157, 0.000000,0.000000,0.000000, 0.000000,0.000000,0.000000, 0.000000 ; 0
MATERIAL_LIST_END
VERTEX_LIST_BEGIN
VERTEX_DEF -490.423828, -451.422394, 0.000000, 0.000000, 0.000000,-1.000000, 0.003589,0.002327 ; 0 part= 4 prim=0
VERTEX_DEF -490.423828, 477.931152, 0.000000, 0.000000, 0.000000,-1.000000, 0.003589,0.999486 ; 1 part= 4 prim=0
VERTEX_DEF 477.195496, -451.422394, 0.000000, 0.000000, 0.000000,-1.000000, 0.995243,0.002327 ; 2 part= 4 prim=0
VERTEX_DEF 477.195496, 477.931152, 0.000000, 0.000000, 0.000000,-1.000000, 0.995243,0.999486 ; 3 part= 4 prim=0
VERTEX_LIST_END
; NonAlpha
Overlay_NonAlpha label BGLCODE
IFIN1 tex_01, 038Ah, 0, 107
MATERIAL 0,3 ; winter
JUMP tex_continue
tex_01 label word
IFIN1 tex_02, 038Ah, 356, 365
MATERIAL 0,3 ; winter
JUMP tex_continue
tex_02 label word
IFIN1 tex_03, 038Ah, 108, 152
MATERIAL 0,1 ; spring
JUMP tex_continue
tex_03 label word
IFIN1 tex_04, 038Ah, 153, 244
MATERIAL 1,0 ; summer
JUMP tex_continue
tex_04 label word
MATERIAL 0,2 ; fall
tex_continue label word
BGL_FTAG "MasterScale", 0.00 ; Node 1
; Node 1 - MasterScale transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 0.000977,0.000000,0.000000, 0.000000,0.000977,0.000000, 0.000000,0.000000,0.000977
BGL_FTAG "MasterUnitConve", 0.00 ; Node 2
; Node 2 - MasterUnitConversion transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 1024.000000,0.000000,0.000000, 0.000000,1024.000000,0.000000, 0.000000,0.000000,1024.000000
BGL_FTAG "RotateAroundX", 0.00 ; Node 3
; Node 3 - RotateAroundX transform:
BGL_TRANSFORM_MAT 0.000000,0.000000,0.000000, 1.000000,0.000000,0.000000, 0.000000,0.000000,1.000000, 0.000000,-1.000000,0.000000
BGL_FTAG "Plane01", 0.00 ; Node 4
; Node 4 - Plane01 transform:
BGL_TRANSFORM_MAT -419.904510,1380.282959,-0.099968, 1.317600,0.000000,0.000000, 0.000000,1.317600,0.000000, 0.000000,0.000000,1.317600
; MATERIAL 0,0 ; <255,255,255,255> OVERLAY1.BMP;;;
DRAW_TRI_BEGIN 0, 4
DRAW_TRI 2, 3, 0 ; poly=2 part=4
DRAW_TRI 1, 0, 3 ; poly=1 part=4
DRAW_TRI_END
BGL_TRANSFORM_END ; Transform Plane01
BGL_TRANSFORM_END ; Transform RotateAroundX
BGL_TRANSFORM_END ; Transform MasterUnitConversion
BGL_TRANSFORM_END ; Transform MasterScale
BGL_END
BGL_RETURN
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\Program Files\Microsoft Games\Flight Simulator 9\Addon Scenery\CYBW\Scenery\Overlay
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 03/06/07 12:14:48
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
Last edited:

