A bitmap (raster image) used in a texture mapping process.

learn more… | top users | synonyms (1)

2
votes
0answers
342 views

glFramebufferTexture2D gives corruption with cube map textures

I am using glFramebufferTexture2D with cube map textures but it gives corruption in texture. draw_cube() function works perfectly when i draw that on default framebuffer. GLenum ...
3
votes
1answer
204 views

Texture prefetching in GLSL

I have a fragment shader which needs lots of semi-random access to 32x32 texture patch. Fortunately, the patch is constant for each poly, so there should be no issue storing the whole thing to the ...
0
votes
0answers
11 views

Show 3d object on device live camera in Unity3d for iOS [duplicate]

Possible Duplicate: How to add render able Texture in Unity 3d for iOS How render a 3d or 2d(.jpg or .png )object at device live camera in Unity3d, and this 3d object shouldn't stuck with ...
0
votes
0answers
295 views

How to add render able Texture in Unity 3d for iOS

I want to render an image on texture which should be stuck at one point, not stuck with Camera. I don't know how to accomplish this task because I started unity a week ago but I want to do this task ...
20
votes
4answers
11k views

How to avoid texture bleeding in a texture atlas?

In my game there is a Minecraft-like terrain made out of cubes. I generate a vertex buffer from the voxel data and use a texture atlas for looks of different blocks: The problem is that the texture ...
0
votes
1answer
555 views

Texture will not rotate with gluSphere

I have a gluSphere generated in my display that is rotating, but having a problem with the texture rotating with the sphere as well. So in a nutshell, no matter how the sphere rotates, the texture ...
1
vote
0answers
99 views

Blender 2.6: UV-Matching on Non-Image-Textures

Situation: I want to model a piece of wood in Blender (2.63.0). In order to do this I use a set of Noise and Clouds textures on a brown material. But these textures are warped and shown in the wrong ...
1
vote
1answer
280 views

MultiTexturing by neighbouring points textures

Visual example: I've been trying to understand multitexturing for a while now, I've created a terrain generator but have no need for height just yet and I still want one texture to blend over to ...
0
votes
0answers
205 views

2D Textures are shown through objects in front of it(OpenGL)

I am learning to use pyglet and learning about applying 2D textures to planes in pyglet. When I apply the 2D texture to the plane it works fine. When I make multiple objects with the same texture , ...
2
votes
2answers
2k views

VBO with texture index buffer different than vertex index buffer

I am trying to write my own OBJ importer and renderer in OpenGL (yes, I know, reinventing the wheel) and I found a problem that I don't knwo how to handle. In an OBJ file faces are defined by a list ...
2
votes
1answer
557 views

Distortion of color space in UDK (material editor)

Question Using UDK's material editor, I wish to use a texture as a two-dimensional array of values for mathematical computations (basically, the color components of each pixel in the texture alter ...
2
votes
1answer
95 views

Getting an instance of KX_PolygonMaterial in Blender

I've got a question concerning using Python in Blender's Game Engine. Before I start I want to state that I'm trying to change the color of an object in Blender's game engine. To do this, I'm ...
3
votes
1answer
241 views

XNA windows phone release black textures

i just made a 3d game in XNA for windows phone 7. I build it in release mode on visual studio 2010 and suddenly when I run game there is no textures on models - 2 models are black and one is ...
5
votes
1answer
754 views

How to draw a trapezoid in OpenGL?

The question seems easy, but you simply change vertex positions to match the corners of a trapezoid but it simply fails. I've tried scaling top and bottom edges like this : but when I apply my ...
1
vote
1answer
349 views

Multisampled Texture

i have some doubts with multisampled textures. In fragment shader, how to pass multiple samples? We use glTexImage2DMultisample instead of glTeximage2D. so, how to upload texture data? I want to ...
4
votes
1answer
284 views

How do I get a Model to add a name to it's Texture(s) in the XNA Content Pipeline

I know that a texture's name is not preserved when it's loaded in. I also know that you can give it a name. For example: Texture2D texture = content.Load<Texture2D>("MyTexture"); texture.Name ...
10
votes
5answers
669 views

