Jump to content
Sign in to follow this  
Guest JR Morgan

Polygon looking to the observer??

Recommended Posts

Guest GabrielR

Hi guys, does anybody now how to model a polygon that always looks at the user, this would be for some nice cones on the appron and I have a very limited polygon budget in my project so far....Can it be accomplished via gmax-BLGC or is this one of the Scasm things. Thanks...

Share this post


Link to post
Share on other sites

SCASM command is RotateToAircraft and the BGLC command I can't remember now :), I'll look it up when I get home this evening...Arno


Member Netherlands 2000 Scenery Team[link:home.wanadoo.nl/arno.gerretsen]Arno's FlightSim World for scenery design hints, tips and other tricks...

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest GabrielR

Thank You, as always, Arno, BTW where do you get so much info? Is it by your personnal experience, or do you have a hidden and secret source? :-)

Share this post


Link to post
Share on other sites

Right now it is personal experience :), but I learned most of it from reading the SCASM docs and then just trying if it does what I want it to do. For the BGLC commands I use the Scenery SDK normally (or I search through the include files).Arno


Member Netherlands 2000 Scenery Team[link:home.wanadoo.nl/arno.gerretsen]Arno's FlightSim World for scenery design hints, tips and other tricks...

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest gorchi

Hi Gabriel,You asked nothing new so I wont tell anything new :) Anyway, I just made a quick search through older posts:http://ftp.avsim.com/dcforum/DCForumID10/1804.htmlhttp://ftp.avsim.com/cgi-bin/dcforum/dcboa...rum=DCForumID10Hope this will help somehow. Details as usually will come from Arno or RhumbaFlappy... (and of course from somebody else is possible to!) :)Regards,Goran BrumenFS Slovenija 2002 teamhttp://slovenia.avsim.net

Share this post


Link to post
Share on other sites
Guest GabrielR

Thanks Guys, going to try that at home....

Share this post


Link to post
Share on other sites
Guest JR Morgan

Hi Gabriel...Here's a 'RotateToAircraft' API macro I call using Apt26 to make a statue which always faces the observer (aircraft). For best display efficiency, it uses a DXT1 type bitmap. 'ShadedTexPoly(' is used here because the 3D object is a photoreal statue to be illuminated at night and allows the code to be a little more simple than havingto create a 'YourTexture_LM.bmp' for night illumination. For trees or other objects not intended to be illuminated at night, you may use the standard 'TexPoly(' opcode below, instead of 'Shaded'TexPoly. ;**********************************Area( 5 %1 %2 %3 )IfVarRange( :no_display 346 %12 4 ) PerspectiveCall( :_P0 ) Jump( : ):_P0; Perspective:R0 mif( %11 ) RefPoint( 2 :R1 %4 %1 %2 v1= %10 E= %11 %13 %14 ) melse RefPoint( 7 :R1 %4 %1 %2 v1= %10 %13 %14 ) mifend:R1 RotateToAircraft( :R2 0 0 0 0 0 1 0 0 0 ) Return :R2Points( 0 -2 0 0 ; 0 -2 8 0 ; 1 3 8 0 ; 2 3 0 0 ; 3) LoadBitmap( 0 6 e0 0 0 0 YourBitmap.bmp )ShadedTexPoly( ai 0 95 251 1 95 63 2 2 63 3 2 251 )Return:no_displayEndA'********************************************Here's a picture of the object:J.R.

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...