Hi,
I was just wondering how changing the view/camera position is supposed to work? The Point Of View sample is not clear to me how it works and the directionUp parameter in the 'LookAt' methods do not seem to function in any way that I can understand (e.g. two perpendicular vectors produce views in the same plane). I would just like to position a camera, and point it in a direction. Any help would be greatly appreciated.
Programming Views
Re: Programming Views
Hello RJD
It looks like there is a regression in the sample in the Look at dialogue ((View Point in the menu) > Geometry > Direction > Look at). We are looking at it
. There should be an update soon.
As a workaround (View Point in the menu) > Geometry > Direction > Rotation seems to be working. The viewpoint rotates relatively to its current local axes OK.
Thank you for reporting.
More shortly
It looks like there is a regression in the sample in the Look at dialogue ((View Point in the menu) > Geometry > Direction > Look at). We are looking at it
As a workaround (View Point in the menu) > Geometry > Direction > Rotation seems to be working. The viewpoint rotates relatively to its current local axes OK.
Thank you for reporting.
More shortly
Re: Programming Views
Preliminary:
We consider camera notion as secondary. The main thing is the view volume. It is an oriented box (little tapered in case of perspective projection) positioned and oriented arbitrary in 3D. DGKC window displays projection to the front rectangle of the box. So, the point of view is completely defined by the location, orientation and size of the box.
The Look At dialogue and the code behind are supposed to simplify the functionality and provide shortcuts.
Viewing Volume in docs
View Blog
I hope to write more after we fix the bug.
We consider camera notion as secondary. The main thing is the view volume. It is an oriented box (little tapered in case of perspective projection) positioned and oriented arbitrary in 3D. DGKC window displays projection to the front rectangle of the box. So, the point of view is completely defined by the location, orientation and size of the box.
The Look At dialogue and the code behind are supposed to simplify the functionality and provide shortcuts.
Viewing Volume in docs
View Blog
I hope to write more after we fix the bug.
Re: Programming Views
We just have posted a fix for the sample in the 5744 update.
It has turned into a bit of a project. We have reworked the sample a little. There is a new ILookAt_DG.
New IViewPoint_DG.GetLocation() is a shortcut for the IViewPoint_DG > IFrame_DG query.
It has turned into a bit of a project. We have reworked the sample a little. There is a new ILookAt_DG.
New IViewPoint_DG.GetLocation() is a shortcut for the IViewPoint_DG > IFrame_DG query.
Re: Programming Views
We have found an issue with accessing transient viewpoints from .NET controls. This has been fixed in 5745 update.