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.


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