Re: [osg-users] osgmovie receive stream

2012-12-16 Thread DavidHornung

Any Suggestions?

is it possible to receive a network video stream ?

Hello,

is it possible to play a received stream with the ffmpeg osg plugin?

Since it is possible to read from /dev/video0 it should, or?

Cheers,
David


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgmovie receive stream

2012-12-16 Thread Wang Rui
Hi David,

I believe we can make use of the ffmpeg plugin to receive video streams. In
fact webcams can already be retrieved and shown in OSG. Personally I
haven't tested how to load rtsp/udp video streams using osgdb_ffmpeg
directly. But in the osgRecipes project I have successfully used the VLC
SDK to do the same work. I hope it will also help.

Wang Rui



2012/12/16 DavidHornung 

> Any Suggestions?
>
> is it possible to receive a network video stream ?
>
>> Hello,
>>
>> is it possible to play a received stream with the ffmpeg osg plugin?
>>
>> Since it is possible to read from /dev/video0 it should, or?
>>
>> Cheers,
>> David
>>
>
> __**_
> osg-users mailing list
> osg-users@lists.**openscenegraph.org 
> http://lists.openscenegraph.**org/listinfo.cgi/osg-users-**
> openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgmovie receive stream

2012-12-16 Thread Jean-Sébastien Guay

Hello David, Wang Rui,

Personally I haven't tested how to load rtsp/udp video streams using 
osgdb_ffmpeg directly.


I have used the ffmpeg plugin with an IP webcam that only supported rtsp 
feed, and it worked well (I made some submissions to make it work back 
then, it should still work).


Hope this helps,

J-S

--
__
Jean-Sebastien Guay  jean_...@videotron.ca
http://whitestar02.dyndns-web.com/

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Use many effect on the same model

2012-12-16 Thread Paul Martz
I think you just want to multiparent the model to the two different effect 
nodes, like this:


  root
 /\
Effect1  Effect2
 \/
  model

   -Paul

On 12/15/2012 3:49 PM, Peterakos wrote:

Hello.

I want to use 2 different effects on the same model but i am not sure
if this is possible.
I have 2 multi pass render algorithms implemented in 2 different effects.
Can i have the following graph ?

Effect1
Effect2
Model

Knowing that the child's state overrides the parent's, i would say
that you cant use 2 different programs one
after another on the same model unless you use both on the same effect.

Any idea of how i can achieve this ?

Thank you for your time.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Use many effect on the same model

2012-12-16 Thread Peterakos
Hello.

Thank you for your answer but it seems it doesnt work because with
this graph we have 2 models in the scene (one on top of each other)
I want my model to be affected by both effects (only 1 model in the scene).

thnx again.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Use many effect on the same model

2012-12-16 Thread Paul Martz
There is only one model in the scene, but it is traversed and rendered twice 
with the two different effects. You said you were doing multipass rendering, and 
this is how multipass rendering is done in OSG. To avoid having one rendering on 
top of the other, you use blending** to composite the two renderings together.


** (Or some other mechanism, depending on what you're trying to accomplish.)
   -Paul


On 12/16/2012 10:42 AM, Peterakos wrote:

Hello.

Thank you for your answer but it seems it doesnt work because with
this graph we have 2 models in the scene (one on top of each other)
I want my model to be affected by both effects (only 1 model in the scene).

thnx again.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Questions about mip maps

2012-12-16 Thread Daly, Jason
No, OpenGL requires all dimensions to be reduced by half at each level.


Sent from my cell phone

Aurelien Albert  wrote:
Thanks a lot for this very precise answer !

Just one more question, you said :


> each successive level should be an integer quotient of
> the previous level's size and two


So, for n-th level, the size should be :

(size of n-1 level) / (2*k) with arbitrary k ?

Is it possible to have multiple levels with the same size ?

For example :

Texture : 512x512
Level 1 : 256x256
Level 2 : 256x256
Level 3 : 256x256
Level 4 : 256x256
Level 5 : 128x128
Level 6 : 128x128
Level 7 : 128x128
Level 8 : 128x128
Level 9 : 1x1

Mipmaps levels stop here.

I know this is a little weird, but my procedural textures can be generated for 
any size and any "distance", so in my case tghis should be interesting to have 
mulitple levels with the same texture resolution, but different "spatial 
resolution" inside the texture.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51594#51594





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org