Razor Code
Rambling about code since quite recently

Topics

User Functions





    Don't have an account yet? Sign up as a New User
    Lost your password?

Events

There are no upcoming events

Older Stories

Sunday 14-Sep

  • ACM ICPC 2008 (0)

  • Monday 11-Aug

  • NZ Programming Comp (0)

  • Sunday 27-Jul

  • Blast from the past (0)

  • Monday 21-Jul

  • Timetable generator again (0)

  • Tuesday 08-Jul

  • Hosting (2)

  • Saturday 05-Apr

  • Sparse Volume (0)

  • Friday 28-Mar

  • Carmack (0)

  • Tuesday 04-Mar

  • Back to Uni (0)
  • Dell Kill Switch Direct (0)

  • Monday 18-Feb

  • Lappy (0)

  •  Parallax    
     Author: 
     Dated:  Monday, August 15 2005 @ 05:50 PM NZST
     Viewed:  208 times  
    General NewsWell, I considered explaining a. what I've been doing this whole time, b. why I'm not working on my 4e4 entry, and c. what I am going to be doing. But I can't afford to be sued when people die of boredom, so I figured I'd talk about something else.

    I downloaded the opengl shader designer and made my first glsl shader. It just happens to be a parallax mapping shader.

    image

    As you can see, it works quite well. Gets artifacts on extreme angles, but hey, don't they all? My particular implementation traces through the height map, currently in 10 steps. Then, to avoid obvious stepping, it guesses the intersection point based on the height differences between the ray and the map before and after intersection. Lets just not talk about performance. Although some cards are probably an order of magnitude or more faster than mine (fx 5200) by now, they might be able to run it ok.



    Trackback

    Trackback URL for this entry: http://razorcode.net/trackback.php/2005081423504030

    No trackback comments for this entry.
    Parallax | 0 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.