Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


FGFS

Member Since 15 Mar 2013
Offline Last Active Mar 24 2015 03:03 AM

Posts I've Made

In Topic: rotate image around center

24 March 2015 - 03:06 AM

Yes on y, something alike:

 

     glTranslatef((offx + 1492), (offy + 1242), 0);
    glRotatef(XPLMGetDataf(phi), 0, 0, 1);//roll
     double Pi = 3.14159265;
    float degrees = (XPLMGetDataf(theta) * 180) / Pi;
    if (degrees <= 90 && degrees >= -90){
     glTranslatef(0,degrees, 0);//pitch
    }
     glTranslatef(-(offx + 1492), -(offy + 1242), 0);

 

seems to work but needs more testing and probably degrees <=180?

Let me know if you have a better solution.

Thanks and regards


In Topic: rotate image around center

24 March 2015 - 12:42 AM

Thanks but I'm stuck. Basically I want to move the texture up/down on y (2D panel) in correlation to:

 

theta float 660+ yes degrees

The pitch relative to the plane normal to the Y axis in degrees - OpenGL coordinates

 

as seen here:

http://www.xsquawkbox.net/xpsdk/docs/DataRefs.html

What do you mean by dist?

Thanks again


In Topic: rotate image around center

23 March 2015 - 03:00 AM

Thanks, works. Now if I want the image also to move up/down depending on pitch, how would that look?

Thanks in advance.


In Topic: UE4 now free

09 March 2015 - 02:38 AM

All seems fine on Ubuntu 14.04. Now with Photoshop CS6 on Wine and Blender I've all I need to get started.

 


In Topic: Vulkan is Next-Gen OpenGL

09 March 2015 - 12:07 AM

Maybe we see soon Android modified to run webgl/html aside / instead of java. Wouldn't surprise me and would make sense for google to not help
with Vulkan?

http://www.phoronix.com/scan.php?page=news_item&px=Chrome-OS-Freon-Graphics


PARTNERS