[osg-users] Animations in osg format

2011-09-27 Thread Héctor Martínez
Hi, I am successfully exporting models with 3D Studio to osg format, but, when loading, it seems like only keyframe animations work (but keyframeless animations don’t work). Is it possible to export models with animations to osg format without keyframes? Thank you. Héctor

Re: [osg-users] Clipping planes for slave camera

2011-09-27 Thread Robert Osfield
Hi Yefei, On Mon, Sep 26, 2011 at 9:20 PM, He, Yefei yefei...@uiowa.edu wrote: Is it possible for a slave camera to have different near and far clipping planes from the master camera? Are there examples for it? I figure it will be more complicated than changing the angle of view or adding a

Re: [osg-users] unexpected behavior

2011-09-27 Thread Robert Osfield
HI Keith, From the scant details and the number of variables that could effect thigns we can only guess what might be the problem. My best guess would be that perhaps the sky dome is very large so pushing the far plane and the near plane with it, such that the near plane is clipping out the

Re: [osg-users] Current time when displaying an image stream

2011-09-27 Thread Julen Garcia
Hi Brad, I have also a simple video player using the ImageStream class and the FFmpeg plugin. For the slider, I get the maximum value from the ImageStream-getLenght() method and to update the current position I call periodically ImageStream-getReferenceTime(). I think that this is the

Re: [osg-users] Current time when displaying an image stream

2011-09-27 Thread Christiansen, Brad
Hi, Thanks for the info. That works for the ffmpeg plugin but wasn't implemented at all in the direct show function. I have posted a submission which adds a new function ( getCurrentTime ) to ImageStream and have implemented the new methon in the direct show plugin, and implemented it in

Re: [osg-users] Autoshadow aliasing in shadow maps

2011-09-27 Thread Justo Ureña
Hi all, Thanks for your posts, and sorry for my very late response. I´ve been on holidays and working in another things, so I left this issue abandoned. But finally, I could get rid of these artifacts, and therefore, solve my problem. Although the filters mitigated the effect, they were still

Re: [osg-users] Draw a line from world to screen

