Jump to content
  • Advertisement
Sign in to follow this  
SkeletorFromEternia

OpenGL Location of collision with non transparent pixel (2D)

This topic is 2157 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

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!