Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Removed..  (Read 5019 times)
0 Members and 1 Guest are viewing this topic.
Offline NewOnJava

Junior Duke




1970 born Java game hobbyer.


« Posted 2009-10-31 15:07:25 »

Removed..
Offline irreversible_kev

Junior Duke





« Reply #1 - Posted 2009-10-31 19:08:25 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
Applet -> Init ()
Applet -> Start ()
Applet -> Run ()
Exception in thread "Thread-10" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
   at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
   at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
   at sun.awt.image.VolatileSurfaceManager.restoreContents(Unknown Source)
   at sun.java2d.SurfaceData.restoreContents(Unknown Source)
   at sun.java2d.opengl.WGLSurfaceData$WGLOffScreenSurfaceData.getReplacement(Unknown Source)
   at sun.java2d.SunGraphics2D.revalidateAll(Unknown Source)
   at sun.java2d.SunGraphics2D.getCompClip(Unknown Source)
   at sun.java2d.pipe.DrawImage.renderImageXform(Unknown Source)
   at sun.java2d.opengl.OGLDrawImage.renderImageXform(Unknown Source)
   at sun.java2d.pipe.DrawImage.transformImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.scaleImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.scaleImage(Unknown Source)
   at sun.java2d.pipe.ValidatePipe.scaleImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at a.a.a(Unknown Source)
   at jumalautapelit.Applet_Main.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Applet -> Stop ()
Offline NewOnJava

Junior Duke




1970 born Java game hobbyer.


« Reply #2 - Posted 2009-10-31 20:05:15 »

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

Senior Duke


Medals: 1
Projects: 1


Co-op Freak


« Reply #3 - Posted 2009-11-08 03:16:46 »

Air Pilots looks pretty cool, but I dont get it, I don't see any reaction to the cursor happening...
Terveisiä Kuiteski! Speed is fine for me, XP, laptop AMILO Pro.
On another computer I do see speed problems, I have heavy slowdown on my office machine, XP with ATI Radeon 8600.
Most fast Java games crap out on it, including the one I'm building myself Sad though it's stil a heavyweight computer by all other standards.
Never really got a good answer why, even the SmallFormFactor PC's with Intel cards do better than mine.
Haven't got java running on the linux machine yet, will try to get that sorted next week.
As for Opera, I hardly get any applets to work on Windows Opera in the first place, so could almost just strike it off the list.
Guess there's no other good answer except computers sometimes suck...



Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #4 - Posted 2009-11-08 07:34:53 »

both Opera and Konqueror don't use the Sun Java Plugin, instead they use there own implementation which are both crap Smiley

I get the same error as irreversible_kev on windows, chrome browser, latest jre.
Offline DzzD
« Reply #5 - Posted 2009-11-08 09:54:55 »

Quote
Applet -> Start ()
Applet -> Run ()
Exception in thread "Thread-9" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
   at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
   at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
   at sun.awt.image.VolatileSurfaceManager.restoreContents(Unknown Source)
   at sun.java2d.SurfaceData.restoreContents(Unknown Source)
   at sun.java2d.opengl.WGLSurfaceData$WGLOffScreenSurfaceData.getReplacement(Unknown Source)
   at sun.java2d.SunGraphics2D.revalidateAll(Unknown Source)
   at sun.java2d.SunGraphics2D.getCompClip(Unknown Source)
   at sun.java2d.pipe.DrawImage.renderImageXform(Unknown Source)
   at sun.java2d.opengl.OGLDrawImage.renderImageXform(Unknown Source)
   at sun.java2d.pipe.DrawImage.transformImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.scaleImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.scaleImage(Unknown Source)
   at sun.java2d.pipe.ValidatePipe.scaleImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at a.a.a(Unknown Source)
   at jumalautapelit.Applet_Main.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
browser hang for a while anf then same exception as above

Offline irreversible_kev

Junior Duke





« Reply #6 - Posted 2009-11-08 12:05:08 »

OuWou!

It works on my Desktop computer, but it is good to know that people have different kind of computers Smiley

What kind of computer you have ?? do you have onboard graphics card ?? Intel GMA950 maybe ??

What Java JRE you have ?? IcedTea ?? OpenJRE ?? SUNJAVA ??

//----

Thanks,,

Hey

Normal Sun Java
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
Firefox 3.5.5
Windows XP
Geforce 8800

The page just goes yellow!
Offline broumbroum

Junior Duke





« Reply #7 - Posted 2009-11-08 15:40:57 »

Hello!

I have, heh, over 30+ Java2D games on a build to my homesite.

My question cames when on Linux and on browser with full viewport game applets.
My problem is the OPENGL enabled problem.
(...)
You've got Opengl Java2d pipeline enabled, haven't you ? So it's worth disabling sun.java2d.translaccel=false.
Also, make sure you check the proper loading of the image you draw, with a MediaTracker !
Smiley

::::... :..... :::::: ;;;:::™ 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 NewOnJava

Junior Duke




1970 born Java game hobbyer.


« Reply #8 - Posted 2009-11-11 08:28:39 »

Removed..
Offline Karmington

Senior Duke


Medals: 1
Projects: 1


Co-op Freak


« Reply #9 - Posted 2009-11-11 10:07:59 »

hmm. I'm getting images first with Toolkit and MediaTracker, and then drawing them onto the BufferedImage.
I've had nothing but headaches trying to use all the other Image loading systems.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #10 - Posted 2009-11-11 16:09:04 »

1  
2  
3  
4  
5  
public BufferedImage LoadCompatibleBImage( String fpath )
    {
....
            BufferedImage temp2_fbimg = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().createCompatibleImage ( (int)(temp1_fbimg.getWidth()),(int)(temp1_fbimg.getHeight()), Transparency.TRANSLUCENT );
 ....

Why it fails on some machines ??
maybe because in some case temp1_fbimg is not fully loaded/decoded (slower to load) and then its width/height are unknow yet, sounds strange...

Offline NewOnJava

Junior Duke




1970 born Java game hobbyer.


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

Removed..
Offline Karmington

Senior Duke


Medals: 1
Projects: 1


Co-op Freak


« Reply #12 - Posted 2009-11-12 09:26:20 »

worked nice and fast for me : now tell us how to play??

Offline zoto

Senior Duke


Medals: 4



« Reply #13 - Posted 2009-11-27 06:42:36 »

vista 64sp2, java version "1.6.0_13"
Quote
Applet -> Init ()
Applet -> Start ()
Loaded image: http://www.jumalautapelit.eu/Pelit/alateksti.png
Applet -> Run ()
Exception in thread "Thread-10" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
   at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
   at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)

...

Edit: I get a file not found error if I look at the image location.
Offline broumbroum

Junior Duke





« Reply #14 - Posted 2009-11-27 22:39:39 »

Quote
I have the OpenGL enabled option on, on my .PHP file.
Why with OPERA or KONQUEROR the Applet wont get accelerated. ( only 2fps )
I have a full succes on all WinXP browsers ( 53fps ) and on Linux Firefox browser ( 52 fps ).
Opera and konqueror may not be using the java plugin 2, which means no args can be given  to the JVM.
e.g. <param name="separate_jvm" value="true"/> is not recognized. This is also an issue on non-plugin2 browsers as Safari. Then opengl pipeline or memory heap may not be modified from an applet.

::::... :..... :::::: ;;;:::™ 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 NewOnJava

Junior Duke




1970 born Java game hobbyer.


« Reply #15 - Posted 2009-12-01 21:14:29 »

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

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (36 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (67 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
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!