Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Considering jogl, having 2 questions b4  (Read 2404 times)
0 Members and 1 Guest are viewing this topic.
Offline Usul

Senior Newbie




I hunt bugs


« Posted 2005-10-02 15:48:54 »

hi,

I'm considering starting with jogl.  But I have two questions:

1.  Do 2D games also benefit of hardware acceleration and to which extend compared to pure Java2D ?  I've read that many 2D games are made using OpenGL support.  So how much better is it?

2.  How do I distribute a game/program to an end-user when I use jogl?  Of course the end-user has to have java installed.  But I dont want to force him to install anything else (and I dont want to use webstart).  I just want to give him a *.jar file and thats it.  So is it possible to distribute jogl along with that *.jar file without any disadvantages for the end-user?

thanx,

              Usul

It's times like this that I wish I'd listened to what my dad used to tell me.
Yeah? What was that?
I don't know. I never listened. 
- Dr. Venkman and Mr. Zeddemore
Offline Riven
Administrator

« JGO Overlord »


Medals: 1340
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2005-10-02 16:05:07 »

JOGL relies on dynamic libraries. These have to be in a directory, not in a JAR.

One option would be that you put everything in your JAR, then let the app inside the JAR extract the libs from 'itself' to the current directory. After that, do your JOGL stuff which will automaticly find the libs.

While running the app, the JAR will be in read-only mode (VM locking it) but that shouldn't be a problem.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline Riven
Administrator

« JGO Overlord »


Medals: 1340
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2005-10-02 16:08:42 »

So is it possible to distribute jogl along with that *.jar file without any disadvantages for the end-user?

Almost forgot to mention that distribution of a JAR to the end-user is a disadvantage in itself. There is no guarantee java will be launched when double-clicking it.

JWS is a bit safer, and a bit more userfriendly.


Welcome to the wonderful (??) world of java-app distribution Roll Eyes

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tom
« Reply #3 - Posted 2005-10-02 21:39:07 »

1.  Do 2D games also benefit of hardware acceleration and to which extend compared to pure Java2D ?  I've read that many 2D games are made using OpenGL support.  So how much better is it?

Most 2D games will benefit greately from hardware acceleration.

Comparing OpenGL to pure Java2D is difficult since it's also uses hw acceleration in some situation. What is accelerated is not alway easy to know and depends on wich pipeline is used.

Offline princec

« JGO Spiffy Duke »


Medals: 1033
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2005-10-03 09:19:12 »

The only cast-iron way to distribute a JOGL app to end users is to embed the entire JVM in your application and install the whole lot using a proper installer, say, Nullsoft's excellent NSIS. Also take a look at JSmooth also which might be just what you need.

Cas Smiley

Offline nnevatie

Junior Devvie




It is slightly better to be simple than correct.


« Reply #5 - Posted 2005-10-03 12:33:17 »

Also take a look at JSmooth also which might be just what you need.

...and if that does not please you, take a look at Boostrap, which is a non-intrusive way of launching Java apps neatly on Windows platform:

http://www.g0dmode.com/javastuff/bootstrap-1.0.zip


Awards:
- Nobel Prize in Physics for inventing his Doomsday Machine
- Nobel Peace Prize for not using it

http://www.g0dmode.com -- a collection of things not real
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (76 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (258 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (160 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!