Results 1 to 5 of 5

Thread: Draw Bitmaps

  1. #1
    Guest

    Draw Bitmaps

    I am currently writing a Machine Vision App for tracking people. I am thinking of using OpenGL for visualisation and GLUT to handle the windowing.

    My question is is it easy to draw a bitmap image into a GLUT window? how do I do it?

    Thanks tim

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    29

    Re: Draw Bitmaps

    well, usually glDrawPixels() should work.
    or upload your bitmap as texture and draw a quad right over your screen
    you could use a 512x512 texture, only use 512x384 res (because that's our magical 0.75 aspect ratio) and then opengl scales it to your respective resolution (if you use different ones)
    that's how I did it in fullscreen, but I'd wodner if it won't work in a glut window.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: Draw Bitmaps

    If you would like, I could give you code in GLUT that loads a BMP file and textures it over a quad, done in a glut window. Just email me if you would like the code.
    :: Sleep is a poor substitute for caffeine ::

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: Draw Bitmaps

    Hi,

    On my site, I've a little exemple who display a BMP like a splash screen.

    The function can be imported for GLUT with no problems.
    http://ibelgique.ifrance.com/Slug-Production

    "Download" section

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: Draw Bitmaps

    Hi, just seen this, could you have a look at my Q on texture quality...

    gav

Similar Threads

  1. bitmaps
    By chign in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-04-2010, 05:11 AM
  2. Bitmaps
    By Azazel in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-15-2004, 05:31 AM
  3. bitmaps
    By Bra'Tac in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-03-2001, 07:59 AM
  4. Bitmaps!!! please help!!
    By roberts in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-07-2001, 02:53 PM
  5. BItmaps
    By Judith Mortimer in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-28-2000, 07:02 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