.exe, readme update

This commit is contained in:
Cedric Guillemet
2019-11-10 12:16:37 +01:00
parent ea0ed94624
commit 60984f5281
3 changed files with 9 additions and 43 deletions

View File

@@ -2276,38 +2276,6 @@ namespace ImGuizmo
if (isDraging)
{
/*matrix_t rx, ry, roll;
rx.RotationAxis(referenceUp, -io.MouseDelta.x * 0.01f);
vec_t newDir = viewInverse.v.dir;
newDir.TransformVector(rx);
newDir.Normalize();
vec_t newUp = referenceUp;
newUp.TransformVector(rx);
newUp.Normalize();
vec_t right = Cross(referenceUp, newDir);
right.Normalize();
ry.RotationAxis(right, -io.MouseDelta.y * 0.01f);
vec_t newDirPost = newDir;
newDirPost.TransformVector(ry);
newDirPost.Normalize();
vec_t newUpPost = newUp;
newUpPost.TransformVector(ry);
newUpPost.Normalize();
if (fabsf(Dot(newDirPost, referenceUp)) > 1.f - 0.01f)
{
newDirPost = newDir;
newUpPost = newUp;
}
vec_t newEye = camTarget + newDirPost * length;
LookAt(&newEye.x, &camTarget.x, &newUpPost.x, view);
*/
matrix_t rx, ry, roll;
rx.RotationAxis(referenceUp, -io.MouseDelta.x * 0.01f);
@@ -2336,10 +2304,3 @@ namespace ImGuizmo
}
};
/*
- rolling induced
- interpolation from one side to the opposite - > nul vector/gimbal lock
- can't rotate cube when watching up side -> need to rotate on the hemisphere source
*/

View File

@@ -1,7 +1,7 @@
### ImSequencer
A WIP little sequencer used to edit frame start/end for different events in a timeline.
![Image of Rotation](http://i.imgur.com/BeyNwCn.png)
Check the sample for the documentation. More to come...
### ImViewGizmo
Manipulate view orientation with 1 single line of code
![Image of ImViewGizmo](https://imgur.com/kXv3cMg)
### ImGuizmo
@@ -16,6 +16,11 @@ Built against DearImgui 1.53WIP
There is now a sample for Win32/OpenGL ! With a binary in bin directory.
![Image of Sample](https://i.imgur.com/nXlzyqD.png)
### ImSequencer
A WIP little sequencer used to edit frame start/end for different events in a timeline.
![Image of Rotation](http://i.imgur.com/BeyNwCn.png)
Check the sample for the documentation. More to come...
### API doc
Call BeginFrame right after ImGui_XXXX_NewFrame();

Binary file not shown.