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
0
votes
1 answer
how to specify source rectangle for texture with OpenGL (libGDX)?
So I'm relatively new to OpenGL, and in this case I'm using libGDX to draw on my target platform (Android). What I want to be able to do is specify a source rectangle for my mesh texture so that I can pack a bunch of textures onto just one file and…

Darkhydro
- 1,992
- 4
- 24
- 43
0
votes
1 answer
Open GL texturing , texture coordinates are incorrect to what is rendered
I'm rendering a scene using opengl with textures loaded using some sample code and the FreeImage API.
Here is a link to what i'm seeing
[Image Removed]
I can confirm that all texture coordinates are provided to glTexCoord2f between 0.0f and 1.0f as…

ceorron
- 1,230
- 1
- 17
- 28
0
votes
1 answer
Reach profile requires TextureAddressMode to Clamp but I've already set that
I'm now writing a game on WP7 using XNA Framework 4.0.
There are some pictures that needs to be tiled.
So I set the SamplerState[0] to LinearWrap before rendering these pictures and I switch it back to LinearClamp once done.
However, the game still…

HoneyFox
- 28
- 5
0
votes
1 answer
iphone opengl es 2.0 non power of two
I thought the image file size doesn't have to be power of two in 2.0
but when I tried, it just showed black screen.
But it works fine with power of two images.
Can anyone give me some hint what I am missing or I should do to use NPOT images?
Thank…

in His Steps
- 3,075
- 6
- 30
- 38
0
votes
1 answer
ETC1 texture support on Samsung Galaxy ACE GT-S5830
I have this Samsung Galaxy ACE GT-S5830 android phone.
which has an Adreno-200 GPU.
I would have expected it to have the ETC (Ericsson Compression format) support,
but looks like it cannot load them.
Although the gl.glGetString(GL10.GL_EXTENSIONS)…

revolutionary
- 3,314
- 4
- 36
- 53
0
votes
1 answer
Texture Filtering Mode in 3D graphics
Is there any specific relations between the workload/ overhead of different types of Texture filtering modes? i.e. comparing for "no filtering mode", bilinear filtering and trilinear filtering? and are they specific to 3D, or we have them also in…
user1196937
0
votes
1 answer
How do I correctly implement texture pixel to texel correction in direct3d 9?
I have read a couple of articles that describe the necessity to move the texture one half unit of the vertex positions in order to get the correct mapping between texels and pixels. Though I think I understand the theory behind it, when I try to…

icecream
- 973
- 2
- 12
- 26
0
votes
1 answer
Programmatically deform planar texture to spherical (3d) texture
I'm trying to deform a planar texture to a spherical texture programmatically so that I can use it on a sphere and not get the weird fish-eye effect. Basically I want to take a normal image and change it such that it maps without the fish-eye-ness…

user82116
- 418
- 5
- 12
0
votes
1 answer
Two Texture Overlap in a Single Shape
I've a rectangle with a texture.
This shape is a play card.
Like a play card, i want to use a texture for the front face and
a different one for the back face.
I've tried with texture combiners (glTexEnvf) but this is not
what i need for my task.…

Giacomo
- 1
- 2
0
votes
1 answer
efficient way to map texture on a model loaded from an obj file
I'm making a program that given an obj file, it renders the model. For now it works without texture mapping, but i want to implement this capability, reading the material library file.
But i see that the number of vertices can be different from the…

optimusfrenk
- 1,271
- 2
- 16
- 34
0
votes
1 answer
Glut and Using Texture Atlas
My question is probably pretty simple to answer
Im importing a 128x128 texture atlas RAW file. I want to make one of the faces of my cube an image stored in that texture atlas. I drew the image with the dimensions 10x5 starting at pixel ( 10 , 5…

meriley
- 1,831
- 3
- 20
- 33
0
votes
1 answer
LWJGL Cylinder Texture Mapping
I wanted to know how to preform texture mapping on the org.lwjgl.util.glu.Cylinder class. I
want to be able to wrap the texture around the "Side/Curved" Part of the Cylinder.
This is my main question, but it would also be helpful to know how to…

Name
- 2,037
- 3
- 19
- 28
-1
votes
0 answers
Best approach for slicing texture images for raycasting
I'm working on a 2D (pseudo-3D) raycaster which operates on a 2D tile grid.
For each ray sent out, the screen draws a rectangle with a certain height depending on the distance between the camera and the wall the ray collided with (like Wolfenstein…

Zoler1337
- 108
- 5
-1
votes
1 answer
How to export glTF file with ambient occlution?
I am using group nodes (input and output). But export in blender3.4 GLTF file.The ambient occlution file doesn't export with gltf file.
enter image description here
enter image description here
This Ambient occlution texture connect to GLTF Material…
-1
votes
1 answer
Camera projection onto spatial map with Hololens 2
I am trying to project the recorded image (with some modification of the color) on to the spatial map generated from the 3D view of Hololens 2 device portal.
I recorded the image with the corresponding CameraToWorld matrix and Projection Matrix
for…

donaldc
- 1