Questions tagged [texture-mapping]

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.

971 questions
9
votes
1 answer

CUDA texture memory space

When I bind an array to a texture in CUDA, is that array copy to a texture space? or, is that array reference as a texture? If the answer is 1., then i can bind a texture and safety fetch data from the texture memory space while I write the…
pQB
  • 3,077
  • 3
  • 23
  • 49
9
votes
1 answer

Map an image onto a sphere and plot 3D trajectories

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 sphere) and plot 3D trajectories around the object…
Romero Azzalini
  • 184
  • 1
  • 1
  • 12
9
votes
1 answer

upside-down texture? | OpenGL-ES 2.0 (android)

I tried to map my texture to a square made in opengl es 2.0, and when i do, the texture appears upside down, is my mapping wrong? or the way im drawing it? here is a picture of what it looks like: here is my code for the onDrawFrame() public void…
Baruch
  • 1,618
  • 5
  • 23
  • 42
9
votes
2 answers

Linear/Nonlinear Texture Mapping a Distorted Quad

In my previous question, it was established that, when texturing a quad, the face is broken down into triangles and the texture coordinates interpolated in an affine manner. Unfortunately, I do not know how to fix that. The provided link was…
geometrian
  • 14,775
  • 10
  • 56
  • 132
8
votes
1 answer

OpenGL ES 2.0 Vertex Transformation Algorithms

I'm developing an image warping iOS app with OpenGL ES 2.0. I have a good grasp on the setup, the pipeline, etc., and am now moving along to the math. Since my experience with image warping is nil, I'm reaching out for some algorithm…
8
votes
2 answers

2 Textures, 1 Shader - OpenGL ES 2.0

ES 2.0 newbie here. I'm currently trying to make some 3D interlaced images from stereo images with ES 2.0 and the PowerVR SDK. I can output one image texture fine, but when I try to output the second one, I seem to be overwriting the first. So, my…
8
votes
1 answer

Texture seam in iOS SceneKit

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 though the texture doesn't quite connect with itself,…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
8
votes
2 answers

how would I do environment reflection in webgl without using a library like three.js?

I'm trying to figure out how to do environment mapping onto an object. Here's the setup: How would I make the teapot's surface reflect it's surroundings? So what I mean by that is, instead of the teapot being that shade of gray, its surface should…
Hristo
  • 45,559
  • 65
  • 163
  • 230
7
votes
1 answer

How to add texture to BufferGeometry faces.?

I have created a bufferGeometry , which consist of 5 planes (100x25) with two triangles each. function createGeometry() { var geometry = new THREE.PlaneGeometry(100, 25, 1); return geometry; } function createScene() { var bufferGeometry…
Sarath
  • 9,030
  • 11
  • 51
  • 84
7
votes
1 answer

How to properly map a 2D image texture to an icosphere

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 vertex. To do so, I'm essentially trying to get…
Carles Araguz
  • 1,157
  • 1
  • 17
  • 37
7
votes
1 answer

How to apply a texture to a custom geometry in Three.js

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.ImageUtils.loadTexture('/app/images/wood.jpg')…
Andres
  • 6,080
  • 13
  • 60
  • 110
7
votes
2 answers

XCode Has No Option to Enable Texture Atlas Generation

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" and nothing comes up. I have Xcode 5.0.2 if that…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
7
votes
7 answers

correct glsl affine texture mapping

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 want. So this: Getting to know the Q texture…
velkyel
  • 352
  • 4
  • 13
7
votes
1 answer

OpenGL ES 2.0 texture distortion on large geometry GL_REPEAT

OpenGL ES 2.0 has serious precision issues with texture sampling - I've seen topics with a similar problem, but I haven't seen a real solution to this "distorted OpenGL ES 2.0 texture" problem yet. This is not related to the texture's image format…
6
votes
4 answers

OpenGL - 2D Texture Mapping

I'm trying to render a simple texture(64x64) to a 64x64 quad. The quad itself is rendering, but, not the texture. (It's rendering a blank white 64x64 quad.) I'm using SOIL to load the image. static GLuint LoadPNG(char* filename) { GLuint texture…
TheMonster
  • 83
  • 1
  • 1
  • 6
1
2
3
64 65