Results 1 to 5 of 5

Thread: Overlay Graphics

  1. #1
    Junior Member
    Join Date
    May 2005
    Location
    Bangalore
    Posts
    2

    Overlay Graphics

    Has any one has any idea about overlaying 2D graphics over 3D world ? Please gimme what ever view you have. Very new to this. Donno how to proceed.
    Regards,
    Jd

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

    Re: Overlay Graphics

    Depends on the platform & OpenGL ES implementation (and the type of overlay you are looking for). For example, with Vincent you can easily combine gl... calls with GDI calls, if you only flush and swap correctly (example is the car demo, which uses GDI to draw the frame rate).

    Another possibility would be to render the 2D content to a bitmap that you would then render as texture using the 3D API.

    Or you explicitly render the 3D content to a pixmap surface that you would then include using a 2D blt.

    - HM

  3. #3
    Junior Member
    Join Date
    May 2005
    Location
    Bangalore
    Posts
    2

    Re: Overlay Graphics

    This is for mobile device applications where in u need to draw some message boxes or menus on the 3d world.hardware is powervr mbx. Is there any hardware support to copy the 2d buffer on to the 3d buffer?

  4. #4
    Junior Member
    Join Date
    Mar 2005
    Location
    UK
    Posts
    24

    Re: Overlay Graphics

    You should not mix 2D/GDI operations with 3D - this will hurt performance.

    All good 3D apps which use 2D elements (i.e. the 'HUD', like your health and ammo counters etc in a game) do it using textured polygons - so it is rendered by the 3D hardware.

  5. #5
    Junior Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    24

    Re: Overlay Graphics

    This means that ideally you generate 3D menus and message boxes... rather than use GDI calls. It's more work but it will look better and run at high performance.

    K-

Similar Threads

  1. OpenML Video Capture and OpenGL Graphics Overlay
    By Sid in forum OpenML Coding & Technical Issues
    Replies: 0
    Last Post: 09-20-2006, 02:20 PM
  2. overlay
    By nils in forum OpenML Coding & Technical Issues
    Replies: 0
    Last Post: 10-07-2005, 08:04 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
  •