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 8 of 8

Thread: newell's teapot

  1. #1
    Guest

    newell's teapot

    Hi,
    i'm trying to write a ray tracer in openGL, and i was wondering if anyone here can post a link to a triangle data file for newell's teapot.

    thanks in advance.
    Dan

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: newell's teapot

    So you want to program a raytracer in opengl? How is that done?
    - Michael Steinberg

  3. #3
    Guest

    Re: newell's teapot

    well, it doesn't really have to be in opengl, but i needed a way to output images pixel by pixel onto the screen. opengl's prolly the best and easiest way to do so, with glDrawPixel.

    as for the ray tracing, just plug in the equations to intersect spheres and triangles, apply the lighting formulae, and you got yourself a ray traced image.

    i just need a model to ray trace, but i'm dont know much on how 3d model formats are stored, so i was hoping for a raw data file of surface triangle vertices...

    otherwise, if anyone can post links to how to parse popular 3d model file formats, i'd appreciate that too.

    Dan

  4. #4
    Intern Contributor
    Join Date
    Dec 2000
    Location
    Redmond, WA
    Posts
    89

    Re: newell's teapot

    Have a look at Steve Baker's Teapot FAQ

    -Jason

  5. #5
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: newell's teapot

    After all, ATI has a contributor here!!! Cool.

    Hi Jason... ;-)
    - Michael Steinberg

  6. #6
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: newell's teapot

    The Bezier patches data is freely available in the glut_teapot.c source code of the GLUT library implementation.

  7. #7
    Intern Contributor
    Join Date
    Dec 2000
    Location
    Redmond, WA
    Posts
    89

    Re: newell's teapot

    >After all, ATI has a contributor here!!! Cool.

    I'm not the only one. Dave Gosselin and Dan Ginsburg are here as well.

    -Jason

  8. #8
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: newell's teapot

    And somebody on the advanced board stated ati would have bad service.
    - Michael Steinberg

Posting Permissions

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