Tagged Questions
2
votes
1answer
258 views
Position Reconstruction from Depth by inverting Perspective Projection
I had some trouble reconstructing position from depth sampled from the depth buffer. I use the equivalent of gluPerspective in GLM. The code in GLM is:
template
GLM_FUNC_QUALIFIER detail::tmat4x4 ...
3
votes
2answers
154 views
Camera placement sphere for an always fully visible object
Given an object:
With the bounds [x, y, z, width, height, depth]
And an orthographic projection [left, right, bottom, top, near, far]
I want to determine the radius of a sphere which allows me to ...
1
vote
3answers
2k views
Find Point with only angle and distance
I'm working on a school project and we have to create a tank team with the programming game Robocode (tank battle with self programmed bots in Java).
I have to program a scout bot that scans, finds ...
4
votes
3answers
561 views
Kepler orbit : get position on the orbit over time
I'm developing a space-simulation related game, and I am having some trouble implementing the movement of binary stars, like this:
The two stars orbit their centroid, and their trajectories are ...