acgessler / open3mod

Open 3D Model Viewer - A quick and powerful 3D model viewer
www.open3mod.com
Other
1.11k stars 260 forks source link

Test to see GL 4.5 possibilities #227

Open karelholubicka opened 5 years ago

karelholubicka commented 5 years ago

Hi Alex, if you read this so I finally managed to create PR.

I tested and downloaded my master separately and it compiled even on another machine, so hopefully all new dependencies will work.

I am trying to develop Virtual studio. Original idea was to use VR controllers as cameracontrollers, for each of two VR controllers use two windows as foreground+background renderpair, and send them via 4 NDI streams capable of alpha channel to vMix videomixer and mix them with live camera images.

I managed this to work, but NDI timing problems ruined this scenario. Both NDI and vMix did not gave me enough control over timing, so final image was not reliably time-stable.

Next solution was to handle mixing internally, but this required BlackmagicDesign IN+OUT

Therefore: New code, especially renderer, contains huge amount of crap only for virtual studio purpose, including ad-hoc test and so. I added fixed "useIO" constant which switches off all IO needed for studio

MaterialMapperModernGL, RenderMesh and SceneRendererModernGL are probably only places which may be usable for your Viewer upgrade. Based on this: http://dreamstatecoding.blogspot.com/2017/01/opengl-4-with-opentk-in-c-part-1.html

You mentioned in comments:

What i am looking for is to update Assimp to latest version, I see it is now over 4.1, while assimp.net stayed at 3.1.1.

You will see,if this update is worth anything :-) Anyway, thank you for your work. Without your well structured codebase my project would be probably impossible. Cheers, Karel