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
0
votes
1 answer

Where is the triangle normal pointing so I can map correctly?

Here is what I have so far. I have a 3D model and I made a triangle mesh. Calculated and applied normals to the model too. I want to apply different textures into the triangle. I also have the direction vector of all the texture I need. For mapping,…
jbchichoko
  • 1,574
  • 2
  • 12
  • 16
0
votes
1 answer

LWJGL Renders OBJ File texture coordinates in correctly

I'm trying to import an obj for my game program in LWJGL. I got my game to load the texture coordinates and vertices fine, the vertices render fine but the texture coordinates are all weird. I found out that the texture coordinates are larger than…
0
votes
1 answer

nVidia openGL fails to display simple COLOR_INDEX texture

I have my first simple OpenGL program to display 2D images using OpenGL. I'm using an index-based image, calling glTexImage2D(.. GL_RGB, ... GL_COLOR_IMAGE...) This is working as expected on an ATI card. Having swapped to an nVidia card, I see a…
Timothy Pitt
  • 128
  • 7
0
votes
1 answer

android openGL Es 2 showing no image

I am new to Android's OpenGL ES. I have spent 3 days in texture mapping but did not get any solution to my problem. Now I have written some code but it's only showing the background color but not the image that I want to show on the surface. Here is…
0
votes
2 answers

Google photo sphere

Does anyone have information on how to map the texture-image of a Google photo-sphere image onto a sphere yourself (not using the google api)? My goal is todo it myself in matlab but I was unable to find any information about the mapping…
Thomas
  • 145
  • 2
  • 7
0
votes
2 answers

GL & GLSL: Bump Mapping: What's wrong with this textbook example?

Here's what the README says this example does: "bump map on one polygon with a rotation light". Let me add: the polygon is a square, and the bump map on it should produce a raised-looking square within the original polygon square. The values for i…
Rooster
  • 1,267
  • 3
  • 15
  • 23
0
votes
0 answers

GL: Mapping images to the faces of a cube: getting an all black texture with ilutGLLoadImage()

I simply want to map images as textures to the faces of a cube and display. Instead of having my images on it, the cube is totally black. My images are both 64x64 jpg's. My application code is below. Originally it was a program that generated 2…
Rooster
  • 1,267
  • 3
  • 15
  • 23
0
votes
1 answer

JOGL NeHe Tutorials

I have been working through one of the NeHe tutorials (Lesson06) with texture mapping and was trying to modify the code to allow different images on the already created 3D cube. After looking through the code, this is the only place were the code…
James Brown
  • 919
  • 3
  • 13
  • 22
0
votes
0 answers

MATLAB texture mapping: Resize the image using imresize or built-in resize?

I'm plotting a 3D box and I use texture mapping to map the six sides with some images, I use following code line: Z=zeros(height,width); surface(Z, 'FaceColor','texturemap','EdgeColor','none','Cdata',image); hold on; And then the next side and so…
Danny
  • 123
  • 6
0
votes
1 answer

iPhone OpenGL ES1 VBO Texture Coordinate Issues

I switched my code to use VBO and suddenly my sprites (2 triangle triangle-strip) have bad texture coordinates. Disabling VBO makes the problem go away. Note - I align my vertex and texture coordinate data to 4 bytes as specified in this…
Nitzan Wilnai
  • 923
  • 9
  • 24
0
votes
0 answers

Which is android's texture coordinate and how is the texture mapped?

I am confused when I do texture mapping. Which texture coordinate does android use and how is the texture mapped? Here are two definitions of texture coordinate I found. Which one is correct?
james
  • 335
  • 1
  • 5
  • 18
0
votes
0 answers

lwjgl can't find path for my textures

I can't figure out how to load textures in a 2d environment using lwjgl. I'm using their tutorial's Sprite, Texture and TextureLoader classes. I've simply replaced the original paths/files with my own, which I've checked to make sure are correct…
JohnF
  • 339
  • 4
  • 11
0
votes
1 answer

OpenGL texture mapping with different coordinates systems

I already asked a question about texture mapping and these two are related (this question). I'm working with Quartz Composer which appears to be kind specific with textures... I have a complex polygon that I triangulate in a specific coordinate…
Benoît Lahoz
  • 1,270
  • 1
  • 18
  • 43
0
votes
1 answer

SOIL OpenGL Library crashes inside classes

I'm working on a simple 3D model loader using OpenGL and I wanted to add texture support. However, not wanting to needlessly rewrite an image library, I downloaded SOIL (Simple OpenGL Image Library) that I learned about in the NeHe tutorial on…
GraphicsMuncher
  • 4,583
  • 4
  • 35
  • 50
0
votes
1 answer

What could globally affect texture coordinate values in OpenGL?

I'm writing a plugin for an application called Autodesk MotionBuilder, which has an OpenGL renderer, and I'm trying to render textured geometry into the scene. I have a window with a 3D View embedded in it, and every time my window is rendered, this…
awforsythe
  • 161
  • 4
  • 13