www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Minigame on January 24, 2015, 10:48:53 am

Title: 3D -> 2D mouse coords?
Post by: Minigame on January 24, 2015, 10:48:53 am
I've got the 2D -> 3D mouse coordinates concept down, but how can I reverse that? My goal is to set up a system where I can click on an entity, and a simple options box will be rendered in 2D space.

Here's a microsoft paint where red X = mouse position and the white box is what I want to accomplish..
(http://i.imgur.com/ZXCDGog.png)
Title: Re: 3D -> 2D mouse coords?
Post by: EgonOlsen on January 24, 2015, 02:01:13 pm
Interact2D has several methods to project a 3d vertex onto the screen.