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,-431602080.000000) Diffuse : (-431602080.000000,-431602080.000000,-431602080.000000,-431602080.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] ? -Fred ----- 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: > > > >Curtis L. Olson writes: > >> > >>The problem only seems to happen when the 3d model is in the view. To > >>me, that would point to a problem with the model, or a problem with > >>plib's handling of the model. For instance if the 3d model tickles > >>some material or lighting feature that plib doesn't normally handle or > >>doesn't handle at all. But, I would be (maybe very) surprised to find > >>such a bug in plib that no one else has discovered previously. > > > >It might be informative to dump out or use gdb to look at the > >the actual > >OpenGL state values being used > >i.e the ambient, emissive, specular ect > >in the pre and post callbacks for the 3d model > > > >If one of these is being 'tromped on' then funny things are > >bound to happen ! > > 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 > } > > > e.g. > ssgVtxTable: Name=NoName > Userdata = 0x0 > Num Parents=1 > ssgSimpleState: Name=NoName > Userdata = 0x0 > Translucent = True > ExternalProp = 0 > Don't Care = CULLFACE > Enabled = TEXTURE2D COLOR_MATERIAL BLEND LIGHTING > TexHandle = 3 > TexFilename = > '/home/nhv/FlightGear/Aircraft/c172/Models/c172-01.rgb' > Shade Model = 7425 > Shininess = 2.000000 > AlphaClamp = -0.326197 > ColourMatMode= GL_AMBIENT_AND_DIFFUSE > Ambient : (-0.455241,-0.326197,0.526312,-0.455241) > Diffuse : (-0.326197,-0.468420,-0.832415,-0.326197) > Specular : (0.000000,0.000000,0.000000,1.000000) > Emission : (0.000000,0.000000,0.000000,1.000000) > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel