Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Can't get red book example texture3d.c to work on MAC.

  1. #1
    Intern Contributor
    Join Date
    Jun 2000
    Location
    Calgary, Alberta, Canada
    Posts
    72

    Can't get red book example texture3d.c to work on MAC.

    texture3d.c

    I have been banging my head trying to get this to show anything but a black on the screen. Are there any mac os x users here?

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Can't get red book example texture3d.c to work on MAC.

    Try with a 2D texture first see if everything is OK, then try 3D texture with everything else exactly the same. Make sure the coordinates sample texture data through the 3D volume where you have placed interesting non black data.

  3. #3
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    676

    Re: Can't get red book example texture3d.c to work on MAC.

    I changed
    #include <GL/glut.h>
    to
    #include <GLUT/glut.h>

    and compiled as
    gcc -Os -s -o texture3d texture3d.c -framework OpenGL -framework GLUT -lobjc ; ./texture3d

    and it shows me two color shaded squares.

    This is with a Radeon 9600 under 10.3.5. Be aware that some video hardware (namely: the Rage128, GF2MX, GF4MX) does not support 3D texturing, and there is no software fallback on OS X.

  4. #4
    Intern Contributor
    Join Date
    Jun 2000
    Location
    Calgary, Alberta, Canada
    Posts
    72

    Re: Can't get red book example texture3d.c to work on MAC.

    Thank you all.
    I was able to get the glut example to run perfectly.
    However when I integrate the code into the NeHe Lession01_OSXCocoa example I see nothing. I suspect it may be an initialization issue.

    I am leaving the NeHe example behind for now to persue the real issue which is of course 3D texture mapping.

    Thank you both.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •