• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Can´t make shadows appear in gmax approns for fs9

Messages
26
Hi everybody I´m new in this forum so please excuse me for my ignorance in many issues of scenery design; anyway, despite I´ve read all the messages about creating a taxiway or appron using Gmax for fs2004, I cannot figure out the way to do it and I´m about to go crazy. I tried it in all ways, I made a platform out of a plane (meaning the geometric figure) made by gmax, and despite it specifies in the doc it gonna behave as a platform it doesn´t show the objects shadows when on it (when in the docs image appeas a chopper over the examples house roof with its shadows).
Simply what I want to know is how to make an appron with my own textures as many products have done. I´d like to know how to make my Gmax appron behave with all the ground attributes, shadows, taxi signs etc. and work in fs2004. All the examples I´ve read thus far are for fs2002 and I can´t make it out understanding how that works. I´ve even looked for the fs2002 gamepack download but it´s impossible I cannot find it anywhere. As back in a days all road drove you to Rome, nowadays all the roads lead you to fs2004 gamepack .

Please If anyone can help me (and please have some patience with me since I´m new in this stuff of designing) finding a way to make my gmax approns have their shadows for fs2004 (having in mind that I don´t have the fs2002 gamepack) I´ll be really grateful.

Thank you people
Greg
 
Hi again, I tried Arno's tweaking method but didn´t find the following piece of code he mentioned:


OBJECT_0_START label word
IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767
ADDOBJ OBJECT_0_SCALE
SHADOW_CALL OBJECT_0_SCALE
OBJECT_0_FAIL label BGLCODE

Instead of that makemdl generated this two .asm files


testflo1.asm with the following code:


; compile with BGLC /MDL C:\Archivos de programa\Microsoft Games\Flight Simulator 9\Addon Scenery\test\Scenery\testflo1.asm
db 'R','I','F','F' ; RIFF file identifier
dd bgl_data_end - $ - 4 ; size of RIFF data
db 'M','D','L','9' ; file identifire (FS9 model)

db 'M','D','L','H'
dd visual_model_header_end - $ - 4
dd visual_model_header_end - $ - 4
dd 0
dd 0
dd 213
dd 0
dd 0
dd 152
db 'F','S','8','0'
dd 2304
visual_model_header_end label dword

db 'I','S','F','T'
dd ver_end - $ - 4
db "MakeMDL - FS90 (9.00.030612.02)",0
ver_end label word

bounding_box_riff_start label word
db 'B','B','O','X'
dd bounding_box_riff_end - $ - 4
real4 -150.000, 0.000, -150.000
real4 150.000, 0.000, 150.000
bounding_box_riff_end label word


model_outside label BGLCODE
model_shadow label BGLCODE
model_inside label BGLCODE
crash_riff_start label BGLCODE
db 'C','R','A','S'
dd crash_riff_end - $ - 4
BGL_CRASH_START model_crash_end, 213
BGL_CRASH_OCTTREE crash_end_1
dw CRASH_FLAG_BUILDING_PLANE ; crash type
dw 1 ; nodes used
real4 -150.000000,0.000000,-150.000000 ; Box x,y,z
real4 300.000092,100.000031,300.000092 ; Box w,h,d
dw 1, 1, 1, 1, 1, 1, 1, 1 ; base offset into node table, one for each top-level branch
; So if you take branch 2 (count from 0), you add 1 to indices you encounter on that branch
; Nodes (254=empty 255=full, else an index into branch)
OCTTREE_NODE 254, 254, 254, 254, 254, 254, 254, 254 ; node 0
crash_end_1 label word
model_crash_end label word
BGL_RETURN
crash_riff_end label BGLCODE

exterior_riff_start_0 label BGLCODE
db 'E','X','T','E'
dd exterior_riff_end_0 - $ - 4
LOD_0L label BGLCODE
include C:\Archivos de programa\Microsoft Games\Flight Simulator 9\Addon Scenery\test\Scenery\testflo1_0.asm
exterior_riff_end_0 label BGLCODE



bgl_data_end label BGLCODE



and testflo1_0.asm

; BGL model for C:\Archivos de programa\Microsoft Games\Flight Simulator 9\Addon Scenery\test\Scenery\testflo1
;
; $Header:$
;
;----------------------------------------------------------------------------
;
; Final Status: 4 polys
; Alpha Status: 0 polys
; Light Status: 0 polys
; Library Status: 0 polys
;
; Start Time: 09/16/04 00:20:40
; Stop Time : 09/16/04 00:20:40
;
; Modeling units = 1.0000
; Radius = 212.1320
; Radius in meters = 212.1320
; Radius in modeling units = 213
;
testflo1_top label BGLCODE
texture_riff_start_kndflo1 label word
db 'T','E','X','T'
dd texture_riff_end_kndflo1 - $ - 4
TEXTURE_LIST_BEGIN
TEXTURE_DEF TEXTURE_BUILDING , <255,255,255,255>, 212.132034, "ZBIAS_TESTFLO01.BMP" ; 0
TEXTURE_LIST_END
BGL_RETURN
texture_riff_end_testflo1 label word


