Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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  
  Why is TextureLoader giving 8-bit textures?  (Read 2219 times)
0 Members and 1 Guest are viewing this topic.
Offline tandaur

Junior Newbie

« Posted 2006-02-13 22:57:49 »


  It seems TextureLoader is returning 8-bit textures when it shouldn't be.  At first I thought the wrong color depth was set for the whole application, then after a few hours of fiddling around I found out the application (canvas3d) is in 24-bit mode (and desktop is in 32-bit mode).

But all of my textures look like they are 8-bit, like there are not enough colors.  The original textures are fine, and I've set min and mag filters to nicest, but I get color banding like you get when a 16 or 32 bit texture is loaded as 8-bit.

I must have spent at least 4 hours looking through java docs and fiddling around, does anyone have any ideas about what might be going on?


here is a screenshot:
Look at the mountain image on the far walls.
Offline tom
« Reply #1 - Posted 2006-02-14 01:20:26 »

Make sure all your driver settings are site to high quality. Some buggy drivers don't support 32 bit textures.

Offline tandaur

Junior Newbie

« Reply #2 - Posted 2006-02-14 07:17:27 »

I'm using a geforce4, with the latest drivers.  The image settings in the driver are set to highest quality.

Anyone have any ideas?  Is it the texture loader, the Texture2d or something else?

I'm loading them like this:
TextureLoader loader = new TextureLoader(filename, null); //null observer is that a problem??
Texture2D texture = (Texture2D) loader.getTexture();
Appearance app = new Appearance();

The textures on my md3 models also have that color banding, they load the textures similarly, they use Texture instead of Texture2D.

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

Junior Devvie

Java forever!!

« Reply #3 - Posted 2006-03-30 12:14:11 »

But all of my textures look like they are 8-bit, like there are not enough colors.

I had same problems, I posted a step by step solution here:

Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31  Fax: +45 65 93 29 99
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

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

Solater (103 views)
2018-03-17 05:04:08

nelsongames (186 views)
2018-03-05 17:56:34

Gornova (427 views)
2018-03-02 22:15:33

buddyBro (1087 views)
2018-02-28 16:59:18
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 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‑
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!