Giter Site home page Giter Site logo

graphthd / volumetric_neural_cloud_rendering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kieranbow/volumetric_neural_cloud_rendering

0.0 0.0 0.0 99.75 MB

A repository for my dissertation on Volumetric Neural Cloud Rendering in Unity

C++ 62.20% Python 0.88% C 23.20% C# 6.46% GLSL 1.23% HLSL 1.66% ShaderLab 4.38%

volumetric_neural_cloud_rendering's Introduction

Volumetric_Neural_Cloud_Rendering

A repository for my dissertation on Volumetric Neural Cloud Rendering in Unity

Introduction

This project looks into the usage of a neural network that can produce and render volumetric densities similar to clouds using shaders developed in Unity. A pipeline is created which produces the volumetric data and trains a neural network on. The weights and biases from this network are then used to render the volumetric data in Unity.

Project Features

This repositiry contains 4 different projects that make up a pipeline for rendering a neural network in a shader. These projects are:

This project which is written in C++ generates a random set of points from within a mesh. These points are saved inside a CSV file which is then exported to the Python project. Loading the mesh is done using Assimp.

This project contains a single python file that uses PyTorch to create and train a neural network on the dataset from PointsInsideUnitCube. The weights and biases from the network are outputted into a text file which is then used in Unity.

In order to check if what the neural network has learned is working. This project which is written in C++, replicate the shader that will be used for rendering which can then be debugged to see if the values are correct.

This is the heart of the whole project. It's a Unity project which has the neural network shader and the volumetric shader which are used for comparison in a report. The volumetric shader tries to replicate common volumetric cloud implimentation seen both online and in video games. The neural network shader replicates the architecture of the network and uses the weigths and biases to try and render volumetric densities.

Instructions for using projects

  • The PointsInsideUnitCube project and ShaderSanityCheck uses Visual Studio 2019.
  • The Volumetric_Rendering project uses Unity 2021.1.21f1.
  • The Neural Network project was developed using Anaconda and Spyder so it's recommended to use the latest version of those software.

volumetric_neural_cloud_rendering's People

Contributors

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