Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  PbufferTest  (Read 1650 times)
0 Members and 1 Guest are viewing this topic.
Offline anarchotron

Junior Member




...precious bodily fluids.


« Posted 2005-08-05 18:46:58 »

Howdy.

I'm working on getting Pbuffer support in my application.  Basically I just need multiple render targets to do things like bloom, heat shimmer, etc...

As a first step, I was messing around with PbufferTest.  However I noticed that when using render-to-texture mode, it seems to be kind of borked up.  It is just rendering a white rectangle.  Is this a known problem?

(please see attached screenshots)

Thanks!

Offline Spasi
« Reply #1 - Posted 2005-08-05 19:01:12 »

I'm working on getting Pbuffer support in my application.  Basically I just need multiple render targets to do things like bloom, heat shimmer, etc...

Don't forget to try EXT_framebuffer_object.

As a first step, I was messing around with PbufferTest.  However I noticed that when using render-to-texture mode, it seems to be kind of borked up.  It is just rendering a white rectangle.  Is this a known problem?

No, you should be seeing the same thing. Works fine here, so it must be something with your setup. LWJGL version, card model, driver version please?
Offline anarchotron

Junior Member




...precious bodily fluids.


« Reply #2 - Posted 2005-08-05 21:12:03 »

You think that EXT_framebuffer_object is better to use than Pbuffer?

The versions I am using are

LWJGL 0.97.1
JDK 1.5.0_04
Radeon 9800 XT
driver CATALYST 5.7

Thanks!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline anarchotron

Junior Member




...precious bodily fluids.


« Reply #3 - Posted 2005-08-06 05:19:29 »

Ok I see that EXT_framebuffer_object is intended as a complete replacement for pbuffer, so my question about it vs. pbuffer is answered.

Now to find some good sample code Smiley
Offline Funkapotamus

Junior Member




wo shuo han yu


« Reply #4 - Posted 2005-08-09 18:38:02 »

Although it uses PBuffers, you might find this useful anarchotron:  http://www.funkapotamus.org/crssource.zip  (Uses LWJGL .97)

This is a demo I made using PBuffers that does exactly what you want.  The demo effect is more like a "watergun", however, heat shimmers and bloom effects is right along the same line.
Offline anarchotron

Junior Member




...precious bodily fluids.


« Reply #5 - Posted 2005-08-09 18:49:27 »

That looks awesome, thank you!

I did end up hooking up FBOs... it was pretty easy to write a wrapper class around the setup/bind/unbind/copy functionality of the FBO.  I've got bloom working (still a bit of ugly banding I'm working on getting rid of), and I'm starting on the adaptive gamma technique mentioned in the Shader X3 book!

Biggest problem I had was finding out the hard way that my FBO textures were required to be power-of-two.  Violating this requirement generates no error, but instead generated strange, and very slow, behavior that I spent quite a while trying to figure out Smiley

Offline javazoid

Junior Member




Where's Flender?


« Reply #6 - Posted 2005-08-23 09:14:10 »

Can you post some sample code of your EXT_framebuffer_object LWJGL implementation ?

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (20 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!