Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  BlendInspect  (Read 5728 times)
0 Members and 1 Guest are viewing this topic.
Offline emzic

Senior Member





« Posted 2007-08-11 11:12:32 »

hello,

i have written a small tool that visualizes the behaviour of the opengl blendmodes.
since it is maybe useful for some of you guys, i packed it in a jar and made it webstartable

you can webstart it here: http://www.embege.com/blendinspect/

any feedback is welcome! (even if it is completely senseless, tell me Wink )
i would especially be happy to know if it runs on a mac, since that is the only platform i couldnt test it. thanks!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline quintesse

Junior Member




Java games rock!


« Reply #1 - Posted 2007-08-11 21:13:32 »

Doesn't seem to work right on Linux (Fedora 7, JDK 1.6.0_01), I just get this tiny window which I can't resize. No errors in the console.
Offline emzic

Senior Member





« Reply #2 - Posted 2007-08-12 14:05:08 »

thank you very much for the information. do other jogl-webstart applications work for you?

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 lhkbob

JGO Knight


Medals: 32



« Reply #3 - Posted 2007-08-13 00:07:33 »

I didn't work with my Mac Powerbook Pro, it had an java.lang.Exception in the Launcher class.  I'm nor sure what's wrong since I'm not a very big webstart guy, however I haven't tweaked with any java or webstart settings, so there shouldn't be anything that I've done to make my problem unique to my box.  Anyway, best of luck.

Offline emzic

Senior Member





« Reply #4 - Posted 2007-08-13 12:33:45 »

thanks for the information. do other jogl-webstart application like the jogl-demos work for you?
thanks!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #5 - Posted 2007-08-13 16:34:21 »

Most of the jogl-demos work if I recall as well as the jME demos, so I know webstart is capable of working on my computer.

Offline emzic

Senior Member





« Reply #6 - Posted 2007-08-14 09:51:54 »

thanks! hmmm, that's strange. does anyone know what could be wrong with this jnlp file?
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.embege.com/blendinspect/" href="blendinspect.jnlp">

<information>
  <title>BlendInspect</title>
  <vendor>Matthias Grumet</vendor>
  <homepage href="http://www.embege.com" />
  <description>BlendInspect - OpenGL BlendMode inspection</description>
  <offline-allowed/>
</information>


<security>
   <all-permissions/>
</security>

<resources>
      <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
      <jar href="BlendInspect.jar" />
      <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
</resources>


<application-desc main-class="com.embege.blendinspect.BlendInspect"/>

</jnlp>

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #7 - Posted 2007-08-14 18:40:48 »

This is the exact exception I get if it helps you any:
java.lang.Exception
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:898)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:613)

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #8 - Posted 2007-08-16 01:33:05 »

Worked great on Windows XP SP2 with the latest Java (actually, a Java 7 development build).
Offline emzic

Senior Member





« Reply #9 - Posted 2007-08-19 20:13:56 »

lhkbob, thanks very much for the information.
i will need to look into this further. maybe it is a java-version problem, since i have only tested it with java6.

meanwhile, i am happy about any other feedback. Wink

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 flipperke

Junior Member





« Reply #10 - Posted 2007-09-07 15:09:42 »

