Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


#ActualBrother Bob

Posted 22 July 2013 - 12:07 PM

It looks like the ships points are being defined off-center.   Once you've fixed this we can proceed to rotating them properly to face their trajectories
//=======================================================================================================
      glBegin(GL_LINE_LOOP);
          glVertex3f(-1.5f,-0.25f,0.0f);
          glVertex3f(-1.75f,-0.5f,0.0f);
          glVertex3f(-2.0f,-0.5f,0.0f);
          glVertex3f(-1.5f,0.5f,0.0f);
          glVertex3f(-1.0f,-0.5f,0.0f);
          glVertex3f(-1.25f,-0.5f,0.0f);
          glVertex3f(-1.5f,-0.25f,0.0f);
     glEnd();
//=======================================================================================================
The rest is looking good so far...
 
Edit: +1.5 to all the X values centers them on the Y-axis so they rotate properly.

#3marcClintDion

Posted 22 July 2013 - 03:08 AM

There is far too much arrogance and out right abuse by site moderators, they are teaching other people to behave this way.  The posts I've made will all be shorty removed and replaced with this notice.  Game development is not the only thing being taught here, bad behavior is being taught as well.


#2marcClintDion

Posted 01 July 2013 - 04:54 PM

It looks like the ships points are being defined off-center.   Once you've fixed this we can proceed to rotating them properly to face their trajectories
//=======================================================================================================
      glBegin(GL_LINE_LOOP);
          glVertex3f(-1.5f,-0.25f,0.0f);
          glVertex3f(-1.75f,-0.5f,0.0f);
          glVertex3f(-2.0f,-0.5f,0.0f);
          glVertex3f(-1.5f,0.5f,0.0f);
          glVertex3f(-1.0f,-0.5f,0.0f);
          glVertex3f(-1.25f,-0.5f,0.0f);
          glVertex3f(-1.5f,-0.25f,0.0f);
     glEnd();
//=======================================================================================================
The rest is looking good so far...
 
Edit: +1.5 to all the X values centers them on the Y-axis so they rotate properly.

#1marcClintDion

Posted 01 July 2013 - 04:52 PM

It looks like the ships points are being defined off-center.   Once you've fixed this we can proceed to rotating them properly to face their trajectories
//=======================================================================================================
      glBegin(GL_LINE_LOOP);
          glVertex3f(-1.5f,-0.25f,0.0f);
          glVertex3f(-1.75f,-0.5f,0.0f);
          glVertex3f(-2.0f,-0.5f,0.0f);
          glVertex3f(-1.5f,0.5f,0.0f);
          glVertex3f(-1.0f,-0.5f,0.0f);
          glVertex3f(-1.25f,-0.5f,0.0f);
          glVertex3f(-1.5f,-0.25f,0.0f);
     glEnd();
//=======================================================================================================
The rest is looking good so far...
 
Edit: +1.5 centers them on the Y-axis so they rotate properly.

PARTNERS