Texture mapping is a method for adding detail, surface texture (a bitmap or raster image), or color to a computer-generated graphic or 3D model.
Questions tagged [texture-mapping]
971 questions
3
votes
2 answers
how to make python ursina engine's cube texture
I am wondering about how to make a simple cube texture in the Python Panda3D wrapper, ursina engine library.
Here's the code that I have tried.
from ursina import *
app = Ursina()
window.fps_counter.enabled = False
class Voxel(Button):
def…

elsso0202
- 33
- 1
- 3
3
votes
1 answer
A-Frame THREE.TextureLoader loading texture whice is looking whitewashed
I am updating an a-image scr using THREE.TextureLoader
let loader = new THREE.TextureLoader()
const imgload = loader.load(
'./test.png',
function ( texture ) {
…

Sarbartha Sengupta
- 33
- 3
3
votes
2 answers
How to add texture to a mesh in python Open3d?
I am working with a triangle meshes with python Open3d and I want to add a texture mapping to my mesh (I didn't find it in the documentation), this is an example code with simple cube mesh:
import numpy as np
import open3d as…

Nadav Geva
- 31
- 1
- 1
- 4
3
votes
0 answers
ARSCNPlaneGeometry update and re-calculate texture coordinates, instead of stretching them
I'm having a problem on the texture coordinates of planes geometries being updated by ARKit. Texture images get stretched, I want to avoid that.
Right now I'm detecting horizontal and vertical walls and applying a texture to them. It's working like…

c4b4d4
- 964
- 12
- 32
3
votes
1 answer
Different indices array for texture/vertices
Im trying to draw a globe in Android, I use OpenGL for this. However to make it easier to understand i will start by making a simple 3D cube. I use Blender to create my 3D object (cube) and export it as a .obj file after i have unwrapped it to get…

Henrik
- 1,147
- 2
- 11
- 22
3
votes
2 answers
texture a ball on a sphere has a dark band
I am using this code to generate sphere vertices and textures but as you can see in the image , when I rotate it I can see a dark band.
for (int i = 0; i <= stacks; ++i)
{
float s = (float)i / (float) stacks;
float theta = s *…

George
- 5,808
- 15
- 83
- 160
3
votes
0 answers
How to Re-project UV Coordinates from an Arbitrary Camera using METAL SCNShaderModifier in SceneKit Swift iOS
I am trying to use an SCNShaderModifier to re-project the texture coordinates of a mesh in SceneKit on iOS from an arbitrary camera in the scene which is parented to the geometry.
guard let faceGeometry = ARSCNFaceGeometry(device: device,…

Geoff H
- 3,107
- 1
- 28
- 53
3
votes
1 answer
Why only half of expected output using texture coordinate wrapping modes, example from SB OpenGL
wrap.py from Superbible OpenGL is rendering only half the expected output. Note the two images. What could be wrong in the source code as it seems ok, there should be the four textures, why are the two missing? Thanks.
Actual results that I'm…

Stan S.
- 237
- 7
- 22
3
votes
1 answer
OpenGL Texture Mapping using .jpg texture file
Does anyone know whether or not XCode has a framework (library) for reading and writing jpeg files, and what is the library/framework name? I want to load this jpg image for a texture mapping in OpenGL.
If you have done texture mapping using jpg…

all_by_grace
- 2,315
- 6
- 37
- 52
3
votes
2 answers
How to map texture to cylinder in unmanaged DirectX?
In C#.net I have a mesh cylinder with a dynamic diameter and length and am trying to map a texture to it. I have spent the better part of a day trying to find out how to do so but have had no success finding any information on Google.
The cylinders…

Craig White
- 13,492
- 4
- 23
- 36
3
votes
3 answers
undistorted texture coordinates
How do you calculate UV coordinates for points on a plane?
I have a polygon - 3 or 4 or more points - that is on a plane - that is to say, all the points are on a plane. But it can be at any angle in space.
One side of this polygon - two points -…

Will
- 73,905
- 40
- 169
- 246
3
votes
3 answers
Outer artifacts when using GL_LINEAR in Texture OpenGL
I success to generate the height map using texture in openGL. The full picture of this data is shown in the figure below. However, when I'm using GL_LINEAR option in my glTexParameteri (MinMag) it give me outer artifacts.
this is my…

zufryy
- 177
- 2
- 10
3
votes
2 answers
OpenGL 3D textures and mapping on part of a quad
I'm making a Minecraft-ish terrain engine to learn some OpenGL and 3D and everything works fine except for the FPS which I'm not happy with.
The current: I'm currently only drawing the visible faces and using frustum culling, the cubes are in 16 by…

Solenoid
- 2,351
- 5
- 29
- 48
3
votes
1 answer
opengl 1D texture: fill with arbitrary float values
So, I'm struggling with 1D textures. What I'm trying to achieve is passing 3 float values to a fragment shader as a uniform. They represent a light's color, in an attempt to reuse the same shader for n lights, with all their info -color and…

Carlos Romero
- 698
- 8
- 18
3
votes
4 answers
OpenGL, applying texture from image to isosurface
I have a program in which I need to apply a 2-dimensional texture (simple image) to a surface generated using the marching-cubes algorithm. I have access to the geometry and can add texture coordinates with relative ease, but the best way to…

ssube
- 47,010
- 7
- 103
- 140