April 9, 200323 yr 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...
April 10, 200323 yr Commercial Member SCASM command is RotateToAircraft and the BGLC command I can't remember now :), I'll look it up when I get home this evening...ArnoMember 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
April 10, 200323 yr 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? :-)
April 10, 200323 yr Commercial Member 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).ArnoMember 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
April 10, 200323 yr 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
April 13, 200323 yr 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.
Create an account or sign in to comment