Coder Social home page Coder Social logo

larry57 / winforms3d Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 1.46 MB

While learning 3D development as a hobby, I accidentally built a 3D software renderer and shamelessly named it "WinForms3D".

License: GNU Lesser General Public License v3.0

C# 100.00%
winforms 3d dotnet-framework software-rendering hobby

winforms3d's People

Contributors

larry57 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

winforms3d's Issues

Exception when checking Triangles normals checkbox

Hi,

Great 3d pipeline (from your reddit post, if i remember correctly, on r/chsarp)

i get an exception when checking Triangles normals.

As i'm trying to build my own 3d pipeline too, i must say i have ended with the same graphics implementation as you did : filling a bmp from a int array, with the same pixel format for maximum speed.

i have implemented a triangle rasterization based on tiles, commonly used with SIMD instructions : https://www.uni-obuda.hu/journal/Mileff_Nehez_Dudra_63.pdf

i recently discovered the Span and Memory classes, allowing us to make pixels access by lines (like Scanline in Delphi).
Slicing arrays saves some milliseconds, strangely...

i use a precalculation of startlines, avoiding one multiply by PutPixel call.
ie : if i have a 800x600 pixel array, i have a int[600] array containing the values 0, 800, 1600, etc...
that saves me some milliseconds.

i made an animator library, based on Tasks (triple buffering : clear, draw, copy), but i wonder if it really use multithreading (when compiling in 32 bits).

i successfully migrated my project from .Net Framework to .Net Core3.1, as WinForm designer is back in VS 2019 16.6.

i have not yet pushed my work on github, but seriously think about it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.