Frederic Bouvier writes:
>
>do you mean this kind of data :
>
> ssgSimpleState: Name=NoName
>   Userdata = 00000000
>   Translucent  = False
>   ExternalProp = 0
>   Don't Care   = CULLFACE
>   Enabled      = TEXTURE2D COLOR_MATERIAL LIGHTING
>   TexHandle    = 2
>   TexFilename  =
>'c:/flightgear/cvs/fgfsbase/Aircraft/c172/Models/c172-02.rgb'
>   Shade Model  = 7425
>   Shininess    = 72.000000
>   AlphaClamp   = -431602080.000000
>   ColourMatMode= GL_AMBIENT_AND_DIFFUSE
>   Ambient  :
>(-431602080.000000,-431602080.000000,-431602080.000000,-4316020
>80.000000)
>   Diffuse  :
>(-431602080.000000,-431602080.000000,-431602080.000000,-4316020
>80.000000)
>   Specular : (0.000000,0.000000,0.000000,1.000000)
>   Emission : (0.000000,0.000000,0.000000,1.000000)
>
>Shouldn't the values of color component in the range [0..1] ?

YES !

Seeing these out of bound values makes me 'suspect' that there is
something in the model that is corrupting the PLib parser with this 
model.  

However I haven't been able to track down exactly what is going on :-(

Norman

>----- Original Message -----
>From: "Norman Vine" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, July 22, 2002 8:21 PM
>Subject: RE: [Flightgear-devel] Lighting
>
>
>> Norman Vine writes:
>>
>> Not really sure what all it means and / or how they get there but ...
>> There are some 'interesting values in the file this generates
>>
>> void
>> FGAircraftModel::init ()
>> {
>>   _aircraft = new FGModelPlacement;
>>   string path = fgGetString("/sim/model/path",
>"Models/Geometry/glider.ac");
>>   try {
>>     _aircraft->init(path);
>>   } catch (const sg_exception &ex) {
>>     SG_LOG(SG_GENERAL, SG_ALERT, "Failed to load aircraft 
>from " << path);
>>     SG_LOG(SG_GENERAL, SG_ALERT, "(Falling back to glider.ac.)");
>>     _aircraft->init("Models/Geometry/glider.ac");
>>   }
>>   _scene->addKid(_aircraft->getSceneGraph());
>>   _selector->addKid(_aircraft->getSceneGraph());
>>   globals->get_scenery()->get_aircraft_branch()->addKid(_selector);
>> #if 0
>>   FILE *fp;
>>   fp = fopen("model.ascii", "wt");
>>   _aircraft->getSceneGraph()->print(fp);
>>   fclose(fp);
>> #endif
>> }

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to