Giter Site home page Giter Site logo

chenxizhou0619 / mitsuba Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mc-k1ng/mitsuba

0.0 0.0 0.0 121.71 MB

Personal Compilable Version of the Mitsuba Renderer

License: GNU General Public License v3.0

Shell 0.12% C++ 91.29% Python 0.79% C 6.66% Objective-C 0.08% PowerShell 0.01% XSLT 0.17% CSS 0.01% Objective-C++ 0.38% Makefile 0.01% CMake 0.17% GLSL 0.32% Batchfile 0.01%

mitsuba's Introduction

About

Fork from https://github.com/MC-K1nG/mitsuba

Note

Only Linux system is currently supported. On Windows or Mac OS, you may use the WSL subsystem or Docker container. In general, running within a Docker container is much more recommended. WSL can have some compatability issues.

We have tested on Ubuntu 20.04 and 22.04. Other distributions equivalently new may also work well (e.g. Kali Linux 2022). However, older versions of Linux (e.g. Ubuntu 18.04) will take you lots of time to modify the dependencies and even CMake scripts.

How to Compile

# Install utilities
sudo apt install git cmake ninja-build clang gdb

# Install dependencies
sudo apt install libxerces-c-dev libboost-all-dev libeigen3-dev libomp-dev libopengl-dev libglewmx-dev libxxf86vm-dev libpng-dev libjpeg-dev libopenexr-dev libcollada-dom-dev libfftw3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5xmlpatterns5-dev python3 libpython3-all-dev

# Clone the repository
git clone https://github.com/yysun997/mitsuba.git

# Configure and compile (Configure warning should not happen, but compile warning is fine.)
mkdir ./mitsuba/build/release
cd ./mitsuba/build/release
cmake -G Ninja -DCMAKE_CXX_COMPILER=clang -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release ../..
ninja

# Take your python version
ls

# The command-line
# ./mitsuba -h

# The GUI
# ./mtsgui

# The python bindings
# python3
# >>> import sys
# >>> sys.path.insert(0, "./python${Python_VERSION}")
# >>> import mitsuba
# >>> from mitsuba.core import *
# >>> vec = Vector(1, 2, 3)
# >>> normalize(vec)

# See official documentation for more details
# https://www.mitsuba-renderer.org/releases/current/documentation.pdf

mitsuba's People

Contributors

amyspark avatar beltegeuse avatar cdonovick avatar chaosink avatar chenxizhou0619 avatar diiigle avatar dvicini avatar edgarv avatar holzschu avatar jonasdeyson avatar mc-k1ng avatar merlinnd avatar qnzhou avatar rgirish28 avatar tofeg avatar wjakob 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.