Ask bubletan he did depth buffering
|
|
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.


Following here, keep me updated
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. ]
Rasterizer3D is an RS class
| « Translate T2's? | Map Dump » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |