Results 1 to 10 of 19

Thread: 2D perspective correct texturing ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    Ah my apolgies, it's been a long time since I worked in immediate GL mode. The way this would be done now is by using a projection sampler in a shader. However, I believe that immediate GL had a nice friendly trick that does some magic for you. Add the following somewhere in your initialization code, before you call GL_Begin() :

    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);

    Hopefully my memory has not failed me and this should produce your desired result.
    Last edited by phibermon; 06-03-2015 at 09:26 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

Bookmarks

Posting Permissions

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