AW: [info-performer] Pipe into Java

Date view Thread view Subject view Author view

alexander.lechner++at++vertigo-systems.de
Date: 09/07/2005 00:31:03


 --- Ursprüngliche Nachricht ---
Datum: 06.09.2005 18:37
Von: Mike Frizzell <mike.frizzell++at++gmail.com>
An: info-performer++at++performer.engr.sgi.com
Betreff: [info-performer] Pipe into Java
Hi Mike!

Well, I am not quite sure about the performance of your overall
application, but one way is:
(1) Setup a draw callback on your pfChannel(s)
(2) Render your scene into
    (a) OpenGL Framebuffer Object FBO and read it out afterwards
    or
    (b) the normal backbuffer and do a glReadPixels (you need a on-screen
window)
    or
    (c) use a pbuffer
(3) Transfer the data to Java world.

I would definitely go for the first option (FBO) (we've already done
this).
A problem might be to transfer the data from the DRAW proc to your APP
proc.
Either use some clever buffer algorithm (triple buffering) or mutexes or
just
run your application in APPCULLDRAW mode.
 
Good luck.
Alex
alexander.lechner++at++vertigo-systems.de

> Performers,
>
> For those savy in Java and Performer, I'm curious if I can drop the
> output of Performer into a Java application. I presently have a nice
> set of JNI function to make stuff happen in Performer from the Java
> world. What would be perfect is if someone already had a means to drop
> bring it into JMF (Java Media Framework) as a data source.
>
> The question for the group is would anyone have an idea of were to
> start? Like on the performer side, how would one dump the Performer
> output into a byte stream or simply a buffer (rather then a
> pfPipeWindow at present) that I could send over to my Java world and
> read in as an image of any kind (ie raw rgb) after every pfFrame call.
>
> Not looking for a code handout... just a place (a chpt in the pg that
> I've missed) to start looking. Thanks!
>
> Mike
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Sep 07 2005 - 00:31:15 PDT