• 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.

FS2004 Trees, once again !

Messages
53
Country
france
Hi All !

First, Many many thanks for all people posting here ; I learned so much, here ! To make our scenery, LFSR French AB, coming on very soon.

Now, I"m making Trees "autogen-like" with original textures of ACOF, using asm-tweaking tips with 6 seasons (yes ! SIX ! : SP, SU, FA, WI, HW and WI again !) and tuning dates to match season changes in FS9 (for this location).

Everything runs fine for SP, SU, FA and WI but HW texture seems too bright, "catching too much light" :


left : 2 original autogen trees, center : my only-made autogen-like tree, right : another one waiting for tweaking.

I killed shadows in myfile.asm, as I read on this forum :
"shadow_riff_start_0 label BGLCODE
db 'S','H','A','D'
dd shadow_riff_end_0 - $ - 4
SHADOW_0L label BGLCODE

Kill_Shadow_top label BGLCODE
bgl_riff_start_Kill_Shadow label BGLCODE
db 'B','G','L',' '
dd bgl_riff_end_Kill_Shadow - $ - 4

LOD_0_Kill_Shadow label BGLCODE
BGL_END
BGL_RETURN

bgl_riff_end_Kill_Shadow label BGLCODE

shadow_riff_end_0 label BGLCODE"

and modified myfile_0.asm like this :

"vertex_riff_start_Tree_AG_01F label word
db 'V','E','R','T'
dd vertex_riff_end_Tree_AG_01F - $ - 4
VERTEX_LIST_BEGIN
VERTEX_DEF -7.500000, 0.000000, 0.012000, 1.000000, 1.000001, -1.000000, 0.000000,0.750000 ; 0 part= 1 prim=0
VERTEX_DEF -7.500000, 0.000000, -0.008000, 1.000000, 1.000000, -1.000000, 0.000000,0.750000 ; 1 part= 1 prim=0
VERTEX_DEF -7.500000, 15.000001, 0.008000, 1.000000, 1.000000, -1.000000, 0.000000,1.000000 ; 2 part= 1 prim=0
VERTEX_DEF -7.500000, 15.000001, -0.008000, 1.000000, 1.000000, -1.000000, 0.000000,1.000000 ; 3 part= 1 prim=0
VERTEX_DEF -0.008000, 0.000000, 7.500000, 1.000000, 1.000000, -1.000000, 0.250000,0.750000 ; 4 part= 1 prim=0
VERTEX_DEF -0.008000, 0.000000, -7.500000, 1.000000, 1.000000, -1.000000, 0.000000,0.750000 ; 5 part= 1 prim=0
VERTEX_DEF -0.008000, 15.000001, 7.500000, 1.000000, 1.000000, -1.000000, 0.250000,1.000000 ; 6 part= 1 prim=0
VERTEX_DEF -0.008000, 15.000001, -7.500000, 1.000000, 1.000000, -1.000000, 0.000000,1.000000 ; 7 part= 1 prim=0
VERTEX_DEF 0.008000, 0.000000, 7.500000, 1.000000, 1.000000, -1.000000, 0.250000,0.750000 ; 8 part= 1 prim=0
VERTEX_DEF 0.008000, 0.000000, -7.500000, 1.000000, 1.000000, -1.000000, 0.000000,0.750000 ; 9 part= 1 prim=0
VERTEX_DEF 0.008000, 15.000001, 7.500000, 1.000000, 1.000000, -1.000000, 0.250000,1.000000 ; 10 part= 1 prim=0
VERTEX_DEF 0.008000, 15.000001, -7.500000, 1.000000, 1.000000, -1.000000, 0.000000,1.000000 ; 11 part= 1 prim=0
VERTEX_DEF 7.500000, 0.000000, 0.012000, 1.000000, 1.000000, -1.000000, 0.250000,0.750000 ; 12 part= 1 prim=0
VERTEX_DEF 7.500000, 0.000000, -0.008000, 1.000000, 1.000000, -1.000000, 0.250001,0.750000 ; 13 part= 1 prim=0
VERTEX_DEF 7.500000, 15.000001, 0.008000, 1.000000, 1.000000, -1.000000, 0.250000,1.000000 ; 14 part= 1 prim=0
VERTEX_DEF 7.500000, 15.000001, -0.008000, 1.000000, 1.000000, -1.000000, 0.250001,1.000000 ; 15 part= 1 prim=0
VERTEX_LIST_END
BGL_RETURN
vertex_riff_end_Tree_AG_01F label word"

and
"; NonAlpha
Tree_AG_01F_NonAlpha label BGLCODE
BGL_CALL_32 Tree_AG_01F_MasterScale_1 ; Node 1 - MasterScale
BGL_END
BGL_RETURN


Tree_AG_01F_MasterScale_1 label BGLCODE
IFIN1 tex_01, 038Ah, 1, 45
MATERIAL 0,4 ; hardwinter
JUMP tex_continue
tex_01 label word
IFIN1 tex_02, 038Ah, 46, 76
MATERIAL 0,3 ; winter
JUMP tex_continue
tex_02 label word
IFIN1 tex_03, 038Ah, 77, 169
MATERIAL 0,1 ; spring
JUMP tex_continue
tex_03 label word
IFIN1 tex_04, 038Ah, 170, 262
MATERIAL 0,0 ; summer
JUMP tex_continue
tex_04 label word
IFIN1 tex_05, 038Ah, 263, 324
MATERIAL 0,2 ; fall
JUMP tex_continue
tex_05 label word
MATERIAL 0,3 ; winter
tex_continue label word
DRAW_TRI_BEGIN 0, 16"

I'm not an ASM professional !

Can anyone help to solve this ?

Many thanks.
SYS

Green51
 
Hi,

What I would do is change the normals of your trees, if you change them from:

1.000000, 1.000001, -1.000000

to:

0.000000, 1.000000, 0.000000

I expect that you have more constant lighting.
 
Hi Arno,
Great job you made for the community & thanks for your always good advices & answers.
I go to try your tip & tell how it works.
Back in few minutes ;)

Green51

Edit :

Works fine, as autogen trees !
Many thanks Arno ! I'll also try it on my grass textures which are too much bright, too, in HW.

Many thanks again, see you soon !

Green51
 
Last edited:
Back
Top