sharpgl icon indicating copy to clipboard operation
sharpgl copied to clipboard

Add an Arcball Sample

Open dwmkerr opened this issue 11 years ago • 3 comments

Nice to work with glmnet : http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball

dwmkerr avatar Apr 04 '14 23:04 dwmkerr

I'm assuming you're talking about controlling the viewport using an arcball/trackball camera.

I'm going to give it a try to implement that in my sample, shouldn't be to much code to implement this option because I've already prepared the code for being scalable in this area.(I'm using a turntable approach btw.).

I'm also using GlmNET at the moment (got it from Nuget), though I find it a little restricted compared to the functionality that I found for a c++ GLM library. I've already extended it, by adding some functionalities like getting the inverse of a matrix etc.

jochemgeussens avatar Apr 06 '14 19:04 jochemgeussens

That's right - I'm going to create a very lightweight sample that does arcball transformations and renders some very simple geometry. I need to update GlmNet (as you noticed) as well! If you add functions to GlmNet and they match the Glm versions then please do pull request, cause it'll save others the same work. The only requirements for GlmNet are that the functions should behave in the same way as glm and be called in the same way (even though it's not particularly object oriented, the goal is for it to be familiar to those who've used glm).

dwmkerr avatar Apr 06 '14 22:04 dwmkerr

@dwmkerr any updates for this one? :) cause it's simpler to support rotation

Update: I found a sample with a project name "SceneSample" located in samples folder. But, how can i add arcball effect to my 3D quads

Update: I did it using the ff sample http://www.codeproject.com/Articles/22484/Arcball-Module-in-C-Tao-OpenGL

darkmakukudo avatar Sep 30 '16 10:09 darkmakukudo