Code Monkey home page Code Monkey logo

ray-casting-test's Introduction

Backward ray tracing and forward ray tracing have been implemented on this code. The backward ray tracing part is a rendering engine with many primitive types for lights and objects that can be used. The first part explain a little bit the capabilities of the render engine and after that the forward ray tracing part is presented

Render code written in F# *

It can manage:
- Extended lights added as a circular light โ€“ directionality added.
- Works with a Sphere type and meshes .obj type simplified
- Multiple reflexions and transmissions included
- Fresnel reflexion term can be used
- Bounding Box implemented to reduce computing time
- Space partitioning implement, BBox of elements in a partition optimized/Redefined. (Test script not good to partitionate)
- Added in the space partitioning technniques an Octree structure (test with an scene of 50000 triangles)
- Parallel implementation throught async F# on BBox and on pixel initialization. Up to now on the initialization only creates 4 procces and cannot be modified. Great Speed-up obtained.

Octree Test with 50k triangles:
Testlist
Currently this scene is on program.fs
The computing time was: Real: 02:31:33.620, CPU: 07:48:39.953

Previous example with an extended light illuminating the scene:
Testlist
Script: Test_PreProcessorGrid.fsx โ€“ Just comment that this example is not really faster with the space partitioning due to the bounding of the world
https://pbs.twimg.com/media/CPgkkPCXAAARioP.png
Script: Test_AllScene_ExtendedSource.fsx

Forward Ray tracing implemented in the folder with the same name
The forward ray tracing module in mainly written to simulate wave effects of light. With this module many things can be simulated:
- Interferometer configuration (there are some Michelson interferometers scripts)
- Gaussian profile of the beams diverging with an specified radius of curvature.
- Also incoherent transmision and reflection of light are in included on the code.

Testlist Testlist


Old

Image obtained with Test_gourd.fsx:
Testlist
https://pbs.twimg.com/media/CN5hUM7WIAA2IVe.png (wrong image)

More samples images:
Before fresnel reflection was included:
Textist
Similar now:
Textlist

ray-casting-test's People

Contributors

josesoyo avatar

Stargazers

 avatar

Watchers

 avatar  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.