c-ray | c-ray is a small , simple path tracer written in C | Game Engine library
kandi X-RAY | c-ray Summary
kandi X-RAY | c-ray Summary
c-ray is a small, simple path tracer written in C
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of c-ray
c-ray Key Features
c-ray Examples and Code Snippets
Community Discussions
Trending Discussions on c-ray
QUESTION
Given the following vhost:
...ANSWER
Answered 2017-May-21 at 17:02According to the manual, in order to improve security, Apache will reject all URLs containing an encoded slash %2F
with a 404.
In order to disable this behaviour, you need to set AllowEncodedSlashes to a value of On
or NoDecode
, preferably NoDecode
.
This directive needs to be put either globally in the server config or in the virtual host definition and it will not work in .htaccess
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install c-ray
Install SDL2 (See installing SDL below)
Open the .xcodeproj file in Xcode
Edit scheme by clicking C-Ray in top left, make sure 'Use custom working directory' is ticked and set it to the root directory of this project.
Go into the Arguments tab, and add by clicking +. Type in ./input/scene.json, then click close
Build&Run with CMD+R
(Optional) Install SDL2 (See installing SDL below)
Run cmake ., or optionally cmake . -DNO_SDL2=True to disable SDL2.
Run make to build the project
Run binary: ./bin/c-ray ./input/scene.json (Making sure the working dir is the root directory). You can also pipe files into C-ray and it will read from there. This is useful for scripts that invoke C-ray. Example: cat input/scene.json | ./bin/c-ray Note: Reading the json from stdin assumes that the asset path is ./
Install Build Tools for Visual Studio
Optional: Download SDL2 Development libaries from here and extract: https://www.libsdl.org/download-2.0.php (https://www.libsdl.org/release/SDL2-devel-2.0.8-VC.zip)
Open a Developer Command Prompt for VS 2019, navigate to where you cloned c-ray and set path to SDL2DIR (where you extracted the files to, should have a few folders like 'include' and 'lib'): set SDL2DIR=E:\sdl2\SDL2-devel-2.0.8-VC\SDL2-2.0.8
Run cmake: cmake -G "Visual Studio 16 2019" .
(Optional) Copy your SDL2.dll into bin\Release\ and bin\Debug\
Build the generated solution: msbuild c-ray.sln /p:Configuration=Release
Run: bin\Release\c-ray.exe input\scene.json or type input\scene.json | bin\Release\c-ray.exe
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page