Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (552)
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  
  Java Web Start and Java 3D  (Read 1805 times)
0 Members and 1 Guest are viewing this topic.
Offline marrs

Junior Newbie




Java games rock!


« Posted 2002-11-10 10:00:03 »

Has anybody ever got a Java 3D 1.3 and Java 2 SE 1.4.1 application to start through Java Web Start? I have found articles on this subject, but none seem to work under Linux. I am trying to convert the simple HelloUniverse sample to work under JWS but I get a very strange exception about a class it cannot find:

sun.awt.DrawingSurface

The strange thing is, when I start the application in stand-alone mode with the -verbose option, this class is NEVER loaded. Even weirder, Sun's bug database states this class does not even exist anymore in JDK 1.4.1. The class is probably used from within the Canvas3D class, but I don't seem to understand what's going on.

Any hints?
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2002-11-10 20:42:22 »

I cannot give you a true hint - I just can say we successfully (and even without any problem) started Java3D apps with Webstart and the version you say.
Not sure if we tried on Linux....

We require to have Java3D installed upfront. With older versions, we also had the Java3D stuff d'loaded via Webstart. But this only in an internal, non-public test environment, for I'm not sure about legal issues on that approach.

For Linux is a bit complicated .... are you sure that on the target machine there isn't an ancient Java3D installation prior in the path/CLASSPATH/LD_LIBRARY_PATH?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline marrs

Junior Newbie




Java games rock!


« Reply #2 - Posted 2002-12-12 12:55:07 »

Just wanted to notify everybody here that I have succeeded in web starting J3D both under Linux and Windows.

The only issue I cannot resolve is how to let JWS detect if the target windows machine supports the OpenGL or Direct3D version of J3D. I am assuming it's impossible to do this, but if anybody knows a way?!

Furthermore, there is the legal issue of distributing (parts of) J3D.

Finally, is there a way to detect if J3D is already installed as a standard extension? Currently, the JWS application will download a copy of J3D regardless of the fact that it might already be installed.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cknoll

Junior Member




Flame On!


« Reply #3 - Posted 2002-12-12 13:59:19 »

*Edit out after re-reading the issue*.

-Chris
Offline Conzar

Junior Member




There is nothing common about common sense


« Reply #4 - Posted 2006-05-30 22:56:41 »

* Bumping * from the dead.

So I am trying to deploy my java3d app via jws.  The GUI portion of my game runs fine (w/ all the images displaying properly) using JWS.  But when I go to load the j3d, I get an exception.  This is caused by the loader not finding a texture.  Note, the loader finds the 3d file ok (I'm using vrml).  It craps out when it gets to the url in the file for the texture.  I am already using  getResource() method to get the URL (when i give the loader the file name); however, the loader that I'm using (vrml97.jar) can't find the url to the texture --- I've noticed this in the exceptions that are thrown.

Any hints to what I should do for loading textures with vrml files?

Thanks

Ubuntu
Offline Conzar

Junior Member




There is nothing common about common sense


« Reply #5 - Posted 2006-05-31 01:53:38 »

Ok, so I have it working part way.  Here is what I did.
Instead of using the old vrml97.jar, I switched loaders to the updated version of this provided here.
Now I can load textures that are in the same directory as the vrml file. 

Now for the part that I can't get to work: relative paths

Example:
1  
2  
models/test.wrl
textures/texture.jpg


Now in test.wrl there is an element called texture and it has a url attribute
if I do this
1  
texture ImageTexture { url ".../textures/texture.jpg" }


Then I get an exception when loading this with Java Web Start; however, this works fine running the application without jws.
If I were to copy the texture.jpg into models/. and set url="texture.jpg" then it works.

I really really don't want to do this b/c it will make the whole model and texture directory structure look ugly.

Any thoughts?

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

CopyableCougar4 (22 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (26 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (41 views)
2014-08-06 19:49:38
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!