Texturing an asteroid

I'm trying to texture this asteroid so it looks reasonable. I'm missing something though. Following this tutorial, I got this so far. Now I don't understand the next step: how do you resolve the ...
5
votes
1answer
199 views

Blend multiple regions from same texture atlas

I'm representing terrain in my game as a grid with at each node a composition, for example 100% rock, or 50% grass, 50% soil. I'd like to use this composition vector to blend textures together. I'm ...
3
votes
5answers
840 views

XNA 2D Spritesheet drawing rendering problem

I'm making a tile-based game, using one spritesheet containing all tile graphics. Each tile has a size of 32x32 pixels. The main problem is: when I draw the tile to the screen, if the tile position x ...
6
votes
1answer
650 views

FBO rendering different result between Galaxy S2 and S3

I'm working on a pong game and have recently set up FBO rendering so that I can apply some post-processing shaders. This proceeds as so: Bind texture A to framebuffer Draw balls Bind texture B to ...
2
votes
1answer
464 views

Tutorial on OpenGL texture formats

Looking at the documentation glGetTexImage(), one can see that there are plenty of available texture formats. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, ...
1
vote
1answer
828 views

Unity3D and Texture2D. GetPixel returns wrong values

I'm trying to use Texture2D set and get colors, but I encountered a strange behavior. Here's the code to reproduce it: Texture2D tex = new Texture2D(2,2, TextureFormat.RGBA32 ,false); Color col = ...
1
vote
1answer
148 views

TexturePacker ignores extensions

I'm using TexturePacker in one of my games, though when packing a bunch of textures their extension is kept in the data file. So when I want to find a texture I need to search for "image.png" instead ...
1
vote
2answers
678 views

Making a 2D game with responsive resolution

I am making a 2D game, however I wish for it to be resolution agnostic. My target resolution i.e. where things look as intended is 1600 x 900. My ideas are: Make the HUD stay fixed to the sides no ...
2
votes
2answers
1k views

Splitting a texture atlas into seperate images [duplicate]

Possible Duplicate: How to decompose sprite sheet I'm doing a port of an existing game and the designer no longer has all of the original art; he only has the resulting texture atlases he ...
2
votes
2answers
280 views

Assigning a different texture based on picking

I'm making a game using XNA. I have some simple objects like cube and sphere, and I would like to change the texture of one face of these objects based on picking. That is, when the cursor is over ...
1
vote
1answer
859 views

Image loaded from TGA texture isn't displayed correctly

I have a TGA texture containing this image: The texture is 256x256. So I'm trying to load it and map it to a cube: #import <OpenGL/OpenGL.h> #import <GLUT/GLUT.h> #import ...
2
votes
1answer
269 views

XNA running slow when making a texture

I'm using XNA to test an image analysis algorithm for a robot. I made a simple 3D world that has a grass, a robot, and white lines (that are represent the course). The image analysis algorithm is a ...
1
vote
1answer
291 views

fragment shader with SNORM textures

I want to apply SNORM texture by using GL_TEXTURE_3D as a target, what will be the fragment shader for the same? Also, what should be the data type of texture data?
2
votes
2answers
2k views

OBJ model loaded in LWJGL has a black area with no texture

