[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 Geode)

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

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 should

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

2014-04-02 Thread Petr Svoboda
://imgur.com/EII7vZG,IUz5wAa after (using Photoshop Gaussian blur ) Code: http://imgur.com/EII7vZG,IUz5wAa#1 Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58775#58775

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

2014-03-31 Thread Petr Svoboda
explanation is good enough Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58766#58766 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org

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

2014-03-28 Thread Petr Svoboda
but a bit next to it. Is that was is osg::BoundingBox made for? Or the purpose of BoundingBox is just for culling etc.? I would like to use osg::LineSegmentIntersector + osg::IntersectVisitor. Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org

Re: [osg-users] ReadImageFile fails open video

2014-03-27 Thread Petr Svoboda
that old version? Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58744#58744 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org

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 opens dynamic library in osgPlugins-3.0.1/osgdb_ffmpeg.so in usr/lib. And that is strange

Re: [osg-users] ReadImageFile fails open video

2014-03-25 Thread Petr Svoboda
? I googled and found https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide which I tried but didnt succeed Or do you know about any step by step instruction set? Thank you! robertosfield wrote: Hi Petr, I pulled ffmpeg via the individual -dev packages associated with the project using

[osg-users] No intersection on some osg models

2014-03-25 Thread Petr Svoboda
is that? Is there a need of creating some bounding boxes or something like that? Or some osgconv bug? Model bug? Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58730#58730 ___ osg

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

Re: [osg-users] ReadImageFile fails open video

2014-03-24 Thread Petr Svoboda
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 error occurs - FFmpegImageStream::open : avcodec_find_decoder

[osg-users] Picked up error in TriangleIntersect

2014-03-24 Thread Petr Svoboda
) to (256,256) 0.475528 -0.809017Scaling image 'ng0.266849 external/videos/cat4.gif0.367286' from (0-0.891007, 0.266849 0.523721 -0.809017361),209) to (256,256) Have you got any idea what could be possibly wrong? Thank you Cheers, Petr -- Read this topic online here: http

Re: [osg-users] ReadImageFile fails open video

2014-03-23 Thread Petr Svoboda
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 installed the hole list. Doesnt work You said that you tried

