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
0
votes
1
answer
73
views
Shadow artifact with cubemap shadow for pointlights
I am facing some difficulties with the use of a cubemap shadow associated to a poinlight (represented as the yellow bicone in the picture). The shadow map itself is generated properly (see picture).
...
0
votes
1
answer
524
views
Make moon using cubemap in shadergraph
I'm trying to make moon with a cubemap texture in shadergraph.
I made it, but the texture is incorrect.
I'm using a cubemap from NASA as a texture and it works, but it's bigger than moon shape and ...
1
vote
1
answer
5k
views
How To Convert World Space Normal To Tangent Space?
This question is a continuation of this post on How To Make Seamless Custom CubeMap?
The idea is to create a cube map with procedurally generated noise, extract the noise and a normal map of the noise ...
1
vote
1
answer
1k
views
Cube Mapping vs Spherical Mapping
I am currently researching the difference between Cube Mapping and Spherical Mapping.
Wikipedia says the following:
In the majority of cases, cube mapping is preferred over the older method of sphere ...
0
votes
1
answer
705
views
Make the texture array node work with cubemaps?
I am working on a procedural interior mapping shader in Unity's Shader Graph. Ideally, I'd like to feed it a set of cubemaps it can pick from semi-randomly.
However, it seems that by default the ...
0
votes
0
answers
1k
views
Skybox from file at runtime in Unity: Error assigning 2D texture to CUBE texture property '_Tex': Dimensions must match
I'm downloading skyboxes at runtime, and then I'd like to set them as the current scene's Skybox.
After I successfully downloaded the desired cubemap into the ApplicationData folder, I'm trying to set ...
4
votes
2
answers
2k
views
How does cube mapping work?
Based on my reading of cube mapping tutorials so far, my understanding is that you need a direction vector, and from the direction vector we can determine the point of intersection with one of the six ...
0
votes
1
answer
210
views
samplerCube for point light shadow map has dark corners relative to screen aspect ratio / size?
I almost have point light shadows working but the corner of the samplerCube that I use for the shadow map has corners that get darker depending on the main camera. Is this something to do with a ...
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 ...
0
votes
0
answers
962
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 ...
4
votes
1
answer
1k
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
1
answer
273
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 ...
2
votes
1
answer
1k
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
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 ...
1
vote
0
answers
789
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 ...
1
vote
0
answers
715
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 ...
0
votes
1
answer
455
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.
...
2
votes
1
answer
854
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
1
answer
991
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 ...
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 ...
3
votes
2
answers
3k
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 ...
1
vote
1
answer
438
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:
...
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/...
1
vote
1
answer
1k
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 ...
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
...