Results 1 to 3 of 3

Thread: Fast rendering of images

  1. #1
    Guest

    Fast rendering of images

    Hi guys,

    - Aim: Here is what I am trying to do: imaging you have a print in your hands, so you can move it in all directions, rotate it, etc ... Well, that is exactly what I am trying to do, i.e. read an image (.jpg, .tif or whatever),display it, and allow the user to change the viewing angle.

    - Problem: The way I am doing this currently is, for each pixel, to specify its color via glColor3f and draw it thanks to a call to glRectf. Prior to this, I changed the modelview matrix to reflect the viewing angle chosen by the user. It does achieve my aim, i.e. viewing the image under all sorts of angles, but it can become very slow as the size of the image increases. So my question would be, is there a faster/more efficient way to "render" an image in this way? Can anyone provide me some references to this specific topic?

    Many thanks

    Alex

    PS: that might be a stupid question, but can texture help in that particular case?

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Fast rendering of images

    Try drawing a textured quad.

  3. #3
    Guest

    Re: Fast rendering of images

    thanks, I've finally read chapter 9 of the red book, which I should have done long ago!

Similar Threads

  1. Does Fast Volume Rendering have the third way?
    By LLM in forum OpenGL: GLSL
    Replies: 1
    Last Post: 06-05-2006, 01:56 AM
  2. fast text rendering -- how??
    By pronvit in forum OpenGL: Advanced Coding
    Replies: 16
    Last Post: 07-28-2005, 06:59 AM
  3. Fast Rendering
    By Balu in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 11-26-2003, 11:31 PM
  4. Not rendering very fast....
    By Gestalt Halcyon in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-12-2002, 12:44 PM
  5. Fast rendering 2D layers.
    By andywarfield in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-25-2001, 05:41 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