[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

Re: [osg-users] ReadImageFile fails open video

2014-03-19 Thread Petr Svoboda
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 being found, not the source that you've been compiling. Robert -- Post

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;

[osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
video to different folders... I really dont understand why it is not working because in my application, I load ( or read ) many pictures/images (png) without any problem. Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p

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

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

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*,

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

[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

[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] Multitextures with alfa channel

2011-03-01 Thread Petr Srom
-setViewport( ... ); orthoCamera-setRenderOrder(osg::Camera::POST_RENDER); Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37197#37197 ___ osg-users mailing list osg-users

Re: [osg-users] Multitextures with alfa channel

2011-03-01 Thread Petr Srom
J.P.,thanks for answer, your post make me to check texture coords, i have added tcoords for second texture (same as for the first texture), what a simple: screenQuad-setTexCoordArray(0, tcoords); screenQuad-setTexCoordArray(1, tcoords); and result: [Image:

Re: [osg-users] Multitextures with alfa channel

2011-03-01 Thread Petr Srom
problem solved [Image: http://www.imgshare.cz/images/multipyty.jpg ] osg::StateSet *quadState = quadGeode-getOrCreateStateSet(); osg::TexEnv *texenv = new osg::TexEnv; texenv-setMode(osg::TexEnv::DECAL);

Re: [osg-users] hi, anyone can tell me how convert .dgn files to .osg/.ive ?

2011-01-25 Thread Petr Srom
Hi, osgconv srcfile dstfile in cmdline type before osgconv: set OSG_NOTIFY_LEVEL=DEBUG Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35947#35947 ___ osg-users mailing list osg-users

[osg-users] osgconv failed loading .dll

2011-01-25 Thread Petr Srom
cow.osg - ok (both) Instalation on the 2nd PC: I have copied al from root directory c:\Program Files\OpenSceneGraph-2.8.3\ and add same env. variables. Thank you for any help! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35945

[osg-users] struct member alignment - default (ok) - 1Byte (unhandled exc...)

2011-01-25 Thread Petr Srom
in osgdefaultproject.exe: 0xC005: Access violation reading location 0xe24d. How can I solve this problem? Thank you. Cheers, petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35917#35917

Re: [osg-users] struct member alignment - default (ok) - 1Byte (unhandled exc...)

2011-01-25 Thread Petr Srom
solved: project-properties-c++-codegen-struct m align: default #pragma pack(push, 1) typedef struct ... #pragma pack(pop) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35955#35955 ___ osg-users

[osg-users] [build] unresolved external, MultiSwitch::setSingleChildOn

2010-06-15 Thread petr srom
// //tankSwitch-setSingleChildOn(0,0);// good model OpenSceneGraph Library 2.8.2 Microsoft visual studio 2008 9.0.2 ...8RTM NetFramework 3.5 SP1 Thank you! Cheers, petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28941#28941

Re: [osg-users] [build] unresolved external, MultiSwitch::setSingleChildOn

2010-06-15 Thread petr srom
no, a have just add this lib here: project-properties-linker-input. There are these libs: osgd.lib osgGAd.lib osgDBd.lib osgViewerd.lib osgTextd.lib osgUtild.lib osgsim.lib OpenThreadsd.lib And now - biuld is correct but in runtime is showed dialog - see img: -- Read this topic

Re: [osg-users] [build] unresolved external, MultiSwitch::setSingleChildOn

2010-06-15 Thread petr srom
so thanks, it works, similar problem is in this topic: http://forum.openscenegraph.org/viewtopic.php?t=4463start=0postdays=0postorder=aschighlight=osgsim.lib -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28946#28946

[osg-users] readNodeFile model not visible through a semi-transparent box

2009-07-11 Thread Gotthard, Petr
for the model. Do I have to walk through all nodes in the subgraph loaded by readNodeFile, or is there a function that should be called on the subgraph root only? Best Regards, Petr ___ osg-users mailing list osg-users@lists.openscenegraph.org http

[osg-users] intersectorGroup, LineSegmentIntersector start end

2009-05-13 Thread petr srom
position ( start ) v3f_end.set(33.0f, 23.0f, -5.0f); //new position ( end ) lsi-setStart( v3f_start ); lsi-setEnd( v3f_end ); } } check_face(intersectorGroup); Thank you! Cheers, petr

Re: [osg-users] intersectorGroup, LineSegmentIntersector start end

2009-05-13 Thread petr srom
Thanx mery much Skylark, here is the correct code, the Blue color is update. Code: [color=green]//positions[/color] osg::Vec3f v3f_start(33.0f, -23.0f, 10.0f); [color=green]//init position ( start )[/color] osg::Vec3d v3f_end(33.0f, -23.0f, -5.0f); [color=green]//init

Re: [osg-users] intersectorGroup, LineSegmentIntersector start end

2009-05-13 Thread petr srom
Skylark, yes, you can see result here: [Image: http://img24.imageshack.us/img24/5431/22541985.th.jpg ] (http://img24.imageshack.us/my.php?image=22541985.jpg)[/img] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12000#12000

[osg-users] stateset, culling

2009-04-16 Thread petr srom
Hi, I need to render back face of .ive models, in open GL is the syntax: glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); Is the syntax in OSG these way? osg::StateSet *myst = new osg::StateSet(); myst-setMode(GL_CULL_FACE, osg::StateAttribute::ON); myst-setMode(GL_FRONT,

Re: [osg-users] stateset, culling

2009-04-16 Thread petr srom
thanks, but it still doesn't work : / myst was renamed by stateset void Environment::set_fog(osg::Group* root) { fog-setMode(osg::Fog::LINEAR); fog-setDensity(0.1f); fog-setColor(osg::Vec4f(0.8f,0.8f,0.8f,1.0f)); fog-setStart(-20.0f);

Re: [osg-users] Eye position and 2nd slave camera

2009-04-01 Thread petr srom
:0.0f screenshot is here: [Image: http://www.jkzsim.cz/petr/screenshot-cams.jpg ] example camera with cow.osg (mirrored 2nd camera) works well, but these settings in my scene not ... Code: osg::Matrixf mf; if (i != 2) { mf=osg::Matrix::scale

[osg-users] Eye position and 2nd slave camera

2009-03-31 Thread petr srom
Hi, please, can you tell me why the camera_slave have got the same position (eye) as the camera_main? What I'am doing wrong? I cannot set different position and frustum than is in camera_main? The camera slave take (inherit) the setting of camera main? Here is the code: void

[osg-users] Discontinuous view and loading (readNodeFile)

2009-03-17 Thread petr
Hi all, because a have not a lot of experences with OSG so I have stil some problems and now i try my best to desribe two of them. first q: I have got in a root group tree nodes 1st - the scene (cca 300 triangulates+7 types of textures ) 2nd - the tank t72-tank_des.flt 3rd - the

Re: [osg-users] Discontinuous view and loading (readNodeFile)

2009-03-17 Thread petr
add first q settles the question here: http://forum.openscenegraph.org/viewtopic.php?t=1498 viewer-setThreadingModel(osgViewer::Viewer::SingleThreaded); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8591#8591

Re: [osg-users] Discontinuous view and loading (readNodeFile)

2009-03-17 Thread petr
example after adding these topic : ) q2: you suggest me convert .flt to native osg format, we are using for modeling Presagis creator and the export dialog cointains only these variants - have a look on image. [Image: http://www.jkzsim.cz./petr/screen-export.jpg ] I don't know which format

Re: [osg-users] Discontinuous view and loading (readNodeFile)

2009-03-17 Thread petr
thanks a lot, loading scene size of 36MB takes cca 1-2 sec, absolutely great! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8610#8610 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Discontinuous view and loading (readNodeFile)

2009-03-17 Thread petr
Sukender: cca sorry it's my mystake, this is word in my native language and in english it means something like about Robert Osfield: I hope that I understand your replies correctly, I have started to edit osganimate solution project (which is suggest in how to start) and in this project I try

Re: [osg-users] How to create detection, crossing from Vega(Multigen) to OSG

2009-02-17 Thread petr
Thanks a lot for your replies. -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=6898#6898 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] How to create detection, crossing from Vega(Multigen) to OSG.

2009-02-16 Thread petr
); //del tmp pos And some screenshot from runtime loop, the green line is detecting, red no. Z-isectors hold the cars on the road. 3rd image - left isector is greeen because ho has crashed with white cube (static object). [Image: http://www.jkzsim.cz./petr/isectors/BUS-isectory1

[osg-users] How to fix normals of Text3D?

2008-08-23 Thread Gotthard, Petr
the normals of the side-surface, so it gets shaded correctly? Regards, Petr ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org