Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Shifting the dimensions of an object in OpenGL

This topic is 5714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Alright, for this little demo that I''m working on, which is basically a space flight pseudo-game, I''ve created a little Andromeda ripoff high speed travel system. Now, basically there is this funnel where the users ship is able to be seen(3rd person) and you can move the ship around inside the funnel, which will change direction depending on where you move. Now, the problem is that I don''t know how to change the shape of the funnel, and everything that I tried will change the shape of the funnel, but the length between vertexes(ises?) changes. I don''t want them to, but the only solution I can think of would be very CPU extensive. Any suggestions?

Share this post

Link to post
Share on other sites
use a scalar for the length so its always the same length

desired length/current length = scalar

now multiply each value by the scalar so that the current legth will change into the desired.

I''ve never seen Andromeda so I might be confused on what your doing eactly, maybe you can draw a plane at -z so the tube always ends at a certain point in front of the view.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!