-
Notifications
You must be signed in to change notification settings - Fork 72
Task/7 15 25 1515 visit camera mode helper #1596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 21 commits
d79a536
e9ed8e0
8ddb69f
c6cda28
8dc4da2
17a6124
05d5c30
dcd5e76
00272a3
3c47319
d631424
e80b65b
9c8fe60
6caff07
ec94407
82e0149
077d4c9
3a9ae24
1dc5d7b
91afd7c
e93c4f1
dd893c4
4483305
87b12bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,24 @@ Notable changes to Ascent are documented in this file. This changelog started on | |
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project aspires to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [0.9.5] | ||
| ### Preferred dependency versions for ascent@develop | ||
| - [email protected] or newer | ||
| - [email protected] | ||
| - [email protected] | ||
| - [email protected] | ||
| - [email protected] | ||
| - [email protected] | ||
| - [email protected] | ||
| - [email protected] | ||
|
|
||
| ### Added | ||
| - Added ability to define cameras for rendering using visit camera view parameters | ||
|
|
||
| ### Changed | ||
|
|
||
| ### Fixed | ||
|
|
||
| ## [0.9.4] - Released 2025-07-18 | ||
| ### Preferred dependency versions for ascent@develop | ||
| - [email protected] or newer | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -402,6 +402,63 @@ Now we add a second render to the same example using every available parameter: | |||||
| near_plane: 0.1 | ||||||
| far_plane: 100.1 | ||||||
|
|
||||||
| Rendering Camera Configuration | ||||||
| ------------------------------ | ||||||
| Ascent supports two primary methods for defining the rendering camera: | ||||||
| the Ascent native (VTKm style) camera, which is camera-centric, and the VisIt style camera, which is view-centric. | ||||||
| Both formats provide control over how scenes are rendered, but they differ in terminology, orientation, and internal computation of the view matrix. | ||||||
|
|
||||||
| Ascent Native (VTKm Style) Camera | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
| The native Ascent camera follows the VTKm camera model which focuses on defining the camera's physical parameters and orientation in 3D space. | ||||||
| This camera-centric approach specifies where the camera is located, what it is looking at, and how it is oriented. | ||||||
| The following parameters are supported: | ||||||
|
|
||||||
| - ``2d`` : Enables 2D rendering mode. | ||||||
| - ``look_at`` : A 3-element array [x, y, z] indicating the point the camera is directed toward. | ||||||
| - ``position`` : A 3-element array [x, y, z] indicating the camera's position in space. | ||||||
| - ``up`` : A 3-element vector that defines the up direction of the camera. | ||||||
| - ``fov`` : Field of view in degrees for perspective projection. | ||||||
| - ``xpan`` : Pan offset in the horizontal direction. | ||||||
| - ``ypan`` : Pan offset in the vertical direction. | ||||||
| - ``zoom`` : Uniform zoom factor applied to the view. | ||||||
| - ``near_plane`` : Distance from the camera to the near clipping plane. | ||||||
| - ``far_plane`` : Distance from the camera to the far clipping plane. | ||||||
| - ``azimuth`` : Rotates the camera around the up axis. | ||||||
| - ``elevation`` : Rotates the camera around the right axis. | ||||||
|
|
||||||
| VisIt Style Camera | ||||||
| ^^^^^^^^^^^^^^^^^^ | ||||||
| Alternatively, the camera can be defined using the VisIt camera parameters which follows a view centric approach. | ||||||
| Instead of positioning the camera explicitly, it defines the view using vectors like ``view_normal`` and ``view_up``, which describe the direction and orientation of the camera relative to a focal point. | ||||||
| The following parameters are supported: | ||||||
|
|
||||||
| - ``view_normal`` : A vector [x, y, z] indicating the direction from the camera toward the scene. | ||||||
emily-howell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - ``focus`` : A 3D point [x, y, z] indicating the point of focus in the scene. | ||||||
emily-howell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - ``view_up`` : A vector indicating which direction is up in the rendered view. | ||||||
| - ``view_angle`` : Field of view angle in degrees. | ||||||
|
||||||
| - ``view_angle`` : Field of view angle in degrees. | |
| - ``view_angle`` : Field of view angle in degrees for perspective projection. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the VisIt view_angle parameter is half the VTKm fov parameter, so maybe the description here could be different.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add that parallel_scale is half of the image height in world space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is used beyond orthographic projections, its a general param.
The name is strange, but Justin's description describes what it is.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In addition to the above supported VisIt camera parameters, there are a number of VisIt camera parameters that are not completely translatable to the VTKm style camera and are therefore currently ignored | |
| In addition to the above supported VisIt camera parameters, there are a number of VisIt camera parameters that are not completely translatable to the VTKm style camera and are therefore currently ignored. |
emily-howell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look great!
Uh oh!
There was an error while loading. Please reload this page.