Jump to content

  • Log In with Google      Sign In   
  • Create Account

Richard Goodrum

Member Since 11 Jan 2012
Offline Last Active Nov 30 2013 09:28 AM

Posts I've Made

In Topic: Creating a hud/gui with GLSL

23 March 2012 - 03:51 PM

Well, I mean how can I show it through the shader?

In Topic: Creating a hud/gui with GLSL

23 March 2012 - 03:50 PM

ok I'll try and implement this, so I will have to rotate the vertices as the game is a first person shooter, so it rotates with the camera. Also, how can I create a dynamic text variable for the hud, such as the score?

In Topic: Maintaining speed with touch path

14 March 2012 - 10:38 AM

Sorry I think I was a bit unclear about my intentions. My plane has a velX and velY value that is added to the position to move it. When a path is created I'm having an issue moving the plane along to the next point. I tried :

double theta = Math.atan2(pathPoints.firstElement().y-posY, pathPoints.firstElement().x - posX);

velX=(float) (magnitude * Math.sin(theta));
velY=(float) (magnitude * Math.cos(theta));

but this results in the plane moving in a straight line away from the point, in the opposite direction. I also tried doing posY-velY but this resulted in the plane flying in a circle. What am I doing wrong?

In Topic: Maintaining speed with touch path

13 March 2012 - 11:10 AM

Forgot to mention, if the plane is moved after being held down, points are collected and added to this vector.

In Topic: AABB transforming

15 February 2012 - 06:29 AM

I managed to work out what was wrong after creating a box and printing results to the screen. Basically, each time the render function was being called the transformation matrix was multiplying each corner over and over, making the boxes move further away constantly. I fixed it by setting a start minimum and maximum and setting these first when updating. Thanks for the advice!