Code Monkey home page Code Monkey logo

monte-carlo's Introduction

monte-carlo

Learn about Monte Carlo methods for radiation and conduction.

stack

  • rust language
  • wgpu binding library
  • wgsl shader language

running (you'll need decent GPU that supports float textures - tested on Nvidia RTX 2070 Super)

  • Install rust https://www.rust-lang.org/tools/install
  • cargo run
  • A fixed 1280x1024 screen will be opened
  • Esc to quit
  • Left mouse click and drag to orbit (framerate probably will be quite low)
  • Right mouse click and drag to change slice plane
  • Mouse wheel to zoom

configuration

https://github.com/thomas-gale/monte-carlo/blob/main/src/bvh_raytracing/constants.rs

plan

intro

mesh

  • Support loading of .obj / mesh files and parse into the bvh hittables with other primitives
  • Signed distance and ray intersection shader functions for triangles
  • Laplace walk on spheres
  • Poisson walk on spheres

code structure

  • Refactor from direct wgpu impl to bevy and re-structure the code into the ECS pattern.

pictures

ray_tracing_in_one_weekend final scene bvh preview in final scene volume sphere in cornel box wos laplace sample plane wos laplace sample plane bunny mesh

monte-carlo's People

Contributors

thomas-gale avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.