Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Xith and JSR231  (Read 4254 times)
0 Members and 1 Guest are viewing this topic.
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Posted 2005-12-16 10:56:17 »

Hi, is anyone working on the port of the jogl renderer to the forthcoming JSR-231 ? or may be is it already done ?

Lilian

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #1 - Posted 2005-12-16 16:18:14 »

I don't know, but I would be very interested also.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2005-12-17 00:27:01 »

Can you post some more information about JSR231 please and your thoughts on the matter?  Would it be hard to port?

Will.

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

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #3 - Posted 2005-12-17 06:16:26 »

jsr231 should be nearly comptible with jogl, except for package names and a generalized use of NIO buffers.

I will do the port, and send you the full source code.

just give me a package name ... com.xith3d.render.jsr231 ?

As there are two API for rendering (the old glEventListener way and a more direct one), I'll test both.

I'm going to need some help in running the test suite, volunteers please !

Lilian

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #4 - Posted 2005-12-17 09:38:53 »

I'd be pleased to test your port. Thanks for your engagement !

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #5 - Posted 2005-12-17 14:18:42 »

I am happy to test your port on OS X.

The package name sounds fine.

Please submit your code for tracking via IssueZilla.  Following the Xith3D coding standards would be appreciated too (essentially these are the standard Sun Java ones with 4 space indents).

Are you able to maintain this renderer going forward?  Not essential but always nice Smiley

Thanks!

Will.

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #6 - Posted 2005-12-17 14:55:48 »

Long term commitment : I don't know yet, it will depend on the success of the small game I'm currently working on.

I've opted for Xith3D to shorten the development times, and I haven't encountered yet a blocking problem, my productivity is an order of magnitude over my previous "raw open-gl" developments... I must admit I like it !

I try to adapt the engine to my needs when something doesn't suit me (see the "Xith contributions" topic I've started today) and I'm willing to share my updates whenever possible.

I should finish this game in the near future;  after that I'll decide whether continuing (and contributing more) with Xith3D (with a more ambitious project) or to opt for something else...

Lilian

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #7 - Posted 2005-12-17 22:51:47 »

All good.  Thanks for participating in the community.  We seem to have quite a few active members currently which is really great.  Good luck with your projects!

Will.

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #8 - Posted 2005-12-31 09:22:20 »

Porting done...now testing !

... these new nio buffers that replace int and float arrays are tricky... I seem to have forgotten a rewind() and nothing works... back to re-reading every class I've updated...

I should post the sources (once the whole set of test classes and the q3d demo are working on my computer) in the issue tracker next week.


Lilian


 

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #9 - Posted 2006-01-02 10:36:02 »

[EDITED] SOURCE CODE POSTED as Issue 103

Test is finished, everything seems to work fine here,

Some issues or things to enhance/discuss, I think it's better to expose them here instead of the issur tracker :

- The quake demo shows some hickups not present with the old jogl renderer, it's not gc related, but seems to happen when new clusters are loaded. I'll have to investigate to understand why this happens. Any help is welcome ! It might be related to texture loading (see point below) but I'm not sure of this.

- the GeomNioIntData used to send array indexes needs to be updated, the setInts(..) method don't rewind or position() the underlying nio buffer
- Same for GeomNioFloatData, buffers not rewinded.

- There are new features in jsr231, like the shared GLContext, that could be exposed in CanvasPeerImpl to allow for instance texture sharing between multiple Xith canvases. If someone is interested please start a new topic to discuss it.

- I've implemented the port with the GLAutoDrawable/ GLCanvas objects (similar to the jogl version). As it works fine, I won't develop the more direct mode (the one without listener) unless someones sees some real improvements in doing so.

- I've used the ByteBuffer.wrap(byte[])  in the TextureShaderPeer to send texture data to the GL, I'm not sure it's the best way to do it, as Ken Russel said in a jogl thread that it's better to always use direct buffers (or is this a kind of direct buffer ?). Also, It might be better to store directly the texture data (currently a byte[ ] ) into a ByteBuffer to avoid some data transfers when loading a texture.

- Many matrix methods use float arrays to store matrix values, I haven't messed up with that code : I've added some private FloatBuffers to store these values in the appropriate Peers and use them as intermediates between matrices and the GL.

- the Q3d demo starts with a messed initial screen (as rendering the first frame takes several seconds) exposing memory internals, whereas the jogl version starts with a white screen...


Any comments on theses points are welcome !


Lilian

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

JGO Coder


Projects: 2


Fire at will


« Reply #10 - Posted 2006-01-15 03:53:56 »

Hi,

Thanks for this excellent contribution.  I have posted some comments in https://xith3d.dev.java.net/issues/show_bug.cgi?id=103 relating to the JSR231 and JOGL relationship (upon investigation I get the impression we should be replacing the jogl renderer with your port rather than adding a new renderer).