I have a problem with loading an .obj file in LWJGL and its textures. The object is a tree(it's a paid model from TurboSquid, so I can't post it here,but here's the link if you want to see how it ...
1
vote
2answers
196 views

How to shade a texture two different colors?

To give an example of what I'm asking about, I'll use Saints Row 3 since I've been playing that lately. In that game you can customize your looks and your car's appearance a lot. Your coat can have ...
4
votes
2answers
971 views

Blending textures together, texture fade over / fade in

What is the best way to render a texture overlapping effect? Like in this example: I want either the grass to fade in to the snow texture, or the other way around. No rough edges. Somehow make ...
2
votes
2answers
2k views

OpenGL : sluggish performance in extracting texture from GPU

I'm currently working on an algorithm which creates a texture within a render buffer. The operations are pretty complex, but for the GPU this is a simple task, done very quickly. The problem is that, ...
0
votes
1answer
163 views

OpenGL : Keeping alpha in a render buffer

In my current task, i need to render a texture into a render buffer, in order to work on it (apply special filters) there. The result is then considered a "new texture", which is later displayed. ...
1
vote
1answer
266 views

XNA shield effect with a Primative sphere problem

I'm having issue with a shield effect i'm trying to develop. I want to do a shield effect that surrounds part of a model like this: http://i.imgur.com/jPvrf.png I currently got this: ...
7
votes
1answer
578 views

Spritebatch drawing sprite with jagged borders

Alright, I've been on the making of a sprite class and a sprite sheet manager, but have come across this problem. Pretty much, the project is acting like so; for example: Let's take this .png ...
14
votes
1answer
616 views

Suitability of ground fog using layered alpha quads?

A layered approach would use a series of massive alpha-textured quads arranged parallel to the ground, intersecting all intervening terrain geometry, to provide the illusion of ground fog quite ...
1
vote
1answer
328 views

how to use a mask texture?

A texture pack for a sponza model contains mask textures (black and white). I guess that I should read only a red channel from that texture, right ? I use deferred rendering and for shading ...
1
vote
1answer
224 views

Confusion on HLSL Samplers. Can I Set Samplers Inside Functions?

I'm trying to create a system where I can instance a quad to the screen, however I've run into a problem. Like I said, I'm trying to instance the quad, so I'm trying to use the same geometry several ...
1
vote
2answers
264 views

Texturize a shape of multiple triangles in 2D

This is an example of a shape consisting of multiple points, triangles and eventually a shape: Red Dots = Vector3 (X, Y, Z) or Vector2 (X, Y) If I have a Texture of a certain size, how do I ...
3
votes
2answers
5k views

Unity Android: Truecolor texture performance hit and alternatives for truecolor

After integrating the graphics assets to my application, I noticed that when the textures are compressed they look very bad compared to truecolor. This happens to all the textures and it did not seem ...
1
vote
0answers
179 views

loading a heightmap as texture in shader

I have a height map of 256x256, containing, foreach cell, not only height as a normal float value ( not 0-1 ) and also 2 gradient values ( for X and Y ), also as normal float values ( not 0-1 ). I ...
12
votes
2answers
1k views

Speeding up procedural texture generation

Recently I've begun working on a game that takes place in a procedurally generated solar system. After a bit of a learning curve (having neither worked with Scala, OpenGL 2 ES or Libgdx before), I ...
5
votes
2answers
2k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
3
votes
1answer
1k views

How do I generate mipmap .png and model .obj files for LibGDX?

I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android). I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at ...
1
vote
0answers
59 views

A tool to select points on texture, and obtain 0.0f .. 1.0f UV coordinates [closed]

If there is a need to create about 40 sets of UV coordinates for 40 different images. The sets can have 4 to ~16 UV points. Is there some way to make this easier? A tool similar to Inkscape would be ...
3
votes
1answer
883 views

GLSL custom interpolation filter

I'm currently building a fragment shader which is using several textures to render the final pixel color. The textures are not really textures, they are in fact "input data" to be used in the formula ...
6
votes
2answers
934 views

UV texture mapping with perspective correct interpolation

I am working on a software rasterizer for educational purposes and I am having issues with the texturing. The problem is, only one face of the cube gets correctly textured. The rest are stretched ...
4
votes
2answers
243 views

How do you clean up textures that are too photo-realistic to match the rest of your game assets?

I was browsing for textures online and notice most of it are too photo-realistic and many of them is just photo of real thing. I'm sure there some "cleanup" process for this type of texture using ...
2
votes
2answers
2k views

Dynamic Terrain Texture

I've been looking at a 2D physics game called 'Hill Climb Racing' (Android and iOS) and was wondering how they went about texturing the terrain? I've had a think about it and I've come up with ...