texture-mapping Questions

4

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 ...
Kragh asked 13/7, 2020 at 15:59

6

Solved

What's the difference between a UV texture coordinate vs. ST texture Coordinate? I know that UV and ST are used in OpenGL. I also know that ST are also used in Java.
Sexlimited asked 13/5, 2012 at 0:8

7

Solved

i'm trying to code correct 2D affine texture mapping in GLSL. Explanation: ...NONE of this images is correct for my purposes. Right (labeled Correct) has perspective correction which i do not w...
Fajardo asked 13/9, 2012 at 20:59

5

I'm looking for the mathematical transformation to transform points on a 2D plane [0,1]x[0,1] onto the unitsphere. The most common projection would latitude-longitude mapping by interpreting u and...
Racon asked 10/9, 2010 at 15:26

2

Solved

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_count...
Brachio asked 26/2, 2021 at 12:25

7

Solved

How can I repeat a selection of a texture atlas? For example, my sprite (selection) is within the texture coordinates: GLfloat textureCoords[]= { .1f, .1f, .3f, .1f, .1f, .3f, .3f, .3f }; ...
Martines asked 19/3, 2009 at 12:59

1

Solved

I'm getting intermittent appearances of seams in the textures that I apply to spheres in SceneKit. It's always at the "back" of the sphere, where the two edges of the texture meet. It looks as thou...
Esma asked 14/3, 2017 at 4:9

3

Solved

I've been trying to render a GL_QUAD (which is shaped as a trapezoid) with a square texture. I'd like to try and use OpenGL only to pull this off. Right now the texture is getting heavily distorted...
Concierge asked 5/5, 2011 at 2:52

1

Solved

I'm now building a Voxel game. In the beginning, I use a texture atlas that stores all voxel textures and it works fine. After that, I decided to use Greedy Meshing in my game, thus texture atlas i...
Daedalus asked 10/12, 2019 at 5:1

1

Update 5 Created another fiddle to show what is expected would look like. An invisible skydome and a cubecamera are added and environment map is used; in my case, none of these technique should be...
Greet asked 14/10, 2019 at 18:14

1

Solved

I am trying to send an array of float values(height map) to GLSL as a GL_TEXTURE_2D. While I have the samplers set right, the issue comes from the clamping that happens when I upload the texture us...
Regazzi asked 21/5, 2019 at 20:45

5

Solved

I am working on importing a model into a scene using the THREE.js OBJ loader. I know that I am able to import the geometry fine, because when I assign a MeshNormalMaterial to it, it shows up grea...
Magenmagena asked 25/12, 2013 at 16:13

1

Solved

What I would like to do is to define a sphere in the center of my 3D coordinate system (with radius=1), wrap a cylindrical planet map onto the sphere's surface (i.e. perform texture mapping on the ...
Eyeleteer asked 31/10, 2018 at 1:8

2

Solved

Say I have an image of size 320x240. Now, sampling from an sampler2D with integer image coordinates ux, uy I must normalize for texture coordinates in range [0, size] (size may be width or height)....
Redfaced asked 13/11, 2016 at 14:4

2

I'm following along with this apple doc, but for some reason when I search for "Sprite" under Build Settings in XCode nothing pops up. I've also tried searching for "Enable Texture Atlas Generation...
Profluent asked 15/3, 2014 at 8:2

1

Solved

I have a very simple program that maps a dummy red texture to a quad. Here is the texture definition in C++: struct DummyRGB8Texture2d { uint8_t data[3*4]; int width; int height; }; DummyRGB...
Anuradhapura asked 13/9, 2017 at 16:21

2

Solved

I'm trying to understand Textures, Texture Units and Samplers in OpenGL 4.5. I'm attaching a picture of what I'm trying to figure out. I think in my example everything is correct, but I am not so...
Alphaalphabet asked 21/7, 2017 at 9:9

2

Solved

I am using freeglut, GLEW and DevIL to render a textured teapot using a vertex and fragment shader. This is all working fine in OpenGL 2.0 and GLSL 1.2 on Ubuntu 14.04. Now, I want to apply a bump...
Choose asked 11/8, 2014 at 21:12

1

Solved

I would like to ask you if you know how to repeat texture using THREE.TextureLoader(). I've found solutions just for using THREE.ImageUtils.loadTexture(). Here is part of my code: var loader = ne...
Merriman asked 19/3, 2017 at 20:7

1

Solved

How can you create a sphere in POV-Ray that looks like Earth? Presumably the answer would involve taking some kind of map of Earth and somehow wrapping it around a sphere as a texture. A Google sea...
Leopard asked 7/2, 2017 at 10:34

1

Solved

I'm programming a simple graphics engine in C++ that should be capable of representing the Earth. The Earth is modelled as an icosphere, and I planned to map its texture using the normals of each v...
Inamorato asked 31/1, 2017 at 12:41

0

To frame this question: I am a complete beginner in terms of 3d rendering, and I would like to get my feet wet. My goal is to create a command-line script (ideally in Python) which takes some kind...
Antipole asked 24/10, 2016 at 2:14

2

I'm using Assimp to load 3D models into my program. Everything has gone dandy so far, except I've come across a Lightwave object that doesn't seem to make sense. Of course it renders nicely in Ligh...
Nic asked 7/5, 2013 at 17:13

2

I am in the middle of rendering different textures on multiple meshes of a model, but I do not have much clues about the procedures. Someone suggested for each mesh, create its own descriptor sets ...
Transportation asked 21/4, 2016 at 14:26

1

Solved

I successfully applied a texture to a cube geometry with this: var geometry = new THREE.CubeGeometry(10, 10, 10); var meshMaterial = new THREE.MeshPhongMaterial({ transparent: false, map: THREE.Im...
Sjambok asked 21/1, 2016 at 19:41

© 2022 - 2024 — McMap. All rights reserved.