damdoy / opengl_examples Goto Github PK
View Code? Open in Web Editor NEWCollection of examples for OpenGL: Perlin noise, ambient occlusion, shadow mapping, water reflection and others
Collection of examples for OpenGL: Perlin noise, ambient occlusion, shadow mapping, water reflection and others
MSYS2 is using the pacman
package manager of Arch Linux. Please add MSYS2 MINGW64 support to your build
script. Thank you.
cd ambient_occlusion && mkdir build && cd build && cmake .. && make
causes an error
Consolidate compiler generated dependencies of target ambient_occlusion
[ 50%] Building CXX object CMakeFiles/ambient_occlusion.dir/main.cpp.o
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp: In function ‘void init()’:
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp:219:26: error: call of overloaded ‘init(const int&, const int&)’ is ambiguous
219 | depth_framebuffer.init(win_width, win_height);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/main.cpp:28:
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/../common/depth_framebuffer.hpp:21:9: note: candidate: ‘void Depth_framebuffer::init(unsigned int, float)’
21 | void init(unsigned texture_size, float perspective = 3.1415f/1.6f){
| ^~~~
/home/dmitrykolesnikovich/workspace/doy-opengl-examples/ambient_occlusion/../common/depth_framebuffer.hpp:25:9: note: candidate: ‘void Depth_framebuffer::init(unsigned int, unsigned int, float)’
25 | void init(unsigned tex_width, unsigned tex_height, float perspective = 3.1415f/1.6f){
| ^~~~
make[2]: *** [CMakeFiles/ambient_occlusion.dir/build.make:76: CMakeFiles/ambient_occlusion.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ambient_occlusion.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
So as I understood from README you use Visual Studio on Linux? How do you actually run examples?
I am wondering how we can change the Terrain
class in order to have a simple flat terrain which is at the bottom of the scene so we can place objects on it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.