From: Mike Frizzell (mike.frizzell++at++gmail.com)
Date: 09/08/2005 13:55:00
Next time I'm in Germany, I owe you guys a beer.
Alex, your comment led me to this:
http://www.codeproject.com/java/opengl.asp
which gave me C-based OpenGL in a Java component. This showed me how
to get all the HWND, hDCs and hRCs and what not that I needed to init
GLcontext in the Java world. I then just needed to use Performer
rather then OpenGL to do the rendering. I used this posting as a
guide:
http://oss.sgi.com/projects/performer/mail/info-performer/perf-03-06/0097.html
I didn't have one variable though that it was asking for, hInst. So I
dug around and found a way to get this variable from the java-jni
world. Tacked this onto my source and saved off the value.
BOOL APIENTRY DllMain(HINSTANCE hInstance_, DWORD ul_reason_for_call,
LPVOID lpReserved) {
hInst = hInstance_;
return TRUE;
}
Got all my libraries and includes in order, crossed my fingers, and
hit the "go" button.
Next thing I knew, I had a Java window with the "Powered By OpenGL
Performer" logo across the top. Aaahhh... success!!! OpenGL Performer
is Java ready!!
Once again, Alex, Jason, thanks for your input!
Mike
p.s. In case any SGI folks read this, for the record I do have a legit
copy of Performer. My temp license that you gave me ran out and havn't
plugged my one year license in yet! :-)
p.p.s. Willing to drop a zip-file in a public place of all the source
for this proof-of-concept. Just need a place to put it... is this
worthy of archiving?
On 9/8/05, Alexander Lechner <alexander.lechner++at++vertigo-systems.de> wrote:
> Bad luck for you, Mike.
> FBO would be the way to go, it is much more elegant than using pbuffers.
> I don't know the current state when using pbuffers and OpenGL performer.
> I think there has been some discussion on this list. There are also some
> Performer examples in the pguide, but I don't know whether they work or not.
> If you want to have an high level abstraction to all this you should have a
> look at
>
> http://www.gpgpu.org/developer/
>
> and check out the FBO and rendertotexture utility classes.
>
> And now for sth. completely different: You could also create your own
> GLcontext and use it when creating a pf(Pipe)Window. You could create a
> window and a GL context within your java app and the use this context when
> running performer...
>
> Alex
> alexander.lechner++at++vertigo-systems.de
>
>
> On Thursday 08 September 2005 01:28, Mike Frizzell wrote:
> > Latest drvier... check.
> > Checked GL_EXTENSIONS and didn't see my framebuffer extension.
> > Played with Glew and got the same results.
> >
> > Looks like my software is beyond the reach of my hardware. I guess
> > I'll just have to get off the bleeding edge. I can't have anything on
> > the screen, so it's off to study the pbuffer.
> >
> > Thanks guys. Your input is much appreciated.
> >
> > Mike
> >
> > On 9/7/05, Jason Daly <jdaly++at++ist.ucf.edu> wrote:
> > > Mike Frizzell wrote:
> > > >The question for this round, "How can I know if EXT_framebuffer_object
> > > >is supported on my graphics card?" and "if it is supported, what do I
> > > >need to link in inorder to make all this work?" Thanks!
> > >
> > > If it's supported, you don't need to link anything. It's part of the
> > > graphics driver. To see if it's supported you can use
> > > glGetString(GL_EXTENSIONS) to give you a space-separated list of
> > > extensions supported by your OpenGL driver. If EXT_framebuffer_object
> > > is there, you're in business.
> > >
> > > You may need to download the latest glext.h from
> > > http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
> > > Also, you'll want to make sure you have the latest drivers for your
> > > card, since EXT_framebuffer_object is still fairly new.
> > >
> > > Another think you may want to look at is GLEW (GL Extensions Wrangler).
> > > I've never used it myself, but I've heard that it can make dealing with
> > > GL extensions nicer.
> > >
> > > --
> > >
> > > --"J"
> > >
> > > "I'm a castaway stranded in a desolate land,
> > > I can see the footprints in the virtual sand."
> > > --Neil Peart
> >
> > -----------------------------------------------------------------------
> > 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
> > -----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Thu Sep 08 2005 - 13:55:06 PDT