Sign in to follow this  
Guest HSIMAN

GMAX-HOW DO IMAKE A LIGHT CONE APPEAR ONLY AT NIGHT

Recommended Posts

Hi and merry christmas to all of you friendsSorry but I am trying to put some night effets in my scenery. so I made a couple of cones with very light yellow color and applied transparency to it of 20 in the opacity menu.Then I made the little input in the asm file as it shows:*****BEFORE***** IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767 ADDOBJ OBJECT_0_SCALE SHADOW_CALL OBJECT_0_SCALEOBJECT_0_FAIL label BGLCODE BGL_JUMP_32 OBJECT_0_END *****AFTER***** IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767 ADDOBJ OBJECT_0_SCALEIFIN1 OBJECT_0_FAIL, tod, 3 SHADOW_CALL OBJECT_0_SCALEOBJECT_0_FAIL label BGLCODE BGL_JUMP_32 OBJECT_0_END **********************************************************************But it simply does not work!!I see the transparent cones any time of day or night!!!any help around, I am a bit lost??Thanks to all of youchristian, paris, france

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Here is what I used to make headlight beams only show during non-day time hours; Alphad40lf_Alpha label BGLCODE IFIN1 nolight,tod,2,4 //<< line added here ; 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 ; Node 104 - headlight01 transform: BGL_TRANSFORM_MAT -2.180234,12.192000,-1.171164, 1.000000,0.000000,0.000000, 0.000000,0.258819,-0.965926, 0.000000,0.965926,0.258819 BGL_LIGHT LIGHT_TAXI, 0.000, 0.000, 0.000, 10, 0.20, 0.01, 060606060h, 0.000000, 0.000000, 1.000000 ; source poly num = 2369 BGL_LIGHT LIGHT_TAXI, 0.000, 0.000, 0.000, 10, 0.20, 0.01, 060606060h, 0.000000, 0.000000, 1.000000 ; source poly num = 2370 BGL_TRANSFORM_END ; Transform headlight01 ; Node 106 - headlight02 transform: BGL_TRANSFORM_MAT 2.180234,12.192000,-1.171164, 1.000000,0.000000,0.000000, 0.000000,0.258819,-0.965926, 0.000000,0.965926,0.258819 BGL_LIGHT LIGHT_TAXI, 0.000, 0.000, 0.000, 10, 0.20, 0.01, 060606060h, 0.000000, 0.000000, 1.000000 ; source poly num = 2371 BGL_LIGHT LIGHT_TAXI, 0.000, 0.000, 0.000, 10, 0.20, 0.01, 060606060h, 0.000000, 0.000000, 1.000000 ; source poly num = 2372 BGL_TRANSFORM_END ; Transform headlight02 BGL_TRANSFORM_END ; Transform RotateAroundX nolight label BGLCODE //<< line added here BGL_END BGL_RETURNLou

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this