Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
OpenGL water reflection with cubemap
1 Views • Mar 09, 2016
Description
multiple dynamic cube maps for the reflection, the skybox is a static cube map.\r
The mesh is created as a grid of tiles and is deformed by the vertex shader at render time using a sin wave type function and normals are generated here per vertex, the reflection vector is calculated in \r
view space using the interpolated fragment position and fragment normal and is used as a texture lookup into the associated cubemap.\r
\r
There is a visual inaccuracy that I sort of expected to happen, the map is rendered from the centre of each tile but the fragments are offset, so their perspective on the scene is different.\r
this is running at around 40 frames per second on a 8800GT card, there are a few optimizations\r
that i can make for example the chessboards are computed on cpu then sent to the graphics card \r
about 100 times per frame, but they could be stored once in a VBO, the framebuffer image is copied into a texture many times per frame but the texture object can be used directly as the color buffer\r
instead. Have tested the polygon density rendering once per frame it can go up to about 200k \r
of triangles before affecting the performance.\r
\r
The image at the end is a section of my desktop background its a screenshot from a game.
Keywords & Tags
More from User
Wolf Life 3 - Minecraft Animation
Carolinemillership77
العاب أطفال - تركيب مكعبات بازل ميكي ماوس واميرات ديزني ب6 اشكال مختلفه - مسليه جدا
Carolinemillership77
DIY How to Make Play Doh Cans with Play Doh Fun and Creative for Kids and Toddlers
Carolinemillership77
Lenovo Vibe Z2 Pro - Обзор смартфона. 3 ГБ ОЗУ, 6 дюймов, 1440х2560.
Carolinemillership77
Castle of Illusion - Final Boss: Mizrabel
Carolinemillership77
Lightning McQueen CARS Transportation & Spiderman Kids Cartoon w Colors for Children Nursery Rhymes
Carolinemillership77
Related Videos
OpenGL Tutorial 51: Cube Map Reflections
Veronicaingersoll30
12 3D PROGRAMMING OPENGL-GLUT REFLECTIONS (IN HINDI)
Learn Computer Science in an Easy Way
Mod1 Simulation Water 2D isometric OpenGL C++ Vincent JACQUIER J-Jacques M @ 42 Born2Code
noxsnono
Reflection on the Water
Clyd Hunt
Sun reflection on the water of Godavari
WildFilmsIndia
How to make water reflection in Photoshop
Abid Kamal