Skip to main content

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.

23 questions with no upvoted or accepted answers
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 ...
Zick's user avatar
  • 99
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 ...
cubrman's user avatar
  • 1,561
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 ...
Igor's user avatar
  • 219
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 ...
kingsapo's user avatar
  • 151
4 votes
0 answers
1k views

OpenGL cubemap binding

I'm experimenting a strange behaviour of textures inside my shaders. Basically I need and bind two cubemap textures inside my shader but only one gets actually bound. I've tried swapping the two ...
zeb's user avatar
  • 263
4 votes
0 answers
1k views

Normal Mapping a Cubemap

I posted a question on Stackoverflow and it was suggested that it would be better asked here. I have a sphere. It was created via the icosphere method outlined here: http://blog.andreaskahler.com/2009/...
NeomerArcana's user avatar
4 votes
0 answers
623 views

Drawing cube map and texture array on NVidia cards doesn't work

I have small problem with shadow maps preview. After binding shadow framebuffer I bind proper texture to store depth in it and then render the whole scene. When I read that values in shader to ...
Harry's user avatar
  • 690
2 votes
0 answers
399 views

OpenGL: Avoid geometry shader for cubemap framebuffer

I want to render an environment map into a cubemap framebuffer but I dislike the fact, that I have to use the geometry shader to set gl_Layer because the geometry ...
tly's user avatar
  • 133
2 votes
0 answers
721 views

glFramebufferTexture2D gives corruption with cube map textures

I am using glFramebufferTexture2D with cube map textures but it gives corruption in texture. draw_cube() function works perfectly when i draw that on default framebuffer. ...
user1737197's user avatar
1 vote
0 answers
138 views

Camera not rendering to rendertexture inside class

I have an issue where I created a class to generate a lightprobe atlas texture for me, but the camera don't seem to render properly into teh rendertexture, I have no idea why... someone can help me ...
user29244's user avatar
  • 327
1 vote
0 answers
258 views

What is the best way to bake my own environment maps?

My engine has support for IBL by using pre-obtained HDRIs. It looks fine, but... I want the environment map to match the scene that is currently being rendered I want the environment map to take the ...
felipeek's user avatar
  • 131
1 vote
0 answers
259 views

Spherical harmonics

I'm currently trying to implement a GI system for diffuse lighting and wanted to do so in spherical harmonics. Now i have read what else i could find and i know the general idea of how to get from ...
AverageGatsby's user avatar
1 vote
0 answers
354 views

PyOpenGL Cubemap ARB Texture not rotating with gluSphere

I've made a gluSphere render in my display and have given it a cube map texture of the Earth. The texture is visible just fine (see below), but I cannot get it to rotate along with the shape. this ...
njasi's user avatar
  • 11
1 vote
0 answers
2k views

Dynamic environment mapping in OpenGL

I am trying to implement dynamic environment mapping in my OpengGL rendering engine for the purpose of showing reflections. I am following the tutorial found here. This tutorial (and many others that ...
James's user avatar
  • 183
1 vote
0 answers
788 views

Blending between 2 cube maps using the procedural skybox shader

I want to create a day night cycle using the procedural skybox shader. The shader doesn't have options to do any blending between cube maps. I want to be able to set a cloud cube map and a night ...
JacketPotatoeFan's user avatar

15 30 50 per page