This is my 3rd attempt to send a message
if you intrested in attachment i can sen directly
Hi guys!
I still try to implement runway lights and do some progress
If you want to enable runway lights on linux
1) Install latest mesa 4.0.1 (full install)
That replace old glut and glu libraries (if you don't do this you have
software rendering mode on runway lights)
2)install nvidia drivers (I have Geforce3 and I'm fan of nvidia) (2313 works
well)
3) replace mesa *.h files with nvidia (gl.h gltoken.h glext.h)
4) in tileentry.cxx use following lines of code to activate point
extensions
static int fgLightsPredraw( ssgEntity *e ) {
//#if 0
//#ifdef GL_EXT_point_parameters
if (glutExtensionSupported("GL_EXT_point_parameters")) {
static float quadratic[3] = {1.0, 0.01, 0.0001};
glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quadratic);
glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
glPointSize(4.0);
}
//#endif
//#endif
return true;
}
static int fgLightsPostdraw( ssgEntity *e ) {
//#if 0
//#ifdef GL_EXT_point_parameters
if (glutExtensionSupported("GL_EXT_point_parameters")) {
static float default_attenuation[3] = {1.0, 0.0, 0.0};
glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT,
default_attenuation);
glPointSize(1.0);
}
//#endif
//#endif
return true;
}
5) compile flightgear
Flightgear works but when I want to add runway lights it's hangs up on
attention please -> VOR/NDB loading Why? I can't this understand
in tileentry I add definition of runway lights
if ( token == "RWY_LIGHTS" ) {
in >> common;
}
so my tile3662178.stg looks like
OBJECT_BASE 3662178.btg
OBJECT URMN.btg
RWY_LIGHTS data2.atg
where data2.atg is file with description of runway lights
I make program that calculate light positions
you only need to know corner coordinates of runway
(you can use PPE to know runway corners)
I attach this
after that I load runway lights description in tileentry.cxx similar to
main.cxx
It loaded fine but seg fault on loading VOR ????????
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel