Results 1 to 6 of 6

Thread: How do you convert ICO into BMP for texturemapping on a 3D object?

  1. #1
    Member Newbie
    Join Date
    Jan 2002
    Location
    sacramento, CA
    Posts
    38

    How do you convert ICO into BMP for texturemapping on a 3D object?

    I am looking for tutorial or example how to convert ICO into BMP format in memory only without saving it in disk and use it for texture mapping on a 3d square in OpenGL environment.

    If you know please REPLY!!!

    Waldoo

  2. #2
    Member Contributor
    Join Date
    Feb 2001
    Posts
    89

    Re: How do you convert ICO into BMP for texturemapping on a 3D object?

    Why would you want to use an icon for a texture, and why would you ask to convert it to a BMP without saving it to disk? There's no point in doing so when you could just load the icon as a texture... :P But I don't know how Windows icon files are formatted, so I can't exactly help ya.
    -pATCheS

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: How do you convert ICO into BMP for texturemapping on a 3D object?

    In Windows just use LoadImage to load the icon, then use GetIconInfo to get the bitmap handle of the icon. Copy the bitmap bits into some allocated memory, then use the icon image in memory to create a suitable texture, and upload the texture as usual.

  4. #4
    Member Newbie
    Join Date
    Jan 2002
    Location
    sacramento, CA
    Posts
    38

    Re: How do you convert ICO into BMP for texturemapping on a 3D object?

    Is there example where I could download for this?

    Waldoo

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: How do you convert ICO into BMP for texturemapping on a 3D object?

    I emailed you an example I put together.

  6. #6
    Member Newbie
    Join Date
    Jan 2002
    Location
    sacramento, CA
    Posts
    38

    Re: How do you convert ICO into BMP for texturemapping on a 3D object?

    Ya I got it Thank you We need more nice people like you

Similar Threads

  1. Convert normalmap to object space
    By _NoName_ in forum OpenGL: General
    Replies: 0
    Last Post: 07-27-2016, 12:26 PM
  2. Convert a .3ds object to an OpenGL display list
    By tiregarfio in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-15-2007, 11:32 AM
  3. TextureMapping Confusion
    By fabianspring in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-20-2002, 02:52 PM
  4. 1d texturemapping
    By saline in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-26-2001, 11:18 AM
  5. heightfield + texturemapping
    By iLLuminatus in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-16-2001, 07:22 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
  •  
Proudly hosted by Digital Ocean