-
Notifications
You must be signed in to change notification settings - Fork 42
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
building example with mingw fails #2
Comments
Thanks for reporting. About StackOverflow link: is just curious because I compile regularly with gcc (with v.5.2 for compatibility, and just now tested in 9.2.1) and it doesn't even give me a warning. Anyway I'll fix it soon... today or tomorrow. Thanks again. |
Thanks for taking a look!! |
I just found out that it happens only with "standard" data type, and not with "templates": indeed using -DVGM_USES_TEMPLATE the compiler build it correctly (Now the StackOverflow page have more sense for me) I tested also Intel compiler, as well as MSVC and CLang, and only with gcc/mingw, and only not using template classes, this problem appeared |
The issue should be solved Try it and let me know |
I could build now but had to change CMakeLists.txt : uncomment https://github.com/BrutPitt/imGuIZMO.quat/blob/master/example/CMakeLists.txt#L151 and also dont link against dl in https://github.com/BrutPitt/imGuIZMO.quat/blob/master/example/CMakeLists.txt#L161 There are some opengl initialization issues:
|
About CMake (thanks again!): P.S. |
Yes, that was the problem.( Wonderful images!!!) With Shift, Ctrl and Alt movements are restricted to X, Y, Z axes (absolute axes) |
I guess you mean like [0-45] degree on X axis, for example? |
No, I dont mean restrict the amount of degrees. I mean the same that happens witn Shift, Ctrl and Alt (which restrict movement to an specific axis) But as there are 6 axis (3 absolute axis X,Y,Z and 3 guizmo axis red, green, blue) I would like to restrict movement to the guizmo axis instead of absolute axis. For example to do a rotation only around blue axis. |
This is interesting, but unfortunately not currently... but it could be useful, it could be a future improvement. |
This could is done in https://github.com/CedricGuillemet/ImGuizmo#imguizmo for moving objects I have just wrapped ImGuIZMO.quat in C functions (as in cimgui) and works fantastic. I only fail to understand the vec3 requeriments: what are valid inputs? why vec3(1,0,0) is not valid (arrow disappears and trying to move gives nans) but vec3(1,0,5) is valid? (not unit length vector) Also: GLAPP_USE_VIRTUALGIZMO is defined but I cant find how to use it in the example, (Where to click) |
Thanks to have take in consideration ImGuIZMO.quat
Yes is valid.
Should works using mouse on background viewport (not in ImGui windows)... if really was built with it Instead, in glChAoS.P is configured:
You can start live webgl from: (for this I don't created a specific widget to move the objects: is possible to do it using VirtualGIZMO in Viewport: pan(x,y), dolly(z), and VirtualGIZMO is an integral part of imGuIZMO.quat ... but i can to think to extend it also to widgets) |
Thanks for all. I tested after new commit and everything works!! |
Thanks to you to have tested it and to have reported the issues |
… w/o -DVGM_USES_TEMPLATE: BrutPitt/imGuIZMO.quat#2
Hi,
While tying to build example with mingw-64 I am getting this error and similar:
Could find this: https://stackoverflow.com/questions/41031424/constructor-not-allowed-in-anonymous-aggregate-string-in-struct
Thanks
The text was updated successfully, but these errors were encountered: