Questions tagged [cubemap]
Cube mapping is an environment mapping method that renders the area of interest onto the six faces of a cube and later uses such textures to render specular highlights, reflections, and skyboxes.
85 questions
18
votes
4
answers
8k
views
Procedural Planets, Heightmaps and Textures
I am currently working on an OpenGL procedural planet generator. I hope to use it for a space RPG, that will not allow players to go down to the surface of a planet so I have ignored anything ROAM ...
16
votes
1
answer
22k
views
Implementing a skybox with GLSL version 330
I am trying to get a skybox working with OpenGL 3.3 and GLSL version 330.
I could not find a completely modern OGL skybox tutorial anywhere on the web, so I modernised an older one (using ...
14
votes
1
answer
25k
views
OpenGL/GLSL: Render to cube map?
I'm trying to figure out how to render my scene to a cube map. I've been stuck on this for a bit and figured I would ask you guys for some help. I'm new to OpenGL and this is the first time I'm using ...
10
votes
1
answer
733
views
Environment mapping without cubemap (need coordinates projection)
I'm working on a project with C++ and glsl (4.1).
I have implemented a mirror object which is a plane at height 0 that works as follow:
I render the scene with a MVP computed such that the camera ...
8
votes
1
answer
847
views
Understanding how texCUBE works and writing cubemaps properly into a cube rendertarget
My goal is to create accurate reflections, sampled from a dynamic cubemap, for specific 3d objects (mostly lights) in XNA 4.0.
To sample the cubemap I compute the 3d reflection vector in a classic ...
6
votes
2
answers
879
views
Is a dynamic enviroment map using pincushion curvilinear perspective projection possible?
I'm wondering if it is possible to generate a dynamic spherical environment map using a single frame render using a pincushion curvilinear perspective projection matrix (phew, that's a mouthful)?
I'...
6
votes
1
answer
2k
views
Stepping through 3D noise to generate a cubemap for a sphere
This is somewhat related to a previous question I asked
How to create a seamless cubemap noise texture?
I have managed to successfully step through a 3D noise function to create a cubemap texture ...
6
votes
2
answers
8k
views
Unity - Water Cube (to 2D game)
I wonder if you can create a cube of water within the unity!
I'm starting to use the Unity, and took a sought as to whether there was already something like this ... but have not found any tutorial
...
5
votes
1
answer
1k
views
Why are cube map axes sometimes labelled incorrectly?
In both 3ds Max (which uses a right-handed coordinate system) and Unity (which uses a left-handed coordinate system), the cube map faces labelled "left" and "right" show the view facing the opposite ...
5
votes
5
answers
5k
views
How to create a seamless cubemap noise texture?
I have, so far, been able to create the vertices and UV coords etc for a sphere that would be textured with a cube map. I have also successfully loaded a cube texture from file and applied it to my ...
5
votes
1
answer
2k
views
How to attach a framebuffer to a whole cube map from a GL_TEXTURE_CUBE_MAP_ARRAY?
I'm trying to make shadow cube maps in an array. I want to draw each shadow map with a single pass using a geometry shader, which I read about here: https://stackoverflow.com/questions/462721/...
5
votes
1
answer
2k
views
Using textureGrad for anisotropic integration approximation
I'm trying to develop a real time rendering method using real time acquired envmap (cubemap) for lightning.
This implies that my envmap can change as often as every frame and I therefore cannot use ...
5
votes
0
answers
2k
views
OpenGL Depth Cubemap with Geometry Shader Not Rendering Correctly
I was having some trouble with cubemaps in OpenGL, and was hoping to get some help. I've been following a tutorial about point light shadow mapping using cubemaps, where a geometry shader is used to ...
5
votes
2
answers
2k
views
Skybox rendering
I am sorry if this is trivial, but I got into OpenGL just very very recently.
I am trying to render skybox (with cubemaps) and this is what I have done:
Created a VBO with vertices positions (36 of ...
4
votes
3
answers
6k
views
Is a Single Texture Cube Map Possible?
I'm currently developing a test project to explore OpenGL 3 texturing abilities. I have a simple cube, made of 8 vertices and 36 indices. I want each of the cubes faces to have a different texture, so ...