Cross Section Tool for Meshes - #36
Open
alemuntoni wants to merge 84 commits into
Open
Conversation
…dateCrossSectionUniforms()
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
# Conflicts: # vclib/render/include/vclib/qt/gui/mesh_render_settings_frame.h # vclib/render/include/vclib/qt/mesh_viewer.h # vclib/render/src/vclib/qt/gui/mesh_render_settings_frame.cpp # vclib/render/src/vclib/qt/mesh_viewer.cpp
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h # vclib/render/include/vclib/render/drawable/abstract_drawable_mesh.h # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points/vs_points.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/fs_points_instance.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/vs_points_instance.sc
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/mesh/mesh_render_buffers.h # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points/fs_points.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points/vs_points.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_id/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_id/vs_points_id.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/fs_points_instance.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance/vs_points_instance.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance_id/fs_points_instance_id.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance_id/varying.def.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/points_instance_id/vs_points_instance_id.sc # vclib/render/shaders/vclib/bgfx/primitives/points/fs_points_id_in.sh
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h # vclib/render/src/vclib/bgfx/primitives/points.cpp
# Conflicts: # vclib/render/src/vclib/qt/gui/mesh_render_settings_frame.cpp
# Conflicts: # vclib/render/src/vclib/qt/gui/mesh_render_settings_frame.cpp
# Conflicts: # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/surface/fs_surface_in.sh # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/surface/vs_surface_in.sh # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/surface_id/fs_surface_id.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/surface_pbr/fs_surface_pbr.sc # vclib/render/shaders/vclib/bgfx/drawable/drawable_mesh/surface_pbr/vs_surface_pbr.sc
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h # vclib/render/include/vclib/bgfx/primitives/lines.h # vclib/render/include/vclib/render/drawable/abstract_drawable_mesh.h # vclib/render/shaders/vclib/bgfx/primitives/lines/cpu_generated_lines/fs_cpu_generated_lines.sc # vclib/render/shaders/vclib/bgfx/primitives/lines/cpu_generated_lines/vs_cpu_generated_lines.sc # vclib/render/shaders/vclib/bgfx/primitives/lines/fs_lines_id_in.sh # vclib/render/shaders/vclib/bgfx/primitives/lines/fs_lines_in.sh # vclib/render/shaders/vclib/bgfx/primitives/lines/primitive_lines/vs_primitive_lines.sc # vclib/render/shaders/vclib/bgfx/primitives/uniforms/lines_uniforms.sh
# Conflicts: # vclib/render/include/vclib/bgfx/primitives/lines.h # vclib/render/include/vclib/bgfx/primitives/points.h # vclib/render/shaders/vclib/bgfx/primitives/lines/fs_lines_in.sh # vclib/render/shaders/vclib/bgfx/primitives/lines/lines.config # vclib/render/shaders/vclib/bgfx/primitives/lines/varying.def.sc # vclib/render/src/vclib/bgfx/primitives/lines.cpp
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
# Conflicts: # vclib/render/include/vclib/bgfx/drawable/drawable_mesh_bgfx.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce cross-section rendering support across the rendering pipeline, including new data structures, uniform handling, and Qt UI integration. The main changes add the ability to configure, propagate, and bind cross-section settings for meshes and lines, and expose these controls in the GUI.
Cross-section rendering support
CrossSectionSettingsmember and related getter/setter methods toAbstractDrawableMesh, ensuring all drawable meshes can store and update cross-section parameters.CrossSectionUniformsclass, which manages GPU uniform updates and binding for cross-section parameters.Qt GUI integration
CrossSectionSettingsFrameand related signals/slots to the mesh render settings UI, enabling users to view and update cross-section settings interactively.These changes collectively enable cross-section rendering features throughout the rendering stack, from data structures and GPU uniforms to user-facing controls in the Qt GUI.
TODO:
Cross Section tool for ImGUI(Will be added when Widgets: Added SliderFloatRange2(), SliderIntRange2() for range selection (#76) ocornut/imgui#9164 is merged)