Public Group

World Coordinates to Screen

This topic is 3515 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hey there. Im trying to gather some synthetic data, basically i want the world coordinates of a scene in screen coordinates as the camera or the objects move. I want to have as realistic geometry as possible, so I was thinking of taking an existing game engine and using that to get my data. http://www.loria.fr/~berger/lepetit/images/reconstruction.gif The image in the link kind of explains what i want to do. Given a point in the world, I want to know where it maps to in the screen for successive frames. This doesnt have to be real time. I have been looking into some engines like Cyrengine and the half life 2 but not sure which would be appropriate. It would be great to get some pointers so i can check this out. hanks for your help.

Share on other sites
Unless I misunderstand you, this is pretty trivial.

You have a point in world space, and you presumably know enough about the state of the simulation to compute where that point will be in world space for the next n successive frames as well (otherwise you wouldn't be able to generate those n successive frames). So compute those points, and then transform the lot of them to screen space. This is done by applying the view and projection transforms, which places you in clip space. You then perform the perspective divide (by W) which brings you to normalized device coordinate space (-1, 1 on the X and Y axis). You can then transform this to a (0,1) range or pixel/window-coordinate based ranged, as needed.

Share on other sites
Exactly, but I dont want to build the engine myself. I want to have a scene with as realistic geometry and lighting as possible. Thats what I thought about using some existing environment, but Im just not sure how customizable they are.

1. 1
2. 2
Rutin
20
3. 3
khawk
17
4. 4
A4L
14
5. 5

• 12
• 16
• 26
• 10
• 44
• Forum Statistics

• Total Topics
633759
• Total Posts
3013716
×