Open tr0ublee opened 5 years ago
Hey,
I am glad you found this helpful. I wanted to try OpenGL as a side project, and started working on that. You can even find a branch called "opengl" in this repository.
If you checkout the opengl branch, there is an example on how to draw a cube with OpenGL. It also lists all the dependencies I had to install. Unfortunately it does not have OpenGL-ArUco integration yet. I was busy with all the other stuff and never got to finish it. I don't see me finishing that up near future either just because I don't have time.
If you figure that out, please feel free to make a pull request though.
Good luck, Kani
On Fri, Jul 19, 2019, 04:08 Alperen Caykus notifications@github.com wrote:
Hello, thanks for the sample codes. They really helped me a lot. I am looking for a way to make drawing stuff with OpenGL on markers. Do you know any tutorials, or do you know how to do this ? Thanks in advance.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fdcl-gwu/aruco-markers/issues/3?email_source=notifications&email_token=AEYSOYQ2R3ZKWTC7BJRLUP3QAFY5TA5CNFSM4IFDP2DKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAGTKKQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AEYSOYWWP2PM6A6HRXAILS3QAFY5TANCNFSM4IFDP2DA .
Hello again, thanks for the reply. Actually, I have a Python script that draws a cube on aruco markers using OpenGL. I will also code it on C++, but there is one issue. Whenever I move the camera, the cube also moves with the camera. If I can sort that out, I guess it will be done. Is there any chance that you happen to know what causes this ? Btw cube never leaves marker but still it moves with camera (i.e, cube moves on aruco marker).
I am not entirely sure about the reason or what you mean when you say "cube moves on aruco marker". One possible reason would be the origin of the cube. If you need the cube to be on the marker, the origin of the cube must be on the bottom most face.
In other words, if you are drawing a unit cube, the (x,y,z) coordinates must be as follows: (1, 1, 1) (1, -1, 1) (-1, -1, 1) (-1, 1, 1) (1, 1, 0) (1, -1, 0) (-1, -1, 0) (-1, 1, 0)
If this is correct, I am not sure what is wrong with your code.
Actually it is not my code. I found the code on stackoverflow and thought it would give me some idea about the process. So, I took the code and run it on my computer. When marker is at the center, cube is drawn on it. But when I move the marker to the right for example, cube also moves to the right but it is no longer on marker. I tried the solution mentioned in the comment but didnt work. Can you have a look at the code and tell what is wrong with it? Btw, of course my problem is the same with the guy's problem who posted the code. Link to code https://stackoverflow.com/questions/50764623/object-is-wrong-displaced-in-ar-aruco-opengl
Did you try the solution provided in the Stackoverflow question?
I am sorry, but it is hard for me to comment without trying the code, and I simply do not have time to try to implement OpenGL at this moment.
On Sun, Jul 21, 2019 at 7:08 PM Alperen Caykus notifications@github.com wrote:
Actually it is not my code. I found the code on stackoverflow and thought it would give me some idea about the process. So, I took the code and run it on my computer. When marker is at the center, cube is drawn on it. But when I move the marker to the right for example, cube also moves to the right but it is no longer on marker. I tried the solution mentioned in the comment but didnt work. Can you have a look at the code and tell what is wrong with it? Btw, of course my problem is the same with the guy's problem who posted the code. Link to code
https://stackoverflow.com/questions/50764623/object-is-wrong-displaced-in-ar-aruco-opengl
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fdcl-gwu/aruco-markers/issues/3?email_source=notifications&email_token=AEYSOYVXBMT2M2VC2MBAW3DQATT7LA5CNFSM4IFDP2DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ONQPI#issuecomment-513595453, or mute the thread https://github.com/notifications/unsubscribe-auth/AEYSOYUWPN34Z24DFDVAVQ3QATT7LANCNFSM4IFDP2DA .
Hello, thanks for the sample codes. They really helped me a lot. I am looking for a way to make drawing stuff with OpenGL on markers. Do you know any tutorials, or do you know how to do this ? Thanks in advance.