material_riff_start_testflo1 label word
db 'M','A','T','E'
dd material_riff_end_kndflo1 - $ - 4
MATERIAL_LIST_BEGIN
MATERIAL_DEF 1.000000,1.000000,1.000000,1.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
BGL_RETURN
material_riff_end_testflo1 label word


vertex_riff_start_testflo1 label word
db 'V','E','R','T'
dd vertex_riff_end_testflo1 - $ - 4
VERTEX_LIST_BEGIN
VERTEX_DEF -150.000015, -150.000015, 0.000000, 0.000000, 0.000000,-1.000000, 0.000000,0.000000 ; 0 part= 5 prim=0
VERTEX_DEF -150.000015, 150.000015, 0.000000, 0.000000, 0.000000,-1.000000, 0.000000,1.000000 ; 1 part= 5 prim=0
VERTEX_DEF 150.000015, -150.000015, 0.000000, 0.000000, 0.000000,-1.000000, 1.000000,0.000000 ; 2 part= 5 prim=0
VERTEX_DEF 150.000015, 150.000015, 0.000000, 0.000000, 0.000000,-1.000000, 1.000000,1.000000 ; 3 part= 5 prim=0
VERTEX_LIST_END
BGL_RETURN
vertex_riff_end_testflo1 label word


bgl_riff_start_kndflo1 label BGLCODE
db 'B','G','L',' '
dd bgl_riff_end_testflo1 - $ - 4
LOD_0_kndflo1 label BGLCODE

; NonAlpha
testflo1_NonAlpha label BGLCODE
BGL_CALL_32 kndflo1_MasterScale_1 ; Node 1 - MasterScale
BGL_END
BGL_RETURN


testflo1_MasterScale_1 label BGLCODE

; Node 3 - RotateAroundX transform:

BGL_SET_MATRIX_INDIRECT 0
BGL_CALL_32 kndflo1_testflo1_2 ; Node 5 - testflo1
testflo1_skip_1 label BGLCODE
MATERIAL 0,0 ; <255,255,255,255> ZBIAS_TESTFLO01.BMP;;;
BGL_RETURN


testflo1_testflo1_2 label BGLCODE
MATERIAL 0,0 ; <255,255,255,255> ZBIAS_TESTFLO01.BMP;;;
DRAW_TRI_BEGIN 0, 4
DRAW_TRI 2, 3, 0 ; poly=2 part=5
DRAW_TRI 1, 0, 3 ; poly=1 part=5
DRAW_TRI_END
BGL_RETURN


bgl_riff_end_testflo1 label BGLCODE
;
; STATIC ANIMATION BLOCK
;
static_matrix_list_riff_start_kndflo1 label word
db 'T','R','A','N'
dd static_matrix_list_riff_end_testflo1 - $ - 4

; Static matrix parameters for transform: 0
real4 1.000000, 0.000000, 0.000000, 0.000000
real4 0.000000, 0.000000, 1.000000, 0.000000
real4 0.000000, -1.000000, 0.000000, 0.000000
real4 0.000000, 0.000000, 0.000000, 1.000000
static_matrix_list_riff_end_testflo1 label word

;
; ANIMATION PARAMETER BLOCK
;
animation_parameters_riff_start_testflo1 label word
db 'A','N','I','P'
dd animation_parameters_riff_end_testflo1 - $ - 4
animation_parameters_riff_end_testflo1 label word

;
; ANIMATION COMMAND BLOCK
;
animation_commands_riff_start_testflo1 label word
db 'A','N','I','C'
dd animation_commands_riff_end_testflo1 - $ - 4

; Animation command for transform: 0 output index: 0
bgl_animation_command_start_kndflo1_0 label BGLCODE

BGL_TRANSFORM_INDIRECT 0, 0
bgl_animation_command_end_testflo1_0 label BGLCODE
animation_commands_riff_end_testflo1 label word

;
; SCENE GRAPH RIFF BLOCK
;
scene_graph_riff_start_kndflo1 label word
db 'S','C','E','N'
dd scene_graph_riff_end_kndflo1 - $ - 4

dw 1
bgl_scene_graph_entry_kndflo1_0 label byte
BGL_SCENEGRAPH_ENTRY 0, -1, -1, bgl_animation_command_end_kndflo1_0 - bgl_animation_command_start_kndflo1_0, bgl_animation_command_start_kndflo1_0 - bgl_scene_graph_entry_testflo1_0
scene_graph_riff_end_testflo1 label word

platform_riff_start_testflo1 label word
db 'P','L','A','T'
dd platform_riff_end_testflo1 - $ - 4
dd 2 ; platform count
BGL_PLATFORM_ENTRY 0, platform_vertex_start_kndflo1_0, 3, 0
BGL_PLATFORM_ENTRY 0, platform_vertex_start_kndflo1_1, 3, 0

platform_vertex_start_kndflo1_0 label byte
BGL_PLATFORM_VERTEX_ENTRY 150.000000, 0.000000, 150.000000
BGL_PLATFORM_VERTEX_ENTRY -150.000000, 0.000000, -150.000000
BGL_PLATFORM_VERTEX_ENTRY -150.000000, 0.000000, 150.000000

platform_vertex_start_kndflo1_1 label byte
BGL_PLATFORM_VERTEX_ENTRY -150.000000, 0.000000, -150.000000
BGL_PLATFORM_VERTEX_ENTRY 150.000000, 0.000000, 150.000000
BGL_PLATFORM_VERTEX_ENTRY 150.000000, 0.000000, -150.000000


platform_riff_end_kndflo1 label word


;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\Archivos de programa\Microsoft Games\Flight Simulator 9\Addon Scenery\test\Scenery\testflo1
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 09/16/04 00:20:40


Please anyone help me to find at least that piece of code or explain me how can i generate it since i cannot find it in these asm files

Also i gotta point out that I used both systems creating a platform out of the gmax plane(geometric figure) and leaving it as a plain object not being a platform; none of them worked.

Thanks
Greg
 
Hi Greg,

As mentioned in that tweak it is for Fs20002 only. For Fs2004 you can make ground polygons by using the zbias_ material prefix that gives the polygon a zbias. This should prevent ground bleedthrough and as far as I have seen the shadow is also correct.

In your other post you also mentioned something like a platform, if you mean the platform made with the GMax script there, you don't need that unless you want to make a hard polygon above the ground.
 
Hi, Arno. I also tried the zbias_prefix aproach. Here is what I did:

First I made a geometric plane in Gmax, then I added a material name called zbias_testflo01.bmp. After that I changed that material format to DXT1 (I also tested it with plain BMP format and DXT3 also but nothing happened). Then I added it in xml code placing it at 0 meters above ground level since I was using the zbias_ prefix in the texture name. Sadly nothing happened there was no shadow there and had bleedthrough now. The only way to solve the second problem was to place the object in xml at 0.005 meters above ground level. But the most important is that it didn´t make any shadow in there.
What can I do Arno?

Thank you
 
The zbias_ should not be in the texture name, but in the material name. This is what you can enter in the material editor.
 
Thanks man!!!!!

Arno, I had heard about your guruness and at long last I experienced it; you are a genius man! thank you so much you solved a problem that stole me almost 48 continuous hours of hard trying with different methods and ways to find nothing until you helped me.
Thanks!
Greg
 
arno said:
Hi Greg,

As mentioned in that tweak it is for Fs20002 only. For Fs2004 you can make ground polygons by using the zbias_ material prefix that gives the polygon a zbias. This should prevent ground bleedthrough and as far as I have seen the shadow is also correct.

Do you mean that this should be all that's required to make shadows appear on the textured plane? I can't make this happen, although the plane sits nicely on the ground without flicker.
Even if I place the polygon underground I still have my aircraft's shadow disappear when it passes over:)
 
Yes, it did when I tested it. But I probably used a color and no texture when I did the test. So I will give it another try with a texture when I get home :).
 
I've just tried it again, this time with a plane overlaid with another plane with a Platform attached. This gives me a shadow on the plane, but only if it it raised above the ground, for some reason, and only when the aircraft is sitting on it. The shadow isn't perfect though, it disappears at a lot of angles.
It's difficult to get the shadow to show up at all when flying over the plane.
This could work for what I want it for, but obviously I need to experiment a lot more.
I'd certainly be interested in your results here, Arno.
 
I tested it again, this time with a texture on the plane.

I can only confirm your findings. The shadow only appears when you attach a platform and when it is not at ground altitude. In all other cases there is no shadow.

I see this as one more indication that GMax is not meant to make ground polygons, especially since the new RIFF does not allow any kind of LayerCall like we used before.
 
Back
Top