Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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 1289 times)
0 Members and 1 Guest are viewing this topic.
Offline tandaur

Junior Newbie





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

Hello,

  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?

Thanks,
-mike

here is a screenshot: http://img.photobucket.com/albums/v158/tandaur/bad.jpg
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:
1  
2  
3  
4  
5  
6  
7  
8  
TextureLoader loader = new TextureLoader(filename, null); //null observer is that a problem??
Texture2D texture = (Texture2D) loader.getTexture();
texture.setMagFilter(Texture2D.NICEST);
texture.setMinFilter(Texture2D.NICEST);
texture.setEnable(true);
Appearance app = new Appearance();
app.setTexture(texture);
setAppearance(app);



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 Duke




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:
https://java3d.dev.java.net/issues/show_bug.cgi?id=232

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

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (29 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!