Results 1 to 3 of 3

Thread: setting grayscale bitmaps to 3D

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2000
    Location
    germany
    Posts
    25

    setting grayscale bitmaps to 3D

    I have a 16 bit grayscale bitmap (some scientific data) and want to set the pixel intensity to the third dimension in an OpenGL buffer with a color lookup. But this should not be just a collection of 3d-pixels rather than a smooth 'landscape'. Any idea how to connect the pixels?

    Thank You

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Nice, France
    Posts
    201

    Re: setting grayscale bitmaps to 3D

    I would think you could use quad strips and scan two adjacent lines of your bitamp at the same time to draw the strip. You could also preprocess your data to create vertex arrays in order to speed-up the drawing.

  3. #3
    Member Contributor
    Join Date
    Jul 2000
    Location
    Braga, Portugal
    Posts
    97

    Re: setting grayscale bitmaps to 3D

    Check out my tutorial on terrains. It shows how to get a height map from an image (TGA).
    http://www.fatech.com/tech/opengl/terrain

    Antonio
    Antonio Ramires Fernandes www.lighthouse3d.com

Similar Threads

  1. Grayscale in textures
    By Gabba123XXL in forum OpenGL: Linux
    Replies: 4
    Last Post: 12-20-2011, 12:54 PM
  2. Rendering in grayscale
    By Laz in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-23-2003, 09:07 PM
  3. 16-bit grayscale on a 3D card?
    By Andru in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-26-2002, 10:37 AM
  4. RGB to GRAYSCALE
    By rangers99 in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-06-2002, 09:35 PM
  5. Grayscale rendering
    By JIPO in forum OpenGL: Advanced Coding
    Replies: 20
    Last Post: 11-24-2000, 08:55 AM

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