Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Location of collision with non transparent pixel (2D)

4: Adsense

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   

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)?






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.