Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cubemap]

The tag has no usage guidance.

0
votes
0answers
20 views

DirectX 11 - Skybox Texture messed up

I'm attempting to create a skybox and I'm currently having some issues with the texture where it looks like this: It seems the textures are not really "sticking to their sides" correctly as it looks ...
0
votes
0answers
18 views

Cube map faster than 6 2D textures? - shadow mapping

I've managed to implement shadow mapping to a scene. However, I had problems using a cube map so I eventually gave it up and used 6 2D texture maps instead. To make this work with 6 2D maps, during ...
4
votes
1answer
170 views

How to create a skybox in an infinite world like minecraft?

I'm making a minecraft-clone game in C++ using OpenGL. I created a skybox using OpenGL's cube map but the camera can go outside of the skybox since it's an infinite world. Then I changed it to update ...
0
votes
1answer
61 views

One pass rendering with GL_TEXTURE_CUBE_MAP_ARRAY

I try to rework rendering of point light shadows from "pass per cube face" to "one pass using geometry shader". initialization: ...
0
votes
1answer
71 views

Render to cubemap wrong Y values

I'm currently trying to render to a cubemap in order to blur it. However the top and bottom faces appear much closer than they should be in the blurred version. I thought the problem came from my ...
0
votes
1answer
191 views

DDS load texture and cubemaps

I'm trying to render a skybox with a cubemap on it and to do so I'm using DDS Texture Loader from DirectXTex library. I use texassemble to generate the cubemap (texture array of 6 textures) into a DDS ...
1
vote
1answer
87 views

Project 2D texture onto a cubemap

I'm looking to take a 2D texture (previously rendered from the user's perspective), and overlay it overtop of a cubemap. Since a cubemap has 6 textures, I need to run a shader over top of all 6, and ...
1
vote
1answer
57 views

Panorama from cube map without geometry

Is it possible to achieve effect equivalent to looking on the cube textured from cube map from its center, but without creation of its faces (6 quads or 12 triangles)? Say, one needed a skybox, but ...
1
vote
0answers
394 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 ...
1
vote
1answer
149 views

Why rendered objects to cubemap are larger than they should be?

I am trying to render a scene to a cubemap, so I can later use it as environment map for another object. The object I want to use the environment map with is a surface, I am trying to render water. ...
1
vote
0answers
305 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 ...
0
votes
1answer
101 views

Does cube map texturing works only for objects which vertices are is in [-1,1] range?

Im attempting to texture an .obj file that is not a skybox. So the question is, every tutorial about cubemap creates their hardcoded cubes with vertices ranging from [-1, 1]. Probably not, but is it ...
1
vote
0answers
318 views

Generating texture coordinates autmatically with Cube Mapping for an object that is not a skybox in OpenGL

I am wondering whether its possible to automatically generate texture coordinates for custom obj models to work with cubemaps. Every tutorial I see online is about environment mapping. Is it possible ...
2
votes
0answers
170 views

How to map trapezoid image to rectangle cubemap face?

I am writing a 360 video application on oculus mobile SDK. My video frame has a trapezoid region and I need to map it into a rectangle region. In the above figure, trapezoid ...
0
votes
1answer
111 views

WebGLRenderingContext.texImage2D does not implement interface ArrayBufferViewOrNull

I'm working on a WebGL project and all my textures render fine. When i wanted to implement a cubemap i started getting this type error. ...
0
votes
1answer
80 views

Two reflective surfaces facing each other in openGL

How do I render 2 reflective surfaces, Example a mirror, face each other? To render a single surface I would use a cube map by rendering from the object on six directions. But to render 2 surfaces ...
2
votes
1answer
319 views

OpenGL Cubemap skybox edge issue

I implemented a skybox into my program using a tutorial, and using the provided 6 textures from that tutorial to make a cube map texture, my skybox looked fine. However, ever since then every other ...
0
votes
1answer
603 views

Is using Spherical Harmonics still viable as a technique nowadays?

I've been implementing spherical harmonics in my Engine for learning purpose. I was wondering if Spherical Harmonics are still used in modern engine or if they moved on to the more simple cubemaps or ...
0
votes
1answer
317 views

How to put different textures on different sides of a Cube in DirectX 11?

I have recently learned how to texture a cube in DirectX with a single texture but I am now trying to put multiple textures on a cube. If your confused the photo below should clarify. I am aware of ...
2
votes
1answer
286 views

Omnidirectional light (point) shadow mapping bug: everything's lit up white

I am facing a really frustrating problem. After looking at a lot of tutorials (probably all existing on net, not kidding), i tried to do the point light shadow mapping using a cube texture. The ...
2
votes
0answers
307 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 ...
5
votes
0answers
270 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 ...
3
votes
2answers
1k views

How to Load and Apply a Cube Map with DDS Texture Loader?

So I have been spending a lot of time recently implementing a working skybox/skysphere, and have almost completed it. The last thing that I need to do is to load my given texture, a skybox texture ...
2
votes
2answers
498 views

Efficiency - Cubemap or Raytraced reflection?

I'm an amateur in 3D game development. The thing I want to know is shading related. For reflection purpose, which will be the efficient way? Either "Realtime render to Cubemap" or "Ray trace based" ...
1
vote
1answer
186 views

GL_INVALID_OPERATION in glGenerateMipmap(incomplete cube map)

I'm trying to learn OpenGL and i'm using SOIL to load images. I have the following piece of code: ...
1
vote
0answers
485 views

Cube map or 2D texture map

I'm trying to map quadsphere with COBE spherical cube (CSC) projection in OpenGL (wanna map planets). I managed to create a 2D texture and it works well except seams at edges. Then I learned that ...
4
votes
1answer
811 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/...
0
votes
1answer
199 views

Issue creating a dynamic seemless cube map

I have a function for building a cube map, given a location in space. I also have a system for displaying cubemaps (either loaded from images or given as a texture handle), and they work fine and are ...
1
vote
1answer
582 views

How do I store an FBO'S as a cube map?

As of late I've been trying to implement Cubemaps in my engine, and have managed to get the rendering side of them working. Currently, I'm trying to implement a function for creating them, but I ...
0
votes
2answers
401 views

CubeMap - Why size of skybox cube has no effect?

I have normal skybox via CubeMap, but i noticed that the size of the cube has no effect. I would expect that when i have cube size 20.0, i will see different result than with cube of size 1000.0 (same ...
5
votes
2answers
5k 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 ...
4
votes
0answers
755 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 ...
1
vote
1answer
353 views

Cubemaps turn black OpenGL GLSL Java LWJGL

Recently I tried to add cubemaps to my 3D-rendering engine. The objects with a cubemap now turn completely black. This is how I load my cubemap: ...
1
vote
1answer
640 views

Environment mapping - cube mapping using OpenGL

I'm trying to do cube mapping. Problem is that I'm getting this: This is what I get when I rotate it: But it should look like this Here is code for vertex shader ...
2
votes
0answers
531 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/...
1
vote
0answers
465 views

Is it possible to generate a Spheremap from a Texture2D in Unity at run-time?

I was trying to create a spheremap from a Texture2D for a skybox at run-time (Standalone build) in Unity. Does anyone know if this is possible and how to do that in Unity? In the editor you can set ...
2
votes
1answer
1k 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 ...
4
votes
5answers
3k 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 ...
2
votes
0answers
281 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 ...
0
votes
0answers
218 views

How to create custom cubemap images?

I managed to use cube maps in OpenGL to get reflection and refraction effects. So far I used images from this site, however, I want to create my own set of images to use in a cubemap, the idea is just ...
0
votes
1answer
694 views

Reflection/environment mapping

I'm implementing reflection/environment mapping using a cubemap. I have it working for the most part but when I move my camera around, I see the same area reflected on the object. I am calculating the ...
1
vote
1answer
527 views

How to calculate reflection vector from point sprite sphere?

So far I achieved building a cube map following this tutorial. Then I drew three points using glDrawArrays(GL_POINTS,0,3) and calculate the normals based on a sphere. To compute the incoming light ...
3
votes
3answers
2k views

How do reflections work for large flat surfaces?

I understand how reflections work for objects. A cubemap would be rendered around a certain point in 3D space, usually at the center of the object that the reflection is to be applied to, and that is ...
5
votes
2answers
1k 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 ...
1
vote
1answer
574 views

Skybox: OpenGL texCUBE vs a textured cube

In OpenGL, the typical way that I've seen to set up a skybox using cubemapping is to create a cube in camera space, prepare a cubemap sampler with the appropriate six-sided texture, and then in the ...
4
votes
1answer
4k views

Irradiance cubemap to spherical harmonics conversion

What are advantages of using spherical harmonics instead of irradiance cubemap? Are there any common used methods for conversion?
5
votes
1answer
794 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 ...
6
votes
1answer
588 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 ...
4
votes
1answer
1k 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 ...
2
votes
1answer
323 views

Get the game state using Multithreading in Java Monkey Engine 3

I’ve been trying out Java Monkey’s multi threading recently via the wiki’s tutorial. Since I just wanted to test a prototype clinet, I made a program which creates some cubes using the ‘Cubes’ library ...