Viewpoint Forums
Viewpoint Forums
SDK Support
window coordinate where the scene is painted|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
| <petrut>
|
Hi,
I was wandering if I can get the window's location (x,y, width, height) where an object is painted. Peter |
||
|
| <petrut>
|
Thank you for your answer. I'm just trying to locate where the scene is displayed in the 2D window, and its size. How do I project it on screen after I multiply it with the WorldMatrix and the camera matrix?
|
||
|
|
Member |
petrut
you may tell exactly where objects in a scene are located by looking at the MTX file. The declaration of the object is followed by its position and size...relative to the declared scene parameters. Following this, the object location, size, color, opacity, etc may be animated and manipulated at will. You might read the Viewpoint Experience Technology Deployment Guide for further enlightenment. Then, the Viewpoint Scene Interactors Reference Guide will make your head spin to understand, then to consider the possibilities. hth DavidR |
|||
|
| <petrut>
|
I'm not using a MTX file to define my scene. I'm using the SDK to display models in a custom application. I need to know where the model is displayed in the window to narrow down a search for the object.
Thaks |
||
|
| <Niko>
|
just divide x & y by z
and multiply y by the field of view, which is viewport width/viewport height. that's it. byt the way to compute the transformation of a 3d point from the scene in the 'viewport world', you need to multiply by the - inverse - of the camera worldmatrix. |
||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
SDK Support
window coordinate where the scene is painted
