Results 1 to 2 of 2

Thread: Texture mapping by hand

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

    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
    Member Contributor
    Join Date
    Feb 2000

    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.

Similar Threads

  1. Making hour hand and minute hand rotate(Clock)
    By nadeera in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-16-2017, 01:30 AM
  2. Applying a texture to a sphere created by hand
    By exoide in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-08-2011, 03:16 PM
  3. Texture mapping, upper left hand origin?
    By allrussiantome in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-23-2010, 04:37 AM
  4. Replies: 3
    Last Post: 03-26-2004, 05:20 AM
  5. Replies: 3
    Last Post: 09-16-2001, 09:59 PM

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