Thread: [REF] Depth Buffering (or) Fog

Results 1 to 9 of 9
  1. #1 [REF] Depth Buffering (or) Fog 
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    I am looking to add the "foggy" rendering of objects far away in distance. I have no clue on where even to start, I've looked into it endless times and now I finally give up and as for help.
    If you do not wish to release it to everyone but still want to help me please send me a pm
    Thanks in advance ily

    (edit)
    The for you can see in higher revision clients. Can I rip it from them may be? Please tell me if its possible and not too hard.

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    Ask bubletan he did depth buffering

    Reply With Quote  
     

  3. #3  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    Already tried contacting him, no response

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Sep 2013
    Posts
    479
    Thanks given
    154
    Thanks received
    102
    Rep Power
    0
    Following here, keep me updated
    Reply With Quote  
     

  5. #5  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    Bump

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Registered Member Makaveli V2's Avatar
    Join Date
    Feb 2014
    Posts
    140
    Thanks given
    18
    Thanks received
    101
    Rep Power
    9
    Use 3D Pythagoras to calculate the distance of each pixel as it's rendered in Rasterizer3D (or whatever idiots call that nowadays, look for the draw triangle method in Model, that references it).
    Add a depth buffer to the drawingarea class (just an int array the same size as the color buffer) and make it so when Rasterizer3D draws a pixel, it also draws the distance to that pixel. After that, simply apply fog to the further parts of the image pixel-by-pixel before rendering.
    Reply With Quote  
     

  7. #7  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    Quote Originally Posted by Patrick Star View Post
    Use 3D Pythagoras to calculate the distance of each pixel as it's rendered in Rasterizer3D (or whatever idiots call that nowadays, look for the draw triangle method in Model, that references it).
    Add a depth buffer to the drawingarea class (just an int array the same size as the color buffer) and make it so when Rasterizer3D draws a pixel, it also draws the distance to that pixel. After that, simply apply fog to the further parts of the image pixel-by-pixel before rendering.
    Thank you, I have read through what you posted and I also tried to do some researching on the matter before starting, but I can't seem to go anywhere, I can't find where the reference is in model nor can I find anything that helps me when searching the web more than
    [Only registered and activated users can see links. ]

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member Makaveli V2's Avatar
    Join Date
    Feb 2014
    Posts
    140
    Thanks given
    18
    Thanks received
    101
    Rep Power
    9
    Rasterizer3D is an RS class
    Reply With Quote  
     

  9. #9  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    Still no luck, thanks for trying to help though

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣

    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Depth Buffering
    By Bubletan in forum Show-off
    Replies: 35
    Last Post: 03-21-2014, 04:19 AM
  2. Replies: 3
    Last Post: 10-23-2013, 11:20 PM
  3. Replies: 0
    Last Post: 05-12-2012, 08:16 PM
  4. Why doesn't Jagex use Bitwise OR for their buffers?
    By Killer 99 in forum RS2 Client
    Replies: 38
    Last Post: 01-23-2012, 11:15 AM
  5. Replies: 9
    Last Post: 04-03-2007, 08:52 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •