Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Bitmap texture

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Bitmap texture

    Hello,
    I'm a real Mega Newbie like my pseudo says. I just start to program in OpenGL ES and I don't succeed to use bitmap texture.
    I read some topics which deals about that and this one :"Texture mapping in Opengl ES ?" I found some precious help but I would know what is in the "bmp.h" because I think it could help me a lot. So if Gautam can help me ... please ...
    Thanks for all

  2. #2
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: Bitmap texture

    I am sure anyone can help you here. What exactly do you need help with ?

    <BLOCKQUOTE><font size="1" face="Arial, Verdana, Helvetica, sans-serif">quote:</font><HR>Originally posted by Mega Newbie:
    Hello,
    I'm a real Mega Newbie like my pseudo says. I just start to program in OpenGL ES and I don't succeed to use bitmap texture.
    I read some topics which deals about that and this one :"Texture mapping in Opengl ES ?" I found some precious help but I would know what is in the "bmp.h" because I think it could help me a lot. So if Gautam can help me ... please ...
    Thanks for all
    <HR></BLOCKQUOTE>

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Re: Bitmap texture

    My problem is to load an object in OpenGL ES. Until now I have already loaded the vertex list and the texture list but I don't find an easy way to load the bitmap which is my texture.
    My vertex and texture lists are given in a file from MAYA (.obj) so I can easyly open and read this file but I don't know how to open the image (.bmp).

  4. #4
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: Bitmap texture

    You probably need something like this:
    Code :
     

    SHLoadImageFile is for PocketPCs and Smartphones. You will need to replace this by an eqivalent call if you are working on the desktop.

    Hope that helps,
    HM

  5. #5
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Re: Bitmap texture

    I've found something on NeHe. Can we simply use "auxDIBImageLoad()" in OpenGL ES ?
    like that :
    "FILE *pFile = fopen (strFileName, "rb");
    if (!pFile)
    return;
    fclose (pFile);
    AUX_RGBImageRec *pBitmap =
    auxDIBImageLoad (strFileName);"
    ???

  6. #6
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: Bitmap texture

    No, there is no glu and glaux library in opengl es. So you will have to write your own image loading function or use a provided one.

  7. #7
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Re: Bitmap texture

    Thanks I've forgotten about glu and glaux.
    I've taken your "NeHeports.tgz" to look at how you made with the lesson 6 but I'm working with VS.NET and when I use your "bmp.h" my program crash down and I don't know why.
    It says me :

    "DAMAGE : After Normal block (#10353) at 0x05630068"
    "DAMAGE : After Normal block (#10354) at 0x056770A8"
    "GL_INVALID_VALUE--Numeric argument out of range"

    And when I debug it opens "dbgheap.c".

    Have you an idea ??

  8. #8
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Re: Bitmap texture

    I just found from where come the problem with the "DAMAGE ..." it comes from the
    "free" in the function "Destroy_Bitmap".
    But I still have my error of "GL_INVALID_VALUE ..."

  9. #9
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: Bitmap texture

    Well its not the best bmp loading code, I just wrote it quickly, but I will have a look at it and let you know.

  10. #10
    Junior Member
    Join Date
    Dec 2004
    Location
    South Korea
    Posts
    8

    Re: Bitmap texture

    I've just a question, you (Gautam) have made the MeHe tutorials in OpenGL ES but do you know if somebody works on the tutorials which are on the site of Gametutorials ?

Page 1 of 2 12 LastLast

Similar Threads

  1. Bitmap Input to eglCreateImageKHR
    By shathie in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 06-11-2012, 10:29 PM
  2. Open GL ES - Drawing bitmap
    By ychmin in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 12-16-2010, 06:42 PM

Posting Permissions

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