Where can I get the JPG/PNGLoader under last releases?
5 posts
• Page 1 of 1
Where can I get the JPG/PNGLoader under last releases?
Hi,
It's my first post on forum
I use Ardor3D from the last week, just to say that I am totally newbie.
Until now I am really happy, the double instead of float gives more precision on large scene
Anyway I am using the 0.7 snapshot version, but when I load any jpeg or png image I receive a message like
"the format .png/.jpg not supported". Debugging I noticed that the library loads only BMP/TGA/ADI/DSS loaders... so, even if PNG/JPG support is not implement out of the box
TGA could be a better choice?
It's my first post on forum
Until now I am really happy, the double instead of float gives more precision on large scene
Anyway I am using the 0.7 snapshot version, but when I load any jpeg or png image I receive a message like
"the format .png/.jpg not supported". Debugging I noticed that the library loads only BMP/TGA/ADI/DSS loaders... so, even if PNG/JPG support is not implement out of the box
- Steelplume
- newcomer
- Posts: 18
- Joined: Tue Jun 29, 2010 9:46 am
Re: Where can I get the JPG/PNGLoader under last releases?
PNG/JPG support is bundled with the AWT Image Loader. I use it regularily. It can also load any BufferedImage as a texture, which is the handiest way of working with CPU procedurally generated textures.
The best format usually is DDS. Both nVidia and ATI provide free converters for these.
The best format usually is DDS. Both nVidia and ATI provide free converters for these.
- jp.lorandi
- regular
- Posts: 123
- Joined: Sun Mar 29, 2009 2:07 pm
- Location: Rosario, Argentina
Re: Where can I get the JPG/PNGLoader under last releases?
You can load JPG, GIF, PNG and others that awt supports by simply adding a single line to your code early in your initialization:
We keep it out of the core jar for a number of reasons, so just make sure you add ardor3d-awt.jar to your app's classpath and import com.ardor3d.image.util.AWTImageLoader.
Hope that helps!
- Code: Select all
AWTImageLoader.registerLoader();
We keep it out of the core jar for a number of reasons, so just make sure you add ardor3d-awt.jar to your app's classpath and import com.ardor3d.image.util.AWTImageLoader.
Hope that helps!
Gratitude is a mark of a noble soul and a refined character.
-

renanse - Site Admin
- Posts: 2958
- Joined: Tue Oct 28, 2008 6:49 pm
- Location: Austin, TX
Re: Where can I get the JPG/PNGLoader under last releases?
renanse wrote:You can load JPG, GIF, PNG and others that awt supports by simply adding a single line to your code early in your initialization:
- Code: Select all
AWTImageLoader.registerLoader();
We keep it out of the core jar for a number of reasons, so just make sure you add ardor3d-awt.jar to your app's classpath and import com.ardor3d.image.util.AWTImageLoader.
Hope that helps!
Thank you!
P.S.
I also noticed why it did not find any supported loader, I had put that call in the bottom of my init code, I was thinking it was some exotic UI linkage for AWT
- Steelplume
- newcomer
- Posts: 18
- Joined: Tue Jun 29, 2010 9:46 am
Re: Where can I get the JPG/PNGLoader under last releases?
This really threw me off the track. Had to modify all collada files to load a tga tex. Good thing I've found this post.
*Must get those collada files to load jpg/png files again*
Got two projects due this month. Will use Ardor3D for both.
*Finish one of the projects will post in forums after I got it running on an executable JAR*
Code-Eat-Sleep-Play
*Finish one of the projects will post in forums after I got it running on an executable JAR*
Code-Eat-Sleep-Play
- shinden15
- newcomer
- Posts: 28
- Joined: Thu Mar 08, 2012 4:11 am
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest