Re: [osg-users] How to change content in HUD camera dynamically

2014-04-09 Thread Petr Svoboda
jhamell wrote: > Hi, > > First, make sure the mutable elements of your scene are assigned DYNAMIC > variance. Even once your thread of control has returned from the frame() > call (if that is how you are running this), background threads from > traversals may still be ongoing. If you set an

[osg-users] How to change content in HUD camera dynamically

2014-04-09 Thread Petr Svoboda
Hi, I'm a bit stucked on one general problem. I have a HUD camera with which I "draw" some text from time to time on a screen. Just like Font->Text->Geode->Camera. How to change that content in Geode? ( Content = just some text.. ) I tried removeChildren(current Geode) and then addChild( new Geo

Re: [osg-users] Easy blur effect with HUD Camera?

2014-04-03 Thread Petr Svoboda
Paul Martz wrote: > If you're not picky about the blur quality, just render to a texture that is > 1/16th the size of your screen (1/4 width x 1/4 height), then apply the > texture to a fullscreen quad with GL_LINEAR filtering. This can be > accomplished with OpenGL v1.0 functionality and shoul

[osg-users] Easy blur effect with HUD Camera?

2014-04-02 Thread Petr Svoboda
Hi, I would like to make something like menu using overlaying HUD Camera with background blurred. Code: http://rk.md/wp-content/uploads/2012/08/2012-08-18_4.jpg -> something like this but with "sharp / focused" scoreboard but everything else blurred How to do it? I tried osgmotionblur

[osg-users] BoundingBox centre location after PossitionAttitudeTransform translation/rotation

2014-03-31 Thread Petr Svoboda
Hi, I render a scene with objects on which I test linesegment intersection. I want to achieve this: If I point to an object I want to visualise it somehow (create BoundingSphere over that *.OSG model) and for that I use ShapeDrawable->Sphere with StateSet to PolygonMode which works nicely. Bu

[osg-users] Bigger bounding box to make picking (intersection) easier?

2014-03-28 Thread Petr Svoboda
Hi, I would like to ask if there is some way how to create bigger bounding box over some model to make it easier to pick it/ intersect with. For example if there is a cow.osg model and I want to pick it then how do it in a way that I dont need to click with my mouse exactly on that model but a b

Re: [osg-users] ReadImageFile fails open video

2014-03-27 Thread Petr Svoboda
robertosfield wrote: > Hi Petr, > On 27 March 2014 09:15, Petr Svoboda < ()> wrote: > > > Hi, > > > > So I found that if I type > > > > Code: > > osgmovie -e ffmpeg a.mp4 > > > > > > everything works fine, because it open

Re: [osg-users] ReadImageFile fails open video

2014-03-27 Thread Petr Svoboda
Hi, So I found that if I type Code: osgmovie -e ffmpeg a.mp4 everything works fine, because it opens dynamic library in osgPlugins-3.0.1/osgdb_ffmpeg.so in usr/lib. And that is strange because I use latest osg 3.2.1rc2 and my plugin folder is in usr/local/lib64 So, how should I remove that

Re: [osg-users] No intersection on some osg models

2014-03-25 Thread Petr Svoboda
SMesserschmidt wrote: > Hi Petr, > > > > > Hi, > > > > I have a very weird problem. > > I downloaded some models from Sketchup warehouse, exported as OBJ format > > and then converted using osgconv to OSG format. > > > Could you please provide an example? > > > > > Now, when I use osgUtil:

[osg-users] No intersection on some osg models

2014-03-25 Thread Petr Svoboda
Hi, I have a very weird problem. I downloaded some models from Sketchup warehouse, exported as OBJ format and then converted using osgconv to OSG format. Now, when I use osgUtil::LineSegmentIntersector then on some models "there is" an intersection detected on others there is not. Why is that?

Re: [osg-users] ReadImageFile fails open video

2014-03-25 Thread Petr Svoboda
sociated with the project > using apt-get.  I build the OSG from source, and have check outs of svn/trunk > (mainly what I work being project lead :-) and the OSG-3.2 branch.  Both revs > are working fine with the ffmpeg from Ubuntu repositories. > > > Robert. > > >

[osg-users] Picked up error in TriangleIntersect

2014-03-24 Thread Petr Svoboda
Hi, as subject says running my aplication I get tons of these errors: Code: Warning:: Picked up error in TriangleIntersect (-1.45164e-07 7.39642e-08 1, 0.139384 -0.0710195 0.987688, -1.54947e-07 5.0345e-08 1) (-nan, -nan, -nan) Warning:: Picked up error in TriangleIntersect (

Re: [osg-users] ReadImageFile fails open video

2014-03-24 Thread Petr Svoboda
scenegraph sudo apt-get install ffmpeg and it all worked? robertosfield wrote: > HI Peter, > > On 23 March 2014 20:54, Petr Svoboda < ()> wrote: > > > I recently updated to 13.10 ( Ubuntu ). > > ffmpeg compiles fine as osgPlugin, but the same erro

Re: [osg-users] ReadImageFile fails open video

2014-03-23 Thread Petr Svoboda
nks robertosfield wrote: > Hi Petr, > > > On 19 March 2014 19:01, Petr Svoboda < ()> wrote: > > > And any idea how to do it? > > I just went to https://launchpad.net/ubuntu/+source/libav > > (https://launchpad.net/ubuntu/+source/libav) > > and instal

Re: [osg-users] ReadImageFile fails open video

2014-03-19 Thread Petr Svoboda
gt; On 15 March 2014 11:55, Petr Svoboda < ()> wrote: > > > If you mean > > > > > > Code: > > sudo apt-get install ffmpeg > > > > > You'd need to install the -dev versions to compile against them, and make > sure that these are

[osg-users] [osgPlugins] is osgAudio working with latest Fmod ?

2014-03-19 Thread Petr Svoboda
Hi, I'm trying to compile osgAudio plugin but there are some compilation errors related to Fmod > /home/petr/Plocha/osgAudio_02_00_00/src/osgAudio/BackendFMOD/AudioEnvironmentFMOD.cpp:40:2: > error: ‘FMOD_3D_LOGROLLOFF’ was not declared in this scope > /home/petr/Plocha/osgAudio_02_00_00/src/o

Re: [osg-users] ReadImageFile fails open video

2014-03-15 Thread Petr Svoboda
robertosfield wrote: > > > > And of course, thank you for your help with compiling ffmpeg library > > > Why not just pull in ffmpeg from the Ubunutu repositories?  svn/trunk of the > OSG is compiling just fine with the ffmpeg from the Kubuntu 13.10 release > that I'm using.   > > > Robert

Re: [osg-users] ReadImageFile fails open video

2014-03-14 Thread Petr Svoboda
Ok, so what I did: downloaded older version of libav - Libav 9 recompiled OSG and what is more important ffmpeg was born! There were some difficulties with static and dynamoc libraries, error > relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when > making a shared object;

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
Ok, so situation: - running on Ubuntu 13.04 - downloaded latest OpenSceneGraph-3.2.1-rc2 - downloaded http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz which should be latest libav I suppose Then I tried to recompile OpenSceneGraph Plugins with this errors: Code: /home/petr/Plocha/Ope

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
I downloaded latest libav, make, make instal etc.. Then I just re-run building osgPlugins and ffmpeg started building and crashed with some errors Code: OpenSceneGraph-3.2.1-rc2/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
I downloaded newest release -> 3.2.1 rc2 clasiic style: configure make make install But the thing is that ffmpeg wont build (skipped?). All plugins were built but ffmpeg. In source folder src there are source files for ffmpeg. Are there any pre-requisites? Any reason why all plugins were built a

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
using export OSG_NOTIFY_LEVEL=DEBUG I found Warning: dynamic library 'osgPlugins-3.2.1/osgdb_ffmpeg.so' does not exist (or isn't readable): osgPlugins-3.2.1/osgdb_ffmpeg.so: cannot open shared object file: No such file or directory DynamicLibrary::failed loading "osgPlugins-3.2.1/osgdb_ffmpeg.

[osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
Hi, I have a problem which Im not able to solve. Im using this piece of code in my application: Code: osg::ref_ptr video1 = osgDB::readImageFile( "external/videos/a.mp4.ffmpeg" ); which always returns NULL pointer. The path is right, I even tried absolute path, I tried move that mp4 video to

[osg-users] Basic intersection problem

2014-02-25 Thread Petr Svoboda
Hi guys, I am so new to osg and I'm totally stucked on this problem. Situation - Having a character in a space. I want to point with character's hand to some object ( just ShapeDrawable or something like that ).. Character is called Skeleton ( derived from osg::Group ) What I have: Code:

[osg-users] How to make overlaying osg::Billboard

2014-02-25 Thread Petr Svoboda
Hi, I made a scene, where I detect some collisions and I want to show progress of that collision. For example, you are poiniting at light switch and there is circle which is filled based on time spent pointing at the switch, so the light would turn/off after some timer period. That "filling cr