Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 04:52:54 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich) Are there any size limitations on a texture?
Pages: [1]
Print
Author Topic: Are there any size limitations on a texture?  (Read 292 times)
underfloor heating
Just dropped in

Offline Offline

Posts: 1


View Profile WWW Email
« on: 13. February 2011, 05:23:59 pm »

I'm having trouble loading some textures.  What is the expected format for a texture?  So far I've only gotten JPGs to work.  I cannot get a PNG or a BMP to work, and even converting either into a JPG in photoshop, the converted JPG also does not show.

Also, are there any size limitations on a texture?
Logged

Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 13. February 2011, 11:38:33 pm »

The default implementation of the TextureLoader supports JPEG, PNG, TGA, GIF, PCX, BMP and SGI and possibly some others, that can be loaded normal JRE image processing code.

If you can ignore the larger amount of data on the HDD, I highly encourage you to use TGA or GIF, since they load way faster than JPEG or PNG. But JPEG and PNG should always load, if the JRE supports the specific file. And I suppose, this should be always, if the file isn't corrupt.

Maybe your image processing software is corrupt. Try to load an arbitrary file loaded from the internet.

OpenGL has a theoretical size limit of 4096 pixels on each dimension for textures. But I suppose, you can also load larger textures on newer OpenGL releases. Though these larer textures normally make little sense.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic