-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
70 lines (54 loc) · 1.99 KB
/
main.cpp
File metadata and controls
70 lines (54 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "RenderThread.hpp"
#include <stdexcept>
#include <iostream>
// TODO:
// - LOD
// https://en.wikipedia.org/wiki/Interval_arithmetic <<
// - Audio (z.B. Console keyboard)
// - - Minecraft renderer / chunk system
// - Text
// - ECS
// - OpenGL Raytracer
// - Atmospheric Scattering
// - GUI
// - Clouds
// - Particle System (Compute Shader + Instanced Renderer)
// - Deferred Renderer
// - PBR
// - Image Based Lighting
// - Delete all Copyconstructors and CopyAssignmentOperators
// - use Shader Storage Buffer Objects for Lights etc.
// - use equirectangular HDRs for skymap + IBL
// - Better Block Picking:
// https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.42.3443&rep=rep1&type=pdf
// General Rendering:
/*
"Nvidia GPU gems"
https://on-demand.gputechconf.com/gtc/2013/presentations/S3032-Advanced-Scenegraph-Rendering-Pipeline.pdf
https://on-demand.gputechconf.com/gtc/2014/presentations/S4379-opengl-44-scene-rendering-techniques.pdf
https://realtimecollisiondetection.net/blog/?p=91
https://i.stack.imgur.com/JgrSc.jpg
https://learnopengl.com/Advanced-Lighting/Deferred-Shading
https://learnopengl.com/PBR/IBL/Specular-IBL
quixels megascans (real scans)
*/
/*
* ################ URGENT:
* - Implement Block Types
* - Maybe try deferred rendering
*/
// https://lehrerweb.at/typo3conf/materials.php?show=sek/inf/iktfit/tabelle/zahlen.htm
// Durchmesser Sonnensystem: 9.09 milliarde km = 9.090.000.000 km
// = 9.090.000.000.000 m // ~ 9 billionen Meter
// 1 Lichtjahr: ~ 9.46 Billion km = 9.460.730.472.580 km
// = 9.460.730.472.580.000 m // ~ 9.4 billiarden Meter
// int64_max: 9.223.372.036.854.775.807 -> int64_max * 16m ~ 147.568.372.036.854.775.807 m
// = 147.568.372.036.854.775.807 m // ~ 147 Trillionen Meter (oder 16396 Lichtjahre bzw. 16396000 Sonnensystem-Durchmesser) (vom Ursprung in jede Richtung)
int main() {
try {
renderThreadMain();
} catch(const std::exception& e) {
std::cout << "Exception occurred: " << e.what() << std::endl;
}
return 0;
}