Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Location of collision with non transparent pixel (2D)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 SkeletorFromEternia   Members   -  Reputation: 105

Like
0Likes
Like

Posted 18 August 2013 - 08:50 AM

Hi,

 

Im currently working on a turn based 4X sci-fi game where Im using OpenGL with an orthographic projection matrix for rendering my graphic content (2D only).

 

Right now Im implementing the space combat (which is in real time), and Im asking myself how I can locate the position where an incoming projectile (or starship) hits another starship or object in order to place an animation showing explosion there.

Since the game logic is working with a coarser damage model I only need this for the animation, so working on pixels would be better than using circles or rects which would have to be defined separately.

 

Whats the best way to do this (using OpenGL)?



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS