Hi Sashidhar,

some weeks ago somebody had the same problem.
here his mail and the last response:

    Hi,

    try this:
    in groups.google.com

    search for this:
    osg-users ralph kern screenshot

    in google.com
    osg-users "Taking a screenshot with"

    cheers
    jp

    maruti borker wrote:
      

>     > Can anbody point me to the older mails atleast  :( 
>     > 
>     > Waiting in anticipation
>     > 
>     > On Nov 28, 2007 3:06 PM, maruti borker <[EMAIL PROTECTED] 
>     > <mailto:[EMAIL PROTECTED]>> wrote:
>     > 
>     > 
>     >     Hi all ,
>     >               I know this question has been asked again and again . But
>     >     i am sorry i wasnt able to find the previous mails in the archive  
> :(  .
>     >               What i want to do is when a user presses some key he
>     >     should see some 3-4 screenshots of some specific nodes .
>     >               So basically i am thinking of doing the following :-
>     >                -> Set up some dummy cameras
>     >                -> Bring them near the node ( at some distance )
>     >                -> Take screenshots and write them in some directory
>     >                -> Load the images and use it as a texture to a plane
>     >                -> Display it to the user
>     > 
>     >     So what i did was i took a seperate viewer , and put the scene-data
>     >     of the viewer to be the node .And then attached a slave camera to
>     >     the viewer and took a screenshot . But it gave a black image as
>     >     output .I tried doing frame() too , but that changed the window on
>     >     which i was working on and also gave a black output. Can somebody
>     >     help me out ??
>     > 
>     >     And is there a way by which i can just use dummy cameras instead of
>     >     dummy viewers to take a screenshot ?
>     >     And how should i place the camera near the node ?
>     > 
>     >     Thanx a lot in advance
>     > 
>     >     -- 
>     >     Maruti Borker
>     >     IIIT Hyderabad
>     >     Website:- http://students.iiit.ac.in/~maruti
>     >     <http://students.iiit.ac.in/%7Emaruti>
>     >     Blog:- http://marutiborker.wordpress.com
>     >     <http://marutiborker.wordpress.com> 
>     > 
>     > 
>     > 
>     > 
>     > -- 
>     > ----------------------------------------------
>     > Maruti Borker
>     > IIIT Hyderabad
>     > Website:- http://students.iiit.ac.in/~maruti 
>     > <http://students.iiit.ac.in/~maruti>
>     > Blog:- http://marutiborker.wordpress.com
>     > 
>     > 
>     > ------------------------------------------------------------------------
>     > 
>     > _______________________________________________
>     > osg-users mailing list
>     > osg-users@lists.openscenegraph.org
>     > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>         

      

hope this helps!

cheers,
daniel


Sashidhar Guntury wrote:
> Hi!
>
>          I have this viewer running and on pressing a button, I need 
> to generate an image of the scene as seen from a different angle and 
> position without using the original viewer or changing the viewer 
> position and orientation. How is it possible?
>
>                                      thanks!
>
> yours
> Sashidhar
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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

Reply via email to