Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: Java2D/JOGL Interoperability Demo on: 2006-01-24 23:44:15
See here for Twinkle: http://www.jroller.com/page/gfx/?anchor=a_swing_opengl_photo_viewer
and here for the 3D button: http://www.jroller.com/page/gfx/?anchor=a_swing_button_with_3d
2  Java Game APIs & Engines / JOGL Development / Re: Java2D/JOGL Interoperability Demo on: 2006-01-12 07:54:46
I need to add my computer is a P4 1.8 Ghz laptop with 1 GB of RAM. So it's pretty good but it's not extremly powerful.
3  Java Game APIs & Engines / JOGL Development / Re: Java2D/JOGL Interoperability Demo on: 2006-01-11 18:57:48
I wrote this demo and it works just perfectly on various Mustang builds on my computer so I have to admit I have no idea of what's going wrong in your case. Could you try to download the source achives and use this command to run the demo: java -classpath bin -Dtwinkle.aa=true -Dsun.java2d.opengl=True -Djogl.debug.Java2D org.progx.twinkle.Twinkle

If you still have very bad performance, try to turn -Dtwinkle.aa=true to -Dtwinkle.aa=false

I had MANY problems with the OpenGL pipeline on my previous computer which had an ATI graphics card. I now run with an nVidia and I have seen none of the bugs I experienced before (mainly corrupted pictures).
4  Java Game APIs & Engines / JOGL Development / Swing/JOGL integration demos on: 2005-12-03 01:11:43
Hi folks,

I have been playing recently with the new JOGL feature that allows to mix Swing and OpenGL without any artifact. Despite a few minor problems, I'm glad to say it works really well. I got two demos for you.

The first one shows one of the gears from the famous Gears demo used as an icon in a JButton. Whenever the mouse enters the button, the gear starts rotating. Besides the screenshot below, you can take a look at a video (http://jext.free.fr/button3d.mov) and at the source code (http://jext.free.fr/3DButton.zip). The source code is more a proof of concept than a real solution. I basically set a blank text on the JButton, change its layout to FlowLayout and add a GLJPanel and a JLabel into the button. As a drawback, the focus is not painted correctly. I have a few ideas for better implementations though.



The second demo is the opposite. Instead of putting an OpenGL scene into a JButton, it shows JButtons inside an OpenGL scene (+ extra Java2D stuff). I haven't released the source code yet because I'd like to disclose it at JavaPolis in two weeks. I will post the source code the 15th or the 16th of December. I have uploaded a video of the demo in different formats: QuickTime 7 (http://jext.free.fr/twinkle.mov), XviD (http://jext.free.fr/twinkle.avi) and DivX 6 (http://jext.free.fr/twinkle.divx). The text and the pictures strip are drawn with Java2D and the buttons at the bottom left are JButton in a JPanel (the rounded rectangle).



While developing those demos I have stumbled into two important issues. First, using full scene antialiasing doesn't work (but Ken told me he'd be working on that Smiley. Instead I am using the old ugly accum buffer trick but the major drawback is you lose the possible transparency of the GLJPanel. The second issue is related to Java2D antialiasing. The text and the rounded rectangle in the second demo are painted into offscreen BufferedImages. Painting them directly onto the screen procudes visual artifacts. Chris Campbell and I actually discovered that it happens with text if the font size is greater than 16 (if it is you'll see each character replaced by the last character of the string). So beware Smiley
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!