Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bakura

Pages: [1]
1
Graphics / Functions to flip images ?
« on: August 27, 2007, 03:48:30 pm »
Oh ! I think I remember the problem :|. Sorry Laurent, I think it's my fault.

In fact, in order to avoid "flip" the image, I just remember that when I was using Corona, I flip the image with Paint, so I didn't need to do that in the program. But now, with SFML... The texture is still flip with Paint (I have some models I always use for my tests :p) :p.

I'll try to "unflip" the image :).

2
Graphics / Functions to flip images ?
« on: August 26, 2007, 08:06:05 pm »
I don't know :/.

3
Graphics / Functions to flip images ?
« on: August 25, 2007, 07:33:29 pm »
Quote from: "Laurent"
So far, it has always worked fine. Are you sure your texture coordinates are ok ?


I just checked with Corona and a flip, and it works, so the problem is with SFML I think. Furthermore the ASE file was generated with Blender, so I don't think :/.

4
Graphics / Functions to flip images ?
« on: August 25, 2007, 06:43:07 pm »
Hi !

Before I loaded my images textures with Corona and in order to render the texture correctly, I had to flip them about the X axis (or Y axis, don't remember).

Now I load them with sfImage :

Code: [Select]
sfImage Image;

if (!Image.LoadFromFile (m_sMaterial.nomTexture))
return EXIT_FAILURE;

   glGenTextures (1, &m_uiTexture);
   glBindTexture (GL_TEXTURE_2D, m_uiTexture);

glTexParameteri (GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE);
   glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
   glTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);

glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, Image.GetWidth(), Image.GetHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, Image.GetPixelsPtr());


The texture can be seen, but it's not well drawn, like those I loaded with corona without the flip. So, is there any flip functions in order to draw that ? Or it can be another problem ?

Pages: [1]