2011-09-27 Thread Aurelien Albert
Thansk for pointing me to these topics. So, I found the solution : (be carefull, these function use WORLD coordinates, not local coordinates) worldToScreen : Code: osg::Vec2d worldToScreen(const osg::Vec3d worldPosition, const osg::Camera* pCamera) { osg::Vec2d screenPosition; if

Re: [osg-users] qtOsg EventHandler issue

2011-09-27 Thread Robert Milharcic
1 - The program starts with no scenario windows 2 - I can add or remove Windows with a new/open file operation. 3 - for the first window to be opened everything works perfect regarding events ( mouse click, mouse press, drag, etc ). 4 - For all the others i have to wait a time till the event

Re: [osg-users] [build] Error: 0xc0150002 Win7 x64, VS2010, osg 2.9.11 current Trunk, wrong dependency in osgDBd.dll Manifest ?

2011-09-27 Thread Benjamin Wasty
Hi, I just had the same problem with the current trunk on Win 7 x86. Your hack worked. Is there any news on a proper solution? Cheers, Karan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43041#43041

Re: [osg-users] qtOsg EventHandler issue

2011-09-27 Thread Andre Simoes
Hi Robert Milharcic. Hi Gentlemen. It worked here. Thank you very much. Chris, my application uses QMdiArea as the main manager for each CompositeViewerWidget. And all CompositeViewerWidgets inherits from QMainWindow. Hope it helps. Best Regards Andre 2011/9/27 Robert Milharcic

Re: [osg-users] Clipping planes for slave camera

2011-09-27 Thread He, Yefei
Thanks, Robert, I'll take a look at the examples. Another question: in a composite viewer, if I set the view and projection matrices directly on the slave camera, what are the internal differences between doing this and simply creating another view and setting the view and projection matrices

Re: [osg-users] unexpected behavior

2011-09-27 Thread Keith Parkins
Hi Robert, Thanks for the help. It was late and I was stuck, but you definitely pointed me in the right direction. The one non-stock piece that ended up being the culprit was the computeHomePosition method in my camera manipulator. I ended up dumping camera information to see the difference

Re: [osg-users] Lighting problem when using help or stats handler

2011-09-27 Thread Poirier, Guillaume
I have attached a simple example that reproduces the problem. I am not sure if this is a OSG problem or if we are not using it properly. The problem occurs when more than 2 pre-render stages are cascading (as described in previous post of thread), as the inherited PositionalStateContainer will

[osg-users] Open Flight characteristic not reflected in the current OSG

2011-09-27 Thread David Glenn
Greetings All: Something I found that is interesting in Creator 3.4 (Open Flight) that is not reflected in OSG. In Creator Face Attributes, under the Drawing tab, If your set the Shade to Gouraud, you are shading at the vector level, hence you usually set the colors at the vector points.

Re: [osg-users] Open Flight characteristic not reflected in the current OSG

2011-09-27 Thread Paul Martz
On 9/27/2011 10:55 AM, David Glenn wrote: Greetings All: Something I found that is interesting in Creator 3.4 (Open Flight) that is not reflected in OSG. In Creator Face Attributes, under the Drawing tab, If your set the Shade to Gouraud, you are shading at the vector level, hence you

[osg-users] GLSL shaders and projective texturing

2011-09-27 Thread Brad Colbert
Hi folks, I'm looking for a complete example showing projective texturing with GLSL shaders in OSG. I'm simply trying to implement a spotlight just like the osgspotlight example. What I've found doesn't quite paint the whole picture for me. Anything would be helpful. Cheers, Brad --- Brad

Re: [osg-users] GLSL shaders and projective texturing

2011-09-27 Thread Chris 'Xenon' Hanson
On 9/27/2011 2:16 PM, Brad Colbert wrote: Hi folks, I'm looking for a complete example showing projective texturing with GLSL shaders in OSG. I'm simply trying to implement a spotlight just like the osgspotlight example. What I've found doesn't quite paint the whole picture for me.

Re: [osg-users] Open Flight characteristic not reflected in the current OSG

2011-09-27 Thread David Glenn
Paul Martz wrote: On 9/27/2011 10:55 AM, David Glenn wrote: Greetings All: Something I found that is interesting in Creator 3.4 (Open Flight) that is not reflected in OSG. In Creator Face Attributes, under the Drawing tab, If your set the Shade to Gouraud, you are shading at

Re: [osg-users] GLSL shaders and projective texturing

2011-09-27 Thread Brad Colbert
Hi Chris, Thanks for the quick reply and the lead. I'm still fumbling around with that example and I think I've found an issue with it. It appears to be sensitive to the camera position (ie not the correct projection solution). This little bit in the shader makes me feel that it's suspect

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-27 Thread Michael Guerrero
I've just managed to get the technique described above. Here is the result: [Image: http://img825.imageshack.us/img825/926/stencilsolution.jpg ] I've also posted a video showing the difference here: http://www.youtube.com/watch?v=Rf1yJObCLKI In order to get this to work I had to first

Re: [osg-users] [osgOcean] Culling and intersects with ocean and model...

2011-09-27 Thread Jean-Sébastien Guay
Hi Michael, This process would be made much easier if ocean surface only created a new stateset if a previous one didn't exist. Is there a reason for recreating it? No reason other than laziness. If any attribute that's being stored in the stateset gets changed, rather than just changing

Re: [osg-users] GLSL shaders and projective texturing

2011-09-27 Thread Brad Colbert
To add more to this: I've adapted this to where the camera is the projector (ie the image is projected from the viewpoint, well, at least that is the idea): http://www.jotschi.de/?p=378 and I would like to say I'm close, but I'm still a ways away from a solution. I do see the clock projected

[osg-users] heip

2011-09-27 Thread liu_junli
liu_junli___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org