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 - pia32

Pages: [1]
1
Graphics / Solved
« on: December 18, 2010, 07:28:39 pm »
Fixed it. The problem was that the texture was too big (2048*1024). If I scaled it down to 1024*768 it worked.

However, I found a more interesting workaround. (Using MinGW) The rev that didnt work was a win32 app (starting with WinMain). When I changed it to a regular native app (starting from int main), it loaded the textures at 1280*1024. In addition, it increased the frame rate from 3 to 60.

2
Graphics / LoadFromFile Error
« on: December 16, 2010, 12:37:33 am »
I have an installer for my program, which works on 4 other computers. Additionally, I manually checked that the file was there. I successfully loaded another image file in the same directory that loads using the about the same code. Are there any other reasons why the LoadFromFile method would fail other than 'file not found'?


EDIT: I may have found a possible culprit. I think some computers have a maximum native image size. Im using an old (2004) computer, with Intel (915GM/915GMS,910GML) onboard graphics. My image is 1280*1024. Could this be a problem?

3
Graphics / LoadFromFile Error
« on: December 15, 2010, 02:52:02 am »
Hi,
I'm getting an error with the following code. It works on the computer I'm developing on, but it fails when I run it on a different computer. Is there some documentation about this somewhere where I can get more detailed information on why LoadFromFile isn't working, or the possible reasons why it would fail?

Code: [Select]
   if(!BackgoundImage.LoadFromFile(path))
    {
        MessageBox(NULL, path, "Error loading backgroundFax.jpg", MB_OK);
        return false;
    }

Pages: [1]
anything