Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
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  
  Blog: Easy 2D/3D Mixing in Swing  (Read 19338 times)
0 Members and 1 Guest are viewing this topic.
Offline campbell

Junior Devvie

Java games rock!

« Posted 2006-10-16 06:35:13 »

Since it may be relevant to folks on this forum (especially newcomers), I just wanted to mention a blog entry I wrote last week about mixing Java2D, JOGL, and Swing:

Source code and webstarted demo included.  Covers things like a simplified version of GLJPanel, using Chet's timingframework in a 2D/3D/Swing environment, the TextureIO utility classes, and more...

Offline Ken Russell

JGO Coder

Java games rock!

« Reply #1 - Posted 2006-10-16 17:47:29 »

Cool stuff. I've added a link to your blog entry to the JOGL demos page and made this topic sticky for now.
Offline campbell

Junior Devvie

Java games rock!

« Reply #2 - Posted 2007-01-23 20:55:06 »

I just posted another blog entry that covers things from the other perspective -- using Java 2D elements (text, animated rendering, etc) from within a JOGL application:

Source code and webstarted demo included.

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

JGO Coder

Java games rock!

« Reply #3 - Posted 2007-01-23 23:40:09 »

Excellent. I've linked to your blog posting from the jogl-demos web page as well.
Offline DarkDerivative

Junior Newbie

« Reply #4 - Posted 2007-06-30 01:44:22 »

Hi Chris,

Your "flip side" article is great, thanks!

These features are very exciting.  Excuse the newb question.  I'm
new to Java2D, and somewhat new to jogl.  (Not to mention new
to posting)

I've tried the TextRenderer class, and it's very easy to print
text over my jogl/openGL 3D animation.  Very cool!

However, for a "chat box" I'd like a background, and also
boundry the TextRenderer text to the effective box boundries.

So I'm assuming this would be done with the Overlay class
you mention?

Are these two classes meant to operate together in this fashion?

Are there any examples of something like this?

Thanks much,

Offline DarkDerivative

Junior Newbie

« Reply #5 - Posted 2007-07-02 04:57:05 »

OK, from some study it looks like I need to use the TextureRenderer directly
instead of the TextRenderer or Overlay.

This is quite cool.  Wish there was a little more docs for those of us who
are not so far along in jogl and/or Java2D.  Am still kinda confused on
all the functions and copies (backing to texture to screen).

Not sure from the class docs why I seem to need both begin/end OrthoRendering,
and drawOrthoRect.  But I guess it will hopefully become clear after more experiments.

But yeah, just wildly cool.  I was kind of depressed looking at fonts in openGL earlier.
This came at a perfect time.

Thanks much,

Offline DaveLloyd

Junior Devvie

Making things happen fast with Java!

« Reply #6 - Posted 2007-07-30 21:52:40 »

It's been mentionned that the TextureRenderer might use the JOGL / Java2D bridge. Any idea if/when that might happen?

Offline Saxer

Junior Devvie

« Reply #7 - Posted 2007-09-03 08:40:52 »

The demo seems to be broken with newer jogl-webstart-versions. In get an GLException when the demo tries to sync() the renderer.
Offline darkpegasus

Senior Newbie

« Reply #8 - Posted 2007-10-10 17:18:52 »

I think import com.sun.opengl.util.j2d.* has been renamed in newer versions. Has anyone posted an updated version of this demo anywhere?

While it may be a trivial change once you know what you're doing, I'm a big believer of having a demo that works first for those of us that are slow learners  Smiley
Offline emzic

Senior Devvie

« Reply #9 - Posted 2007-10-10 17:25:45 »

wasnt the sync() method replaced by markdirty()?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline broumbroum

Junior Devvie

« Reply #10 - Posted 2007-10-10 20:18:34 »

PhotoCube has been debugged to 1.5+ from source-code by myself :  Cheesy

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline campbell

Junior Devvie

Java games rock!

« Reply #11 - Posted 2007-10-11 20:53:12 »

All: I'm ashamed that it took me over six months to update the (one line of) source code to account for the change from sync() to markDirty() in the BezierAnim3D demo. Mea culpa. I've updated the source code and webstart binaries linked in the blog entry accordingly.  I'll hopefully post a more interesting demo in the near future...

Thanks, Chris.
Offline Roxxor

Senior Newbie

« Reply #12 - Posted 2009-07-11 21:13:58 »

The below classes:


...seem to be gone now from the TimingFramework. Will there be an update of this demo soon?
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Riven (23 views)
2015-07-27 16:38:00

Riven (13 views)
2015-07-27 15:35:20

Riven (18 views)
2015-07-27 12:26:13

Riven (8 views)
2015-07-27 12:23:39

BurntPizza (24 views)
2015-07-25 00:14:37

BurntPizza (36 views)
2015-07-24 22:06:39

BurntPizza (20 views)
2015-07-24 06:06:53

NoxInc (23 views)
2015-07-22 22:16:53

NoxInc (14 views)
2015-07-22 22:13:39

Jesse (36 views)
2015-07-22 03:10:36
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!