Ghost-yc / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Image loaders in win64 #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The image loading libraries used by NVTT use the prebuilt libraries
provided by the gnuwin32 project. These libraries are only available for
win32, so on win64 the loaders for jpeg and png are not available. 

A simple solution would be to use stb_image as a fallback for systems where
the standard libraries are not available:

ttps://mollyrocket.com/forums/viewtopic.php?t=315

Original issue reported on code.google.com by cast...@gmail.com on 11 Feb 2008 at 7:14

GoogleCodeExporter commented 9 years ago
Why not use FreeImage instead? 

http://freeimage.sourceforge.net/features.html

It should compile on all the supported platforms (win32, win64, linux and 
macosx) and
it's really easy to use. It also has built in support for openexr so one 
doesn't have
to compile that messy library ... which is good for the floating point support 
:)

Original comment by jim.tila...@gmail.com on 11 May 2008 at 6:13

GoogleCodeExporter commented 9 years ago
That sounds like a good idea.

Original comment by cast...@gmail.com on 11 May 2008 at 7:54

GoogleCodeExporter commented 9 years ago
Add to 2.1 milestone. Code to load images using FreeImage is in progress and 
checked
in in trunk.

Original comment by cast...@gmail.com on 21 May 2008 at 7:20

GoogleCodeExporter commented 9 years ago
Hmm... I just realized that the FreeImage project does not provide win64 
binaries,
and does not contain solutions with x64 targets. So, this is not an ideal 
solution
either. I'll include freeimage for now, but it will still be available on win32 
only.

Original comment by cast...@gmail.com on 22 May 2008 at 8:45

GoogleCodeExporter commented 9 years ago
I just checked in support for FreeImage, and updated the vc8 projects. It's 
still not
used to load floating point images, though.

Original comment by cast...@gmail.com on 22 May 2008 at 9:45

GoogleCodeExporter commented 9 years ago
Issue 123 has been merged into this issue.

Original comment by cast...@gmail.com on 9 Apr 2010 at 7:07

GoogleCodeExporter commented 9 years ago
You can use DevIL. It's support x64

Original comment by KindDragon33 on 22 Jun 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Hmm... I had mixed experiences with DevIL in the past, but that was a while 
ago, maybe the problems have been fixed by now. Maybe I should give that 
another try. Thanks for the suggestion!

Original comment by cast...@gmail.com on 22 Jun 2010 at 7:19

GoogleCodeExporter commented 9 years ago
... although I think the better route would be to convince the freeimage guys 
to really support x64. We've got a local version here of freeimage compiled for 
x64 working great, so it's not that hard. I abandoned devil many years ago for 
freeimage and have never looked back. 

Original comment by jim.tila...@gmail.com on 22 Jun 2010 at 7:24

GoogleCodeExporter commented 9 years ago
Yeah, building freeimage locally should not be a big deal either. I should 
probably just do that...

Original comment by cast...@gmail.com on 22 Jun 2010 at 7:37

GoogleCodeExporter commented 9 years ago
FreeImage in x64 indeed works fine, you may have to patch OpenJPEG to remove 
some inline asm in order to build the official source release.

Original comment by nicolas....@gmail.com on 24 Jun 2010 at 6:55