Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Error at rendering with textures

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    28

    Error at rendering with textures

    I'm using the code of this tutorial (see "download source" code inside of the page for the files)

    h t t p : / / w w w . videotutorialsrock . com / opengl _ tutorial / textures / video . p h p

    (link without spaces)

    I get this error in a dialog:

    Debug error!

    R6010

    - abort() has been called

    (please retry to debug the aplication)


    And in a command:

    Assertion failed: !input.fail<> || !"could not find file", file c:\documents and settings\...


    What I'm doing wrong?

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    28
    Anyone knows?

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    788
    Do you have the file it is looking for in the location it is looking for it?

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    28
    i have this bit of code:

    Image* image = loadBMP("C:\vtr.bmp");

    and the vtr.bmp in the c:\

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    788
    In C/C++ string literals "\" is used as escape character, normally used to introduce non-printing/control characters, like "\n" for newline, "\t" for tab, etc. To get a literal \ you have to write "\\", i.e. two backslash characters.
    I've looked at the original code, it just uses a relative path to the .bmp file. To make that work you may have to adjust the working directory settings for your project (it looks to me like you are using Visual Studio; it is somewhere in the project settings - sorry don't have VS at hand for more precise instructions).

  6. #6
    Junior Member Newbie
    Join Date
    Jul 2013
    Posts
    28
    Quote Originally Posted by carsten neumann View Post
    In C/C++ string literals "\" is used as escape character, normally used to introduce non-printing/control characters, like "\n" for newline, "\t" for tab, etc. To get a literal \ you have to write "\\", i.e. two backslash characters.
    I've looked at the original code, it just uses a relative path to the .bmp file. To make that work you may have to adjust the working directory settings for your project (it looks to me like you are using Visual Studio; it is somewhere in the project settings - sorry don't have VS at hand for more precise instructions).
    Just puting \\ worked fine! THANK YOU SO MUCH!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •