[osg-users] Loading osgt from string / Compile resources into binary

2019-01-21 Thread Michael Maurus
Hi guys, is it possible to somehow compile resources like models/nodes into an executable? How about putting the content of an osgt file as a string into my source code? But as far as I've seen, there is no readNodeFromString method in osgDB. Any ideas/suggestions? Thank you! Cheers, Michael

[osg-users] Transformations using Quat and Mat

2017-11-14 Thread Michael Maurus
Hello everyboy, currently, I am trying to get some transformations working to display a cylinder as a line of sight. As you can see in the code below, I want to get the rotation represented by the Quaternion q into the Matrix mat, but neither preMultRotate using the quat nor multiplying as a

Re: [osg-users] osgoculus viewer picking

2017-11-09 Thread Michael Maurus
Okay, here a few updates of what I learned: 1. There is no geometry which will be rendered to the main camera of ogoculusviewer. That's why no intersections can be found. 2. Displaying the oculus view will be done by blitting the mirrorTexture to the back buffer. 3. So solve my problem, I added

Re: [osg-users] osgoculus viewer picking

2017-11-08 Thread Michael Maurus
No, I actually mean eyetracking! I have an integrated eyetracker. Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72335#72335 ___ osg-users mailing list

Re: [osg-users] osgoculus viewer picking

2017-11-08 Thread Michael Maurus
Hi Björn, thanks for the reply. I only have the DK2 without the controllers. Actually, I want to do picking using eyetracking. There I also get window coordinate and therefore need the same intersection methods. So if I unterstood you correctly, setting up a valid master camera, the picking

[osg-users] osgoculus viewer picking

2017-11-08 Thread Michael Maurus
Hi, how can I get my PickHandler edited from the osgpick (see attachment) example working inside the osgoculusviewer? Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72331#72331 // class to handle events with a pick class

Re: [osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin

2017-10-10 Thread Michael Maurus
Hi guys, Thanks for the replies. I tried using the suggested ffmpeg plugin changes, but it didn't make a difference. Turns out the culprit was automatic texture scaling to power of two texture size. After setting the resizePowerOfTwoHint to false, I was able to play two 720p videos with 60fps.

Re: [osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin

2017-10-05 Thread Michael Maurus
This was actually a nice hint. Only one of my CPUs was working at full capacity. The FFmpegImageStream inherits from OpenThreads. So I should have two separate threads for both decoders, right? Is there a possibility to SetProcessorAffinityOfCurrentThread() from outside FFmpegImageStream? How

[osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin

2017-10-05 Thread Michael Maurus
Hello everyone, I am currently trying to display a video (mp4) on a textured quad using the osgmovie example. When displaying two of those, I suddenly get a frame drop from 60fps to 12fps. So my question: what's the proper way to to this without performance issues? I am not sure how the

[osg-users] RTT + shaders example

2017-07-12 Thread Michael Maurus
Hi all, I am trying to figure out RTT in combination with shaders for implementing a gbuffer but I can't get the different examples to work together. This is a working example for using my shaders, but without RTT and also for setting the StateSet for the model and not the camera. const