SchneiH2 Posted February 10, 2018 Report Posted February 10, 2018 Hi everybody Basically, there are two parts of the question: First is that I am trying to translate Ben's Gizmo64 code for the terrian map into a SDK plugin, however so far without success. My below code basically works, however, does not display a terrain texture. I am wondering, how to get the texture id of the terrian, if there is any. int efb_map_draw( XPLMDrawingPhase inPhase, int inIsBefore, void * inRefcon) { XPLMBindTexture2d(map_texture, 1); XPLMSetGraphicsState(0, 1, 0, 1, 1, 0, 0); glColor3f(0.75, 0.75, 0.75); glTranslated(64, 15, 0); glPushMatrix(); glBegin(GL_QUADS); glTexCoord2f(0, 1); glVertex3f(0, 50, 0); glTexCoord2f(0, 0); glVertex3f(0, 230, 0); glTexCoord2f(1, 0); glVertex3f(240, 230, 0); glTexCoord2f(1, 1); glVertex3f(240, 50, 0); glEnd(); glPopMatrix(); return 1; } Secondly, I am wondering whether there is a possibility to display the map from the map UI (i.e. aso differnt layers like VFR, IFR low/high) on an instrument/gauge. At least the G1000 gauge has this option. Having looked through the new map api I could not find any routine to get a texture id of the map. The map sample code on the SDK page creates to my understanding new layers in the map UI bu I do not see there any solution to display the map on an instrument on the 3d panel. Thank you up front for possible help. Best regards SHJ Quote
Ben Russell Posted February 11, 2018 Report Posted February 11, 2018 There is no terrain texture. You have to build it using the SDK probes function. These requests are getting ridiculous. Gizmo is a commercial product composed of hard won knowledge. I’m a little tired of you asking for cherry picked answers for short cuts to take for your own means. Either use it or earn your own battle scars. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.