I have the same problem (tiny window) when I open it the first time. When I try to open it a second time (while the tiny window is stil open, it works like it should.
Linux
JDK1.6.0
Offline emzic

Senior Member





« Reply #11 - Posted 2007-09-07 16:32:07 »

thanks a lot for the information! with tiny window you mean the java-webstart splash screen?

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline flipperke

Junior Member





« Reply #12 - Posted 2007-09-07 20:51:13 »

No, just a smal  (3 mm by 10mm approx).
To be more precise, it seems to start at normal size (just a split-second), an then it goes to mini.
Offline emzic

Senior Member





« Reply #13 - Posted 2007-09-07 23:58:05 »

hm, interesting. though yet i have no idea what the problem could be.

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline quintesse

Junior Member




Java games rock!


« Reply #14 - Posted 2007-09-12 10:48:08 »

Show us the code and we might be able to help  Smiley
Offline emzic

Senior Member





« Reply #15 - Posted 2007-09-12 17:12:44 »

the problem is, that the exception occurs in code which is not mine. (see lhkbob's post above)
it happens somewhere in the java-webstart launcher code.

so i could actually post the complete code, which is quite a number of java-files, but i dont think that would help.

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #16 - Posted 2007-09-12 18:23:11 »

The exception lhkbob isn't enough to make a diagnosis. There's another tab in the window which pops up like "wrapped exception" or similar which should have the real root cause.
Offline emzic

Senior Member





« Reply #17 - Posted 2007-09-12 19:51:18 »

ah thanks! i didnt realize that.

maybe someone (lhkbob? Smiley ) can post that exception too, so that we can further investigate the issue.

thanks a lot!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #18 - Posted 2007-09-14 03:16:35 »

I peaked into it further (there was no wrapped exception tab, but I remembered to check the actual console) and it's a java.lang.UnsupportedClassVersionError.  So if I'm not mistaken, that's probably because I have java 1.5.  So, sorry for leading you on, and it works fine for windows machine.

Offline emzic

Senior Member





« Reply #19 - Posted 2007-09-14 12:03:15 »

ah, ok
i was building it with 1.6 so maybe that's the problem.

edit: ok i am using ant for my deployment. does anyone know how to configure it to build it with 1.5 compliance. is that a compiler flag?

thanks!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #20 - Posted 2007-09-15 02:43:43 »

Specify the -target 1.5 argument in your javac task.
Offline emzic

Senior Member





« Reply #21 - Posted 2007-09-29 00:41:15 »

sorry for the delay, i was very busy at work.

but now i have updated BlendInspect! it is compiled with source 1.5 target and it also features a small particle system to make it easier to find the correct blendmode for your game's particlesystem!

i would be very happy if you guys (especially those with a mac) could give it a try again and provide a little feedback, if it worked or not. thanks a lot!

website: http://www.embege.com/blendinspect/

webstart: http://www.embege.com/blendinspect/blendinspect.jnlp

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline broumbroum

Junior Member





« Reply #22 - Posted 2007-09-29 01:22:22 »

got bad version in class file :

----------------------------------------------------
java.lang.UnsupportedClassVersionError: Bad version number in .class file
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at com.sun.jnlp.JNLPClassLoader.defineClass(JNLPClassLoader.java:314)
   at com.sun.jnlp.JNLPClassLoader.access$100(JNLPClassLoader.java:53)
   at com.sun.jnlp.JNLPClassLoader$1.run(JNLPClassLoader.java:254)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:247)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at com.sun.jnlp.JNLPClassLoader.loadClass(JNLPClassLoader.java:600)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:884)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:613)
#### Java Web Start Error:
#### null


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

Senior Member





« Reply #23 - Posted 2007-09-29 02:18:50 »

damned not again!

thank you very much for the feedback.
can i ask you what OS and what JRE-version you have?
thanks!

edit: i also obfuscate the jar using proguard, could that be the problem?
from the proguard docs: "By default, the version numbers of the class files are left unchanged. "

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline broumbroum

Junior Member





« Reply #24 - Posted 2007-09-29 04:44:01 »

it is Mac OS X and J2SE 1.5 running...

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

Senior Member





« Reply #25 - Posted 2007-09-29 13:19:17 »

thanks for the information.
anyone got an idea what the problem could be? i am pretty sure i compiled the sources with target 5 and also proguard shouldnt change that.

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #26 - Posted 2007-09-29 18:54:14 »

If you're using Eclipse and 1.5 jdk, try switching the project over to that and rebuilding everything instead of specifying a target option.

Offline emzic

Senior Member





« Reply #27 - Posted 2007-09-29 20:50:19 »

ok thank you! i have uploaded a new version of the jar. could you try again?

thank you very much!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #28 - Posted 2007-09-29 21:45:33 »

I have good news and bad news.
Bad news it still doesn't work correctly,
Good news is it no longer crashes, I get the BlendInspect window to pop up on my Mac, but there's only a small black bar at the top of the window.  It still runs fine on my windows machine, so I'm sure where it broke.

Offline emzic

Senior Member





« Reply #29 - Posted 2007-09-29 21:50:54 »

thank you very much for the information, and the helpful tips with the java-class-version thing, lhkbob.

but now i have again no idea what the problem with this black bar could be. anyone? thanks a lot!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Pages: [1] 2
  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.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (61 views)
2014-04-14 15:48:38

tom_mai78101 (84 views)
2014-04-10 04:04:31

BurntPizza (142 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!