det.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon Server des Unterhaltungsfernsehen Ehrenfeld zum dezentralen Diskurs.

Administered by:

Server stats:

1.7K
active users

#rasterizer

0 posts0 participants0 posts today
Mai :v_trans:<p>Lol, I knew that debug vs release builds have some performance impact but never thought THAT much. So aparently my rust rasterizer can render 250 moving triangles at ~7 FPS in debug builts but a whoping 40 FPS (!!) in release builds. That's just: WTF? x3</p><p><a href="https://soc.saiyajin.space/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://soc.saiyajin.space/tags/graphicsprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>graphicsprogramming</span></a> <a href="https://soc.saiyajin.space/tags/rasterizer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rasterizer</span></a> <a href="https://soc.saiyajin.space/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://soc.saiyajin.space/tags/softwaredevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>softwaredevelopment</span></a></p>
Mai :v_trans:<p>Currently working on a little <a href="https://soc.saiyajin.space/tags/rasterizer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rasterizer</span></a> after watching the <a href="https://www.youtube.com/watch?v=yyJ-hdISgnw" rel="nofollow noopener" target="_blank">fantastic video</a> from Sebastian Lague on yt.</p><p>Decided to write mine in <a href="https://soc.saiyajin.space/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> with some other techniques than the ones in the video, like using Barycentric Coordinates and calculating an AABB of an tri before iterating over the pixels. The video below showcases the rasterizer trying to process 250 random triangles. (Windowing and the FPS counter are done with <a href="https://soc.saiyajin.space/tags/raylib" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>raylib</span></a>)</p><p>Some artifacts here and there due to Z-ordering issues, but I hope to fix this soon.</p><p>End goal is to write it in such a way that I even might someday can use the rasterizer inside an custom rust <a href="https://soc.saiyajin.space/tags/kernel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kernel</span></a> / <a href="https://soc.saiyajin.space/tags/os" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>os</span></a> for basic 3d graphics, ofc to run <br><a href="https://soc.saiyajin.space/tags/doom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>doom</span></a> on it!!</p><p><a href="https://soc.saiyajin.space/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://soc.saiyajin.space/tags/graphics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>graphics</span></a> <a href="https://soc.saiyajin.space/tags/graphicsprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>graphicsprogramming</span></a> <a href="https://soc.saiyajin.space/tags/development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>development</span></a> <a href="https://soc.saiyajin.space/tags/software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software</span></a> <a href="https://soc.saiyajin.space/tags/softwaredevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>softwaredevelopment</span></a></p>
Miro<p>The next thing, we're implementing: a rasterizer!</p><p>The first version draws the wireframe of a cube built out of triangles to the screen.</p><p>Edit: now it bothers me it's not a clean loop. Grr... 😡</p><p><a href="https://mastodon.green/tags/computerGraphics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computerGraphics</span></a> <a href="https://mastodon.green/tags/rasterizer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rasterizer</span></a> <a href="https://mastodon.green/tags/wireframe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wireframe</span></a> <a href="https://mastodon.green/tags/studentLife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>studentLife</span></a> <a href="https://mastodon.green/tags/computerScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computerScience</span></a></p>