Programming Views

Everything DG Kernel: Technical discussions and issues
Post Reply
RJD
Posts: 13
Joined: Thu Nov 28, 2024 4:57 am

Programming Views

Post by RJD »

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.
Nick
Site Admin
Posts: 37
Joined: Fri Jun 14, 2024 12:35 am

Re: Programming Views

Post by Nick »

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
Nick
Site Admin
Posts: 37
Joined: Fri Jun 14, 2024 12:35 am

Re: Programming Views

Post by Nick »

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.
Post Reply