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

Add basic materials scene renderer proj #428

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

anishmgoyal
Copy link
Collaborator

This demonstrates the scene renderer for basic materials

footballhead added a commit to footballhead/bigwheels that referenced this pull request Apr 15, 2024
I added an ArcballCamera to google#428 and noticed that it wasn't working as
expected.

ArcballCamera wasn't updating mViewProjectionMatrix after modifying
mViewMatrix. This was causing the ArcballCamera to not work correctly
when combined with the classes introduced in google#426.
footballhead added a commit to footballhead/bigwheels that referenced this pull request Apr 15, 2024
I added an ArcballCamera to google#428 and noticed that it wasn't working as
expected.

ArcballCamera wasn't updating mViewProjectionMatrix after modifying
mViewMatrix. This was causing the ArcballCamera to not work correctly
when combined with the classes introduced in google#426.
apazylbe pushed a commit to footballhead/bigwheels that referenced this pull request Apr 17, 2024
I added an ArcballCamera to google#428 and noticed that it wasn't working as
expected.

ArcballCamera wasn't updating mViewProjectionMatrix after modifying
mViewMatrix. This was causing the ArcballCamera to not work correctly
when combined with the classes introduced in google#426.
Keenuts pushed a commit that referenced this pull request Apr 17, 2024
I added an ArcballCamera to #428 and noticed that it wasn't working as
expected.

ArcballCamera wasn't updating `mViewProjectionMatrix` after modifying
`mViewMatrix`. This was causing the ArcballCamera to not work correctly
when combined with the classes introduced in #426.
projects/gltf_basic_materials/CMakeLists.txt Outdated Show resolved Hide resolved
projects/gltf_basic_materials/CMakeLists.txt Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/main.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
Copy link
Member

@Keenuts Keenuts left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated Show resolved Hide resolved
footballhead added a commit to footballhead/bigwheels that referenced this pull request Nov 6, 2024
Additions to google#428 to upstream:

- ArcballCamera with user interaction
- Use error material if no material loaded
- LookAt+FitToCamera
- Knob for gltf-scene-file
- Some fix for anisotropy strength test re error material that I can't
  remember

Test with:

  /build/bin/vk_gltf_scene_viewer --gltf-scene-file glTF-Sample-Assets/Models/AnisotropyStrengthTest/glTF/AnisotropyStrengthTest.gltf
footballhead added a commit to footballhead/bigwheels that referenced this pull request Nov 6, 2024
Additions to google#428 to upstream:

- ArcballCamera with user interaction
- Use error material if no material loaded
- LookAt+FitToCamera
- Knob for gltf-scene-file
- Some fix for anisotropy strength test re error material that I can't
  remember
- Add ErrorVertex which only has in/out for positions
- Only create shaders when the program uses them

Test with:

  /build/bin/vk_gltf_scene_viewer --gltf-scene-file glTF-Sample-Assets/Models/AnisotropyStrengthTest/glTF/AnisotropyStrengthTest.gltf
@apazylbe apazylbe force-pushed the addBasicMaterialsScene branch from 904c845 to cd2b90e Compare November 10, 2024 21:32
@apazylbe apazylbe requested a review from Keenuts November 10, 2024 21:33
@apazylbe apazylbe force-pushed the addBasicMaterialsScene branch from 5fcc224 to a20d9bc Compare November 10, 2024 21:37
Copy link
Collaborator

@footballhead footballhead left a comment

Choose a reason for hiding this comment

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

LGTM thanks Aliya for addressing comments

projects/gltf_basic_materials/CMakeLists.txt Outdated Show resolved Hide resolved
@apazylbe apazylbe force-pushed the addBasicMaterialsScene branch from 71a479e to 09419a4 Compare November 12, 2024 14:57
anishmgoyal and others added 4 commits November 12, 2024 11:31
This demonstrates the scene renderer for basic materials

Co-authored-by: Hai Nguyen <chaoticbob@users.noreply.github.com>
Co-authored-by: Aliya Pazylbekova <apazylbe@users.noreply.github.com>
@apazylbe apazylbe force-pushed the addBasicMaterialsScene branch from 09419a4 to e633430 Compare November 12, 2024 16:31
@apazylbe apazylbe merged commit 90ae488 into google:main Nov 13, 2024
5 checks passed
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.

4 participants