Jump to content

Programming Question


asnnnnnf

Recommended Posts

I am using opengl with java light weight game library and I am trying to figure out how Kevin Forbes programmed the selection of objects in the game. I can currently ray cast out of my 3d perspective camera, and have the ray detect if it collided with a box the size of the object (say a tree), but in Don't Starve, it can detect if the mouse collided with the tree outline and it ignores the transparent parts of the .png tree. How did Kevin program this? I am very impressed by it, and just can't figure it out! I am trying to implement this in code in my own game. Thank you very much for responses!

Link to comment
Share on other sites

Archived

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

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...