From what I could tell, JSR231 is what JOGL is now, and JOGL as it used to be is deprecated.  Is that correct?

Incidently if anyone is looking for the JSR231 packages, they are here:  https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=4650&expandFolder=4650&folderID=4649

Cheers,

Will.

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #11 - Posted 2006-01-15 07:14:40 »

From what I could tell, JSR231 is what JOGL is now, and JOGL as it used to be is deprecated.  Is that correct?

This is correct. JOGL has evolved to track the forthcoming Java bindings for OpenGL standard. The old JOGL APIs under the net.java.games.jogl namespace are no longer being maintained. The new implementation is more robust than the JOGL 1.1.1 release and also offers new features such as lower-level control of OpenGL drawables and contexts if it is needed. I would encourage you to replace the JOGL renderer in Xith3D rather than also attempt to maintain the original one.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #12 - Posted 2006-01-15 07:20:20 »

Thanks for the answer Ken, I think we will do exactly that.

Cheers,

Will.

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #13 - Posted 2006-02-22 15:27:00 »

Hi,

So what is the status of JSR231-based renderer?

Yuri

Yuri Vl. Gushchin
JProof Group
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #14 - Posted 2006-02-22 15:41:44 »

For my part, I've updated it locally (small patches) but I haven't got the time right now to properly prepare and file that version. I will certainly do it at the beginning of march.

Lilian

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #15 - Posted 2006-02-22 15:46:41 »

Hi again,

Would be great to have a version even unprepared, because of I am going to update my apps that use Xith3D to JSR-231.

So, if you can send me your version, I can also check it out and commit to Xith3D core CVS (I think even unprepared but most recent version would be really OK, so you can save your time also Smiley )

Yuri

Yuri Vl. Gushchin
JProof Group
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #16 - Posted 2006-02-22 15:49:13 »

I was sure you were going to ask that Smiley

Give me a day or two to diff the files (I have to check if I haven't added specific game code).

Lilian

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #17 - Posted 2006-02-22 16:29:36 »

Great thanks,

..and.. I just checked the game from JavaPause - it is amazing! Really amazing!

Yuri

Yuri Vl. Gushchin
JProof Group
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #18 - Posted 2006-02-22 16:39:51 »

wait till march... you'll see much much more ... Wink


Lilian


Online princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #19 - Posted 2006-02-24 16:26:44 »

What happened to the LWJGL renderer? Is it working? Up-to-date?

Cas Smiley

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #20 - Posted 2006-02-24 16:33:36 »

What happened to the LWJGL renderer? Is it working? Up-to-date?

Cas Smiley
Don't know if it's working now, but I know I tested it someday and it didn't work.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #21 - Posted 2006-02-24 16:43:35 »

Haven't tried it yet, but I'd like to give it a try some day (full screen support seems to be better in LWJGL, especially on older JREs).

I've ported Xith to JSR231 because I wanted to use JOGLAppletLauncher with Sun signing. I might try the LWJGL equivalent it in the coming months (with my own cert) to see how it performs (and if it works)

Now, let's go back to upload my Xtih updates...

Lilian Smiley

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #22 - Posted 2006-02-24 16:56:34 »

Yuri (and others), I've uploaded my JSR231 as an attachment of issue #103 on the issue tracker. feel free to use it !

Lilian

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #23 - Posted 2006-02-24 17:13:20 »

Thanks,

Checking it out.

I already played with your previous version, and it was working fine, so I will integrate new version into CVS ASAP.

Also I would like to ask other to attend some of conceptual topics I highlighted in other posts, because of they may cause some incompatible changes in future (what I really don't like).

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #24 - Posted 2006-02-25 16:27:21 »

Lilian,

I tested your code and it works pretty well. There is one minor issue with Texture3D, so I will check this in more details. Anyway, I am up to update current CVS version with this renderer.

The question is if we should stop supporting JOGL renderer?

Yuri

Yuri Vl. Gushchin
JProof Group
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #25 - Posted 2006-02-25 16:49:45 »

Texture3D : I don't use it, so I haven't tested it...

About dropping JOGL for JSR231 : This issue has been discussed and it seems like William wanted to do that. I'm not that sure, but for my own needs it's clear that I won't use this unsupported version anymore.


Lilian Smiley


Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #26 - Posted 2006-02-25 17:15:22 »

New JSR-231 renderer committed.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #27 - Posted 2006-02-26 07:03:00 »

What happened to the LWJGL renderer? Is it working? Up-to-date?

Cas Smiley

Yes it is working.  Yes it is relatively up to date.  My personal project supports both (user configurable), something I have found very useful when for some reason one of the API's would just not work on a particular setup.

Cheers,

Will.

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.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (66 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
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!