The cubemap tag has no usage guidance.
1
vote
0answers
26 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
61 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
44 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
82 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 ABDC is part of my video ...
0
votes
1answer
31 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.
Argument 9 of WebGLRenderingContext.texImage2D does not ...
0
votes
1answer
43 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
87 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
122 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
121 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
115 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 ...
0
votes
0answers
25 views
Control cubemap reflection amount from metallic and smoothness properties
I have a custom surface shader, and I want to use the reflections from the reflection/environment probe. In the default standard shader (for unity), the reflection amount is controlled by the "...
2
votes
0answers
68 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
135 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
511 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
256 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
82 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:
GLuint texID = 0;
bool loadCubeMap(const char * baseFileName) {
glActiveTexture(GL_TEXTURE0);
...
1
vote
0answers
328 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 ...
3
votes
1answer
534 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
118 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
250 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
203 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 ...
4
votes
2answers
3k 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
473 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
271 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:
public static int loadCubeMap(String filename)
{
...
1
vote
1answer
460 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
varying vec2 tex_coord;
void ...
1
vote
0answers
321 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
300 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
746 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
2k 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
213 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 shader would be a basic passthrough ...
0
votes
0answers
126 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
409 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
414 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 ...
2
votes
3answers
1k 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
668 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
456 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
3k 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
613 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
1answer
424 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
750 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
279 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 ...
0
votes
1answer
450 views
GL_TEXTURE_CUBE_MAP min/mag filter problem
I found it hard getting min/mag filtering to work with cubemap texture. In the screenshot-attachment I've created a cube using a cubemap texture, and also a grid of planes using a 2D texture. For both ...
1
vote
0answers
382 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 ...
0
votes
1answer
119 views
Texture errors in CubeMap
I am trying to apply this texture as a cubemap. This is my result:
Clearly I am doing something with my texture coordinates, but I cannot for the life of me figure out what. I don't even see a ...
1
vote
2answers
835 views
Error while reading TGA file and doing Texture Cube map
In my program, i read a TGA file with a function like this:
char* LoadTGA(char* filename, int* width, int* height, int* bpp);
As you can see, this function: return a char array of image data (...
9
votes
1answer
12k 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 ...
2
votes
0answers
493 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.
GLenum types[]={...
4
votes
3answers
3k 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 ...
0
votes
1answer
1k views
E_FAIL: An undetermined error occurred (-2147467259) when loading a cube texture
I'm trying to implement a skybox into my engine, and I'm having some trouble loading the image as a cube map. Everything works (but it doesn't look right) if I don't load using an ...
1
vote
3answers
836 views
How do you rotate a cube map?
I'm looking for suggestions on this
Say you have a cube map. You want to rotate it as efficiently as possible.
You can render the cube map, rotate the camera, and render the scene to another cube ...