Hello Guest

Poll

Already tested platforms for this RFE ?

Windows x32
Windows x64
Mac OSX PPC
Mac OSX Intel
GNU/Linux x64
GNU/Linux x32
Solaris

[CLOSED] Texture loading classes

  • 11 Replies
  • 13167 Views
[CLOSED] Texture loading classes
« on: September 14, 2011, 17:01:34 »
Hi everyone,

I've been working on a texture loading class, based on my own projects ones. Since some people are wishing very much to add them into LWJGL (http://lwjgl.org/forum/index.php/topic,2886.msg19976.html#msg19976  8)) here are the updated/debugged files to possibly implement in the next release . (there's a TextureTest class)

see patches below

have fun !  :D

 EDIT : Important Note :
please report on the poll above for what system do you run with this LWJGL RFE ! THX
« Last Edit: October 25, 2011, 14:39:40 by broumbroum »

Re: [RFE] Texture loading classes
« Reply #1 on: September 15, 2011, 11:40:20 »
Did someone test this package on different platforms : Mac OS X, Linux, Windows and (deprecated ?) Solaris ?

*

Offline kappa

  • *****
  • 1316
Re: [RFE] Texture loading classes
« Reply #2 on: September 26, 2011, 11:12:22 »
I think it'll probably be best to wrap this up into a small standalone library that can be used with LWJGL.

I say this mainly because there are already a few options available for loading textures like MatthiasM's PNGDecoder and JPEGDecoder, Slick-Util, Devil, JME (also has its own classes), Ardor3D (also has its own), AWT, etc.

So to remain lightweight and neutral best to avoid having such a thing directly inside LWJGL. You could however link it up on the LWJGL Wiki and write a tutorial or two on there so users can easily find it and use it with LWJGL.

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: [RFE] Texture loading classes
« Reply #3 on: September 26, 2011, 15:12:01 »
I second kappa's opinion there. We were a bit naughty with the vector classes and other stuff that sneaked their way in there in the first place, don't want to let it keep creeping larger and larger...

Cas :)

*

Offline kappa

  • *****
  • 1316
Re: [RFE] Texture loading classes
« Reply #4 on: September 26, 2011, 16:29:56 »
We were a bit naughty with the vector classes and other stuff that sneaked their way in there in the first place
Yeh, some of those parts are now unmaintained and prune to code rot. Having a quick look in the util package it might be an idea to spin of some parts into a separate project/library since I don't think many use them so are just dead weight for the library. This would include the vector, matrix, shapes (like Rectangles, Points) and color classes. There are much nicer alternative 3rd party libraries available for these bits these days.

Also why is there another class called Display in there?! Should probably be renamed to DisplayUtil or something to avoid confusion/conflict.
« Last Edit: September 26, 2011, 16:45:39 by kappa »

Re: [RFE] Texture loading classes
« Reply #5 on: September 26, 2011, 19:33:01 »
Well i don t really agree with you Kappa for a couple of reasons :
 -unlike other libraries, its very small amount of files to include,
-like other lwjgl utils, it turns out into 1-2 lines of code, e.g. loading sound with lwjgl Wavedata.
-unlike other opengl libraries, the coder is still aware of much of the opengl coding 'i.e. the texture still has to be uploaded into the graphics ram.

Now I dont have any kind of Display class to add. You are mistaken. it s just about the org.lwjgjl.util package.

I wont publish a separate library for so a few amount of code. I apologize for this.^^ Anyway, everyone can test this Texture rfe and report for any enhancement here. Its part of the job to test and give us some feedback. :-)
« Last Edit: September 26, 2011, 20:53:24 by broumbroum »

Re: [RFE] Texture loading classes
« Reply #6 on: September 27, 2011, 00:29:31 »
Quote
There are much nicer alternative 3rd party libraries available for these bits these days.

Do you have any particular recommendations? It might help those that are just starting (and maybe some of us who've even been hiding in the background for a few years now ;) ).

=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

*

Offline kappa

  • *****
  • 1316
Re: [RFE] Texture loading classes
« Reply #7 on: September 27, 2011, 09:08:36 »
Quote
There are much nicer alternative 3rd party libraries available for these bits these days.

Do you have any particular recommendations? It might help those that are just starting (and maybe some of us who've even been hiding in the background for a few years now ;) ).

- Vecmath library seems like a nice attempt at a common Math API (used by jBullet, jPCT, etc).
- Xith3D uses a nice standalone library called OpenMali, seems pretty complete.
- Both jMonkeyEngine and Ardor3D have had nice maths packages from a long time, which I've occasionally pinched bits from.
- LibGDX has a really nice and small maths package, seems pretty optimised.

The above bits of code are either BSD licence or similarly liberal, so shouldn't be any problems in using them.
« Last Edit: September 27, 2011, 09:16:51 by kappa »

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: [RFE] Texture loading classes
« Reply #8 on: September 27, 2011, 11:15:31 »
If we're going to flat-out remove API from LWJGL, even in the util packages, we should probably bump the major version number to 3.0 and think about cleaning up all the other little idiosyncrasies and inconsistencies.

Cas :)

Re: [RFE] Texture loading classes
« Reply #9 on: September 27, 2011, 20:13:49 »
Sure, 3.0 is the next step. Thoroughly to implementing MORE instead of removing. I think about including this RFE,  which makes sense to improving the coding experience on lwjgl.

Re: [RFE] Texture loading classes
« Reply #10 on: September 29, 2011, 05:22:05 »
I think that this would be best included in a separate lwjgl jar, like lwjgl-ex or something.  And all new middle-ware code would be there.

However, it would be good to keep the old math/vector stuff already present in LWJGL so old code doesn't break if the programmer wants to use the newest jars.
cool story, bro

Re: [RFE] Texture loading classes
« Reply #11 on: September 29, 2011, 06:33:17 »
+1 for your suggest.  :D