Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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 19001 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:
http://weblogs.java.net/blog/campbell/archive/2006/10/easy_2d3d_mixin.html

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...

Thanks,
Chris
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:
http://weblogs.java.net/blog/campbell/archive/2007/01/java_2d_and_jog.html

Source code and webstarted demo included.

Thanks,
Chris
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,

DarkDerivative
---------------------
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,

DarkDerivative
--------------------
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 http://weblogs.java.net/blog/campbell/archive/2007/01/java_2d_and_jog.html 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()?

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
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 : http://broumbroum84mirror3.ifrance.com/jnlp/demos/  Cheesy

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /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:

org.jdesktop.animation.timing.Cycle;
org.jdesktop.animation.timing.Envelope;
org.jdesktop.animation.timing.TimingController;
org.jdesktop.animation.timing.TimingEvent;
org.jdesktop.animation.timing.TimingListener;
org.jdesktop.animation.timing.interpolation.ObjectModifier;
org.jdesktop.animation.timing.interpolation.PropertyRange;

...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.

 

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

The first screenshot will be displayed as a thumbnail.

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

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

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

trollwarrior1 (38 views)
2014-11-22 12:13:56

xFryIx (77 views)
2014-11-13 12:34:49

digdugdiggy (55 views)
2014-11-12 21:11:50
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

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