All Projects → matortheeternal → CVoxelEngine

matortheeternal / CVoxelEngine

Licence: MIT License
A C++ Voxel Engine, to succeed my Java Voxel Engine. Uses SDL, and may use OpenCL in the future.

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to CVoxelEngine

Raymarchcl
Experimental OpenCL voxel rendering/raymarching via Clojure REPL (from 2013)
Stars: ✭ 127 (+647.06%)
Mutual labels:  voxel, renderer
Voxel Cone Tracing
A real-time global illumination implementation using voxel cone tracing. Implemented in C++ and GLSL.
Stars: ✭ 555 (+3164.71%)
Mutual labels:  voxel, renderer
sdlpp
C++ wrapper for SDL2
Stars: ✭ 37 (+117.65%)
Mutual labels:  sdl
zero-graphics
Application framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web
Stars: ✭ 72 (+323.53%)
Mutual labels:  sdl
fractal-rs
Rust-based program for drawing fractal curves
Stars: ✭ 21 (+23.53%)
Mutual labels:  fractals
ArchGE
A 2D and 3D C++ Game Engine using SDL2 and OpenGL
Stars: ✭ 15 (-11.76%)
Mutual labels:  sdl
rtlamr2mqtt
Docker container to send rtlamr readings to a mqtt broker
Stars: ✭ 86 (+405.88%)
Mutual labels:  sdl
graphql-directive-sql
Unify your SQL schema and your GraphQL Schema. Use GraphQL SDL as the lingua franca to define your data requirements.
Stars: ✭ 28 (+64.71%)
Mutual labels:  sdl
Titan-IDE
Titan IDE is a 2D game engine for the Sega Dreamcast, Nintendo Wii and PC.
Stars: ✭ 32 (+88.24%)
Mutual labels:  sdl
MineCube
A Cool Voxel Editor Based on OpenGL 3.3+ !
Stars: ✭ 23 (+35.29%)
Mutual labels:  voxel
conan-sdl2
[OBSOLETE] The recipe is now in https://github.com/bincrafters/community
Stars: ✭ 13 (-23.53%)
Mutual labels:  sdl
player-ffmpeg
Up to date tutorial of ffmpeg
Stars: ✭ 17 (+0%)
Mutual labels:  sdl
php-quill-renderer
Render quill insert deltas to HTML, Markdown and GitHub flavoured Markdown
Stars: ✭ 117 (+588.24%)
Mutual labels:  renderer
faur
⚒️✨ My personal C games framework. 2D graphics, sound, inputs, states, ECS, and misc utils for data, files, math, memory, strings, time, and more. Builds for Linux, Windows, Web, and embedded devices.
Stars: ✭ 55 (+223.53%)
Mutual labels:  sdl
voxelfield
Server authoritative multiplayer shooter game with fully destructible terrain
Stars: ✭ 20 (+17.65%)
Mutual labels:  voxel
kimimaro
Skeletonize densely labeled 3D image segmentations with TEASAR.
Stars: ✭ 85 (+400%)
Mutual labels:  voxel
voxelizer
👾 Voxelization of 3D models
Stars: ✭ 32 (+88.24%)
Mutual labels:  voxel
grafx2
Mirror of GrafX2. Official repo is on gitlab.
Stars: ✭ 108 (+535.29%)
Mutual labels:  sdl
Voxel
Sandbox survival game created with Light Engine (Development halted due to other projects)
Stars: ✭ 18 (+5.88%)
Mutual labels:  voxel
sherpa 41
Simple browser engine.
Stars: ✭ 31 (+82.35%)
Mutual labels:  renderer

CVoxelEngine

A C++ Voxel Engine, to succeed my Java Voxel Engine. Uses SDL, and may use OpenCL in the future.

Images

You can see images that I've generated using this graphics engine here and here. (WARNING: Ultra-high-resolution images, don't open if you have limited bandwidth.)

Libraries

You need to install the SDL dlls in your system root directory in order to build or run my CVoxelEngine. I have provided the 64-bit SDL dlls in the lib folder of this repository, which you'd install in %SystemRoot%\SysWOW64 (e.g. C:\Windows\SysWOW64).

Building

You can build this project with Microsoft Visual Studio. Project files are provided. Check out the releases section for compiled builds.

Usage

Fractal generation

General

  • World size: This value cubed is the number of bytes your world will take up in RAM. Note, as of v0.1.1 the world is allocated as a single contiguous array, so you will only be able to get as large as the size of largest uninterrupted chunk of ram (with 6gb of RAM I can only make a 1gb - 1024^3 world)
  • Object type: box = mandelbox, bulb = mandelbulb, octflake = octahedron flake, sponge = menger sponge, cube = a gradient cube, dust = cantor dust
  • Object size: This value is the size of the object you're generating. I recommend generating an object a little smaller than your world size (give like 3-4 blocks of padding on the sides). Note that certain fractals require object sizes that fulfill certain conditions to be generated properly.

box (Mandelbox)

  • Object size: Any value
  • Minimum Iterations: I recommend a value of 4, but you can deviate from that as you see fit. (higher values will create sparser objects)
  • Maximum Iterations: I recommend a value between 16 and 50. Higher values will increase generation time, and each successive increase in the iterations adds less voxels to the object than the last.
  • Scale: A positive or negative value. I recommended it be in the range 1.0 > |v| > 3.0
  • Zoom: I recommend a value around 4.0. You can tweak this as you see fit, a value less than 4.0 will usually lead to a spherical fractal object (depending on your scale value).
  • Fallout: A good choice for this value depends on your scale. Something around f = 1.5 * v^2 is pretty good (v being scale).

bulb (Mandelbulb)

  • Object size: Any value
  • Minimum Iterations: I recommend a value of 4, but you can deviate from that as you see fit. (higher values will create sparser objects)
  • Maximum Iterations: I recommend a value between 16 and 50. Higher values will increase generation time, and each successive increase in the iterations adds less voxels to the object than the last.
  • Scale: Generally, most mandelbulbs are generated with integer scale values between 5 and 16. 8 is the most commonly used value.
  • Zoom: I recommend 2.0.
  • Fallout: I recommend 1024.

octflake

  • Object size: Relative to scale. Apply 2 * v + 1 to scale repeatedly to get higher iteration objects.
  • Scale: I recommend an odd value >= 7, so you can see the individual octahedrons and can see the middle layer.

sponge

  • Object size: A power of 3

dust

  • Object size: A power of 3

Controls

  • W A S D: For moving around (forwards/left/backwards/right)
  • I J K L: For rotating the camera (up/left/down/right)
  • Q E: For increasing or decreasing elevation (up/down)
  • Z X: For increasing or decreasing camera speed (slow/fast)
  • - +: For increasing or decresing the pixel scale of the rendered image (larger scale = shorter render times).
  • < >: For increasing or decreasing render distance (farther/closer)
  • P: To change the palette. Will have to enter a palette name in the command prompt window.
  • C: To capture a screenshot. Will have you enter a resolution (e.g. 3840x2160) if you opt to use smart capture, else will prompt you for width, height, fovH, and fovV individually.
  • 9 0: For increasing or decreasing the distance at which lighting begins to fall off (-/+).
  • 7 8: For increasing or decreasing the rate at which lighting falls off (-/+)
  • \: To generate a new random palette.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].