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

Thread: Texture mapping by hand

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Seventh district of hell, third door on the left
    Posts
    7

    Texture mapping by hand

    I have recentley written some custom Texture Mapping code wich I would like to use instead of OpenGL's software texture mapper. I wrote the code as a test program for DOS in an interpretted language, now, I don't have a clue on whether or not it is fast code. I knew the interpretted language was slow, so I only looked at the results and not the speed. I tried to make the algorithm extremely fast though.

    To map a texture onto a quad it does 6 substractions and follows 5 nested For loops, and that's all the code there is. Now my question is, is this good code or is it bad code?

    Remember that I haven't found a way yet to incorporate this code into OpenGL so I can't test it out.

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    79

    Re: Texture mapping by hand

    If you study the OpenGL pipeline, you'll find that texture application is done as fragment operation. The mapping phase occurs during rasterization.
    These stages can't be bypassed.

    BTW, if you're really interested in texture mapping algorithms, you could take Mesa3D and modify the source code.
    --
    Paolo M.

Posting Permissions

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