textures Questions
0
I was making a shader with GLSL so I could apply texture arrays to a cube when I ran into an issue. The issue was that layout wasn't supported in the version I was using. Easy fix, use a later vers...
1
Solved
I was trying to texture a cube in PyOpenGL when I ran into an issue. PyOpenGL only supports 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES. I need at least version 1.40 because in 1.40 layout was introduce...
4
Solved
Is it possible to create a background texture with pure CSS (without using an image) that looks like an old paper, e.g. like this:
https://i.sstatic.net/kb0Zm.jpg
I'm aware that there are limitatio...
Butyraceous asked 29/1, 2013 at 14:22
4
Solved
So I'm rendering my scene in batches, to try and minimize state changes.
Since my shaders usually need multiple textures, I have a few of them bound at the same time to different texture units. Som...
3
The OpenGL SuperBible discusses texture buffer objects, which are textures formed from data inside VBOs. It looks like there are benefits to using them, but all the examples I've found create regul...
4
Solved
I can find tutorials about mapping textures to polygons specifying vertices etc. but nothing regarding how to apply a texture to a cube (or other stuff) drawn with glut (glutSolidCube).
I am doing...
6
Solved
I want to load 4-channel texture data from a file in iOS, so I consider the texture as a (continuous) map
[0,1]x[0,1] -> [0,1]x[0,1]x[0,1]x[0,1]
If I use the fileformat .png, XCode/iOS consid...
Endamage asked 11/11, 2012 at 22:40
1
I'm working with the https://vulkan-tutorial.com/ Depth Buffering code as a base. Made a few changes to update the command buffer every frame.
I'm using a crude way of checking fps. Not sure how a...
Kiyohara asked 14/4, 2020 at 12:57
2
Solved
I am trying to change a cube image at run time by selecting an option from Select Form element. When running the code, the image changes after selecting, but the previous cube and image stays in th...
3
Solved
I am creating a 3D application in OpenGL, and in order to display textures on the models that I'm reading in, I'm using GLuint. However, I am getting the visual studio error C4430 missing type, and...
Allpowerful asked 17/4, 2013 at 11:18
3
Solved
Environment: WebGL, Chrome. I have the following behavior when using transparent png's as textures for models:
Image A - the tree hides the building behind it and I see the world box texture. It ...
Rambo asked 6/1, 2012 at 19:50
3
I am trying to add texture to a model that I converted to json and imported from 3ds Max. I searched but didn't find any code online which applies texture to json models using three.js r53. I guess...
1
Solved
I need to use two textures in my shader, one in the vertex shader, another in the fragment shader. In both cases they are referenced in the shaders like uniform sampler2D tex1; or uniform sampler2D...
1
I feel like I'm missing something simple here.
I used JSFiddle by @WestLangley, which demonstrates how to cast a shadow from an object onto a plane.
Everything works as expected when the plane is...
3
Solved
I could use just a little help. I am loading a png into a Texture2D, and have managed to flip it over the y axis using the following script I found. I need to flip it over the x axis now. I know a ...
Metalloid asked 11/3, 2016 at 21:56
8
Solved
I would like to know why Perlin noise is still so popular today after Simplex came out. Simplex noise was made by Ken Perlin himself and it was suppose to take over his old algorithm which was slow...
Memoried asked 22/6, 2011 at 11:52
4
Solved
I'm working on an OpenGL-powered 2d engine.
I'm using stb_image to load image data so I can create OpenGL textures. I know that the UV origin for OpenGL is bottom-left and I also intend to work in...
1
Solved
I am currently building a height map terrain generator using OpenGL. It's a simple program that loads a height map image, iterates over the image data and generates vertices, indices and normals. A...
4
Solved
I have a 32x32 .png image that I want to repeat over a SCNPlane. The code I've got (See below) results in the image being stretched to fit the size of the plane, rather than repeated.
CODE:
let p...
2
Solved
I would like to be able to export an obj file just like in this example http://threejs.org/examples/#webgl_exporter_obj
However, i would like to export the .obj file with corresponding textures in...
3
Solved
2
Solved
I know how to create a MTLBuffer and or MTLTexture but how do I free the GPU memory for these resources when they are no longer needed?
Bonnett asked 26/8, 2016 at 4:27
4
Solved
I'm trying something like
glEnable(texture_2d)
glBindTexture
glCopyTexImage2D
glDisable(GL_TEXTURE_2D);
I think glCopyTexImage2D won't work with a non-power of two image, so that's one problem; ...
2
Given an Javascript ArrayBuffer with the binary data of a image and the extension (jpg, png , etc)
I would like to create a ThreeJS Texture (without doing any HTTP request or file load as I already...
Barabarabarabas asked 12/2, 2015 at 16:32
8
I would like to mix camera preview SurfaceTexture with some overlay texture. I am using these shaders for processing:
private final String vss = "attribute vec2 vPosition;\n"
+ "att...
Histrionics asked 14/11, 2012 at 9:38
© 2022 - 2024 — McMap. All rights reserved.