Implicit surface rendering via ray tracing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ZCWang fe893f8ba9 Commit local directory 2 years ago
..
backends Commit local directory 2 years ago
README.md Commit local directory 2 years ago
imgui_axis.cpp Commit local directory 2 years ago
imgui_axis.hpp Commit local directory 2 years ago
imgui_camera_widget.cpp Commit local directory 2 years ago
imgui_camera_widget.h Commit local directory 2 years ago
imgui_helper.cpp Commit local directory 2 years ago
imgui_helper.h Commit local directory 2 years ago
imgui_orient.cpp Commit local directory 2 years ago
imgui_orient.h Commit local directory 2 years ago

README.md

Helpers imgui

Table of Contents


imgui_camera_widget.h

functions in ImGuiH

  • CameraWidget : CameraWidget is a Camera widget for the the Camera Manipulator
  • SetCameraJsonFile : set the name (without .json) of the setting file. It will load and replace all camera and settings
  • SetHomeCamera : set the home camera - replace the one on load
  • AddCamera : adding a camera to the list of cameras

imgui_orient.h

struct ImOrient

This is a really nice implementation of an orientation widget; all due respect to the original author ;)

Notes from: www.github.com/cmaughan

Ported from AntTweakBar

Dependencies kept to a minimum. I basically vectorized the original code, added a few math types, cleaned things up and made it clearer what the maths was doing.

I tried to make it more imgui-like, and removed all the excess stuff not needed here. This still needs work.

I also added triangle culling because ImGui doesn't support winding clip

The widget works by transforming the 3D object to screen space and clipping the triangles. This makes it work with any imgui back end, without modifications to the renderers.

\todo More cleanup. \todo Figure out what ShowDir is for. \todo Test direction vectors more