Jump to content

  • Log In with Google      Sign In   
  • Create Account


Snouty

Member Since 17 Mar 2012
Offline Last Active Mar 31 2012 11:27 AM
-----

Posts I've Made

In Topic: Problems with loading a jpg-image...

23 March 2012 - 09:35 AM

Are you using the binary version of DevIL? You could try to compile the source code, link it to your project and debug it, so you can see what is happening. Or, simpler, you could just get the error code out of DevIL and see what does it mean. DevIL will store error codes for you, so immediately after your code encounters an issue, try finding out what error code you get.


At the moment, I use the SOIL-Library. I tried it also with DevIL but then I had the problem, that all of the textures are completely black.

In Topic: Problems with loading a jpg-image...

23 March 2012 - 09:31 AM

Hey,

the problem is, that I have to use these images. I am working on a project for my computer graphics course and the images are given from the professor. i uploaded the tex2.jpg to http://s14.directupl...8q8p6v5_jpg.htm. The curious thing is, that nobody else has such problems with the images - thus I thought it might be a problem with my pc oder something like this.


Edit:
The crash is caused by
else
  {
   /* user want OpenGL to do all the work! */
   glTexImage2D(
	opengl_texture_target, 0,
	internal_texture_format, width, height, 0,
	original_texture_format, GL_UNSIGNED_BYTE, img );
   check_for_GL_errors( "glTexImage2D" );
   /*printf( "OpenGL DXT compressor\n" ); */
  }

within the SOIL-library.

Maybe some trouble with an missing alpha channel ? Where exactly does it crash (=>debugger) ? Try this in gimp: save the file as tga, reload it, save it as jpg . What happens when using some other other format (png) ?


Done. I get the same error. Posted Image

In Topic: DevIL - Problems with loading a jpg-image

23 March 2012 - 03:19 AM

Hey guys,


sorry my laptop broke down last week after I posted my question. -.- Thanks a lot for your answers. I tried the first one and it worked directly :)
I have also another solution: I tried my "old" code together with visual studion 2010 premium and visual studio 2008 express...and it works. So, I am not sure, but for me it seems like there is a bug with respect to visual studio 2010 professional.

So again...thank you :)

PARTNERS