Skip to content
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

Toggleable orthographic camera added. #1098

Closed
wants to merge 1,433 commits into from

Conversation

aemreaydin
Copy link

@aemreaydin aemreaydin commented Dec 12, 2023

Fix: #17 #1096

mwestphal and others added 30 commits May 20, 2023 18:24
Improve versioning display with `--version`
* fix cppcheck

* another cppcheck fix

* try again
* Add soname to shared library

Update CMakelists to add soname to shared library
using  VERSION ${F3D_MAJOR_VERSION}.${F3D_MINOR_VERSION} and SOVERSION ${F3D_MAJOR_VERSION}
* Add a drop zone

- Add a new dynamic vtkF3DDropZoneActor (co-author: @snoyer )
- Show the dropzone when no file are loaded
- Remove previous behavior of showing information in the filename info
- Add a test
When no mapper is set vtkActor2D is erroring in the default
impl of rendering methods. Override them to avoid that.
…ile (f3d-app#831)

* Fix an issue with window not reset when loading another file
* Camera: Reset using screenspace
…3d-app#832)

* Add F3D_USE_EXTERNAL_DEPS option for third party libraries

* Use options F3D_USE_EXTERNAL_CXXOPTS and F3D_USE_EXTERNAL_NLOHMANN_JSON instead

* fix cppcheck

* explicitly specify the include directories

* fix

* fix typo

* add find_package to toplevel CMakeLists.txt file

* fix for codespell
 * Add `--camera-direction` option
 * Add `--camera-zoom-factor` option (need vtk 9.3)
 * Use `camera-direction` in default config file for better default camera direction (open to changes on this one)
 * Fix f3d-app#45
## Changes

* Updated `.gitignore` to include `build` directories, `.vs` directories (for visual studio) and `CMakeUserPresets.json`
* New option to invert zoom when using right mouse button + drag
* Added support for zooming in/out with either vertical or horizontal drag when holding right mouse button
* Added interaction unit test for invert zoom feature

Fixes f3d-app#280
## Rework animation suport

- Rely on real elapsed time instead of timestep to animate
- Store animationManager in loader instead of interactor
- Add an --animation-speed-factor option to slow, speed and invert time\
- Add an --animation-time option to set an animation time to load
- Add an --animation-frame-rate option to control animation frame rate
- Fix multiple issues related to time and improve internal doc 
- update tests accordingly
- Add doc for options and animations
- Update VTK version in CI and packaging
- Update baseline for VRML
- Switch to TBB for CI and update suppressions accordingly
 - Move initialization logic from a global logic to an instance logic
 - Remove a few useless `f3d::`
- Add simple support for dropping HDRI by pressing Ctrl while dropping
- Fix f3d-app#34 
- Fix an issue when options are changed before a file is loaded and add a test
- Ctrl pressed down cannot be tested 
- Update Doc and dropzone
Copy link

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

@snoyer
Copy link
Contributor

snoyer commented Dec 13, 2023

Any consensus on "orthographic" vs "orthogonal" vs "parallel" to name the projection within the app/UI?

Wikipedia says "Orthographic projection (also orthogonal projection and analemma) [...] is a form of parallel projection" and has a nice illustration which is very educational but doesn't solve the choice.

@Meakk
Copy link
Member

Meakk commented Dec 13, 2023

I vote for Orthographic.

@aemreaydin aemreaydin marked this pull request as ready for review December 15, 2023 19:15
.gitignore Show resolved Hide resolved
doc/user/OPTIONS.md Show resolved Hide resolved
library/VTKExtensions/Rendering/vtkF3DRenderer.cxx Outdated Show resolved Hide resolved
library/src/camera_impl.cxx Outdated Show resolved Hide resolved
library/src/interactor_impl.cxx Outdated Show resolved Hide resolved
library/src/interactor_impl.cxx Outdated Show resolved Hide resolved
library/src/interactor_impl.cxx Outdated Show resolved Hide resolved
Copy link
Member

@Meakk Meakk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the list of failing tests. They are all related to the cheatsheet, and it makes sense. Please update the baselines.

The following tests FAILED:
	165 - f3d::TestInteractionCheatsheetRaytracing (Failed)
	166 - f3d::TestInteractionCheatsheetWhiteBGRaytracing (Failed)
	167 - f3d::TestInteractionCheatsheetBlackBGRaytracing (Failed)
	168 - f3d::TestInteractionCheatsheetScalarsRaytracing (Failed)
	169 - f3d::TestInteractionNoFileCheatsheetRaytracing (Failed)
Errors while running CTest

@Meakk
Copy link
Member

Meakk commented Dec 18, 2023

baselines.zip

Just in case you need the new baselines

@mwestphal
Copy link
Contributor

@aemreaydin please "resolve" discussion that you have adressed :)

@mwestphal
Copy link
Contributor

You need to rebase again. I would suggest to add changelog right before mergingn to avoid this :)

@mwestphal
Copy link
Contributor

Hi @aemreaydin , need any help moving forward ?

@mwestphal
Copy link
Contributor

Hi @aemreaydin , please let us know if you still want to work on this :)

@mwestphal
Copy link
Contributor

superseeded by #1235

@mwestphal mwestphal closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an orthographic projection and a model unit sized grid