Callback codes for scenery models for Flight Unlimited III

Callback codes are used to create light sources on models

noncommercial FU3 support page - just to keep FU3 flying !

Callback codes for flashing and steady lights on models

As demonstrated by Tomi Lehto 1998, night lights on building can be added to a finished .bin model file by using the modlight.exe program. By this method you can create red flashing lights and blue or white steady lights, but there must be more as you can see green-white flashing beacon inside the game. The way to create such models are explained in the FLIGHT3 WHITE PAPERS V 1.0.doc but without sample and code table.
The E coding for the reconstructed beacon object of FU2 looks like that: @v00strob is the used callback object here.


BEGIN "Beacon1"

COMMENT{
//  Converted by BintoE from: beacon0.bin
}

MATERIALS{
1,"Material",PHONG,RGB 255,255,255,TRANSP 0;
2,"Special",,RGB 255,255,255,TRANSP 100;
}

POINTS{
-0.0698867,-0.071671,11.3133;
0.0663543,-0.071671,11.3133;
0.0663543,0.0645701,11.3133;
-0.0698867,0.0645701,11.3133;
-0.0698867,-0.0716725,0.0;
0.0663543,-0.0716725,0.0;
0.0663543,0.0645685,0.0;
-0.0698867,0.0645685,0.0;
}

PARTS{
4,N,0,ff01,(2,3,0);
4,N,1,ff01,(2,0,1);
4,N,2,ff01,(6,5,4);
4,N,3,ff01,(6,4,7);
4,N,4,ff01,(4,0,3);
4,N,5,ff01,(4,3,7);
4,N,6,ff01,(7,3,2);
4,N,7,ff01,(7,2,6);
4,N,8,ff01,(6,2,1);
4,N,9,ff01,(6,1,5);
4,N,10,ff01,(5,1,0);
4,N,11,ff01,(5,0,4);
}

BEGIN "@v00strob"

POINTS{
-0.050000,0.052000,11.399100;
-0.050000,-0.048000,11.399100;
-0.050000,0.052000,11.499100;
-0.050000,-0.048000,11.499100;
0.050000,0.052000,11.399100;
0.050000,-0.048000,11.399100;
0.050000,0.052000,11.499100;
0.050000,-0.048000,11.499100;
}

PARTS{
0,N,0,ff02,(6,4,0);
0,N,1,ff02,(2,6,0);
0,N,2,ff02,(7,3,1);
0,N,3,ff02,(5,7,1);
0,N,4,ff02,(3,2,0);
0,N,5,ff02,(1,3,0);
0,N,6,ff02,(7,5,4);
0,N,7,ff02,(6,7,4);
0,N,8,ff02,(7,6,2);
0,N,9,ff02,(3,7,2);
0,N,10,ff02,(5,1,0);
0,N,11,ff02,(4,5,0);
}

END
            

The 10 valid callback codes:

00 @v00name flashing green, white

01 @v01name flashing yellow, white

02 @v02name flashing green, white, white

03 @v03name flashing red

04 @v04name flashing red

05 @v05name small steady white

06 @v06name small quick flashing red

07 @v07name small quick flashing red

08 @v08name small quick flashing blue

09 @v09name small quick flashing blue

0A @v10name small steady red

For each light build a small transparent cube object and give them the name @v00anyname.

@v is the light callback function, 00 the light code and anyname a free object name of not more than 5 characters.

Do not create a very slim support for the light, then when you use a slim rod as this was done for the original beacon model (left) it will vanish at a short distance. If the supporting object is larger then you will see the light in the far as you can test this with the Christmas tree sample below.

Here is a Christmas tree sample showing all 11 usable callback codes.download xmastree.zip here

    


Information: André Meystre
back to FU3 Terrain Workshop      next to Real world aircraft's