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

learn more… | top users | synonyms (1)

6
votes
4answers
1k views

What's the difference between displacement mapping and height mapping?

What's the difference between displacement mapping and height mapping and what is the connection to adaptive tessellation?
8
votes
2answers
664 views

What are some ways to texture map a terrain?

I'm working with XNA on a 3D Game, and I'm trying to have a proper and nice environnement. I actually followed a tutorial to create a terrain from a heightmap. To texture it, I just apply a grass ...
2
votes
1answer
522 views

RTS Voxel Engine using LWJGL - Textures glitching

I'm currently working on an RTS game engine using voxels. I have implemented a basic chunk manager using an Octree of Octrees which contains my voxels (simple square blocks, as in Minecraft). I'm ...
0
votes
0answers
33 views

How to create a map-like (clouds) texture [duplicate]

If you place a map of the world on a sphere, it will look like the image is continuous. Basically the left end of the image is sort of a continuation of the right end. You won't be able to see any ...
0
votes
1answer
35 views

Using texture() in combination with JBox2D

I'm getting some trouble using the texture() method inside beginShape()/endShape() clause. In the display()-method of my class TowerElement (a bar which is DYNAMIC), I draw the object like ...
0
votes
2answers
198 views

Normal map applied as diffuse textures looks wrong

Diffuse textures works fine, but I am having problem with normal maps, so I thought I'd tried to apply the normal maps as the diffuse map in my fragment shader so I could see everything is OK. I ...
2
votes
1answer
200 views

Masking OpenGL texture by a pattern

Tiled terrain. User wants to build a structure. He presses build and for each tile there is an "allow" or "disallow" tile sprite added to the scene. FPS drops right away, since there are 600+ tiles ...
1
vote
1answer
1k views

OpenGL ES 2.0. Sprite Sheet Animation

I've found a bunch of tutorials on how to make this work on Open GL 1 & 1.1 but I can't find it for 2.0. I would work it out by loading the texture and use a matrix on the vertex shader to move ...
0
votes
2answers
91 views

Need to know the origin and coordinates for 2d texture and 2d/3d vertices in webgl

Long story short, I know my coordinates are off and I believe my indices might be off. I'm trying to render a simple 2d rectangle with a texture in webgl here's the code I have for the vbo/ibo: ...
1
vote
0answers
121 views

Bad texture on model with different GPU [closed]

I have some kind of distortion on the texture of my 3D model. It works perfectly well on an AMD GPU, but when testing on a integrated Intel HD graphics card it has a weird issue. I don't have a ...
0
votes
1answer
75 views

Texture errors in CubeMap

I am trying to apply this texture as a cubemap. This is my result: Clearly I am doing something with my texture coordinates, but I cannot for the life of me figure out what. I don't even see a ...
1
vote
1answer
1k views

How to use multiple textures in OpenGL ES 2.0?

I am working in OpenGL ES 2.0. I load two png images as my textures with the libSOIL. I need to use one of them as the texture for the background and another one as the texture of a rotating cube. ...
2
votes
1answer
789 views

Best practices of texture size

I wanted to know how should I determine a good texture size ? Currently, I always create UV texture that are 1024x1024px but if I create for example, a big house with a 1024px texture size, it will ...
2
votes
1answer
269 views

“exception at 0x53C227FF (msvcr110d.dll)” with SOIL library

I'm creating a game in C++ using OpenGL, and decided to go with the SOIL library for image loading, as I have used it in the past to great effect. The problem is, in my newest game, trying to load an ...
2
votes
1answer
297 views

Multiple texture coordinates per mesh?

So far I've used the same texture coordinate for both the normal and diffuse textures on a mesh, yet when reading the Assimp documentation ...
0
votes
1answer
401 views

Having a problem with texturing vertices in WebGL, think parameters are off in the image?

I'm having a problem texturing a simple rectangle in my WebGL program, I have the parameters set as follows: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, textureImage); I'm ...
8
votes
2answers
422 views

How can I implement a scanline effect?

I am working on an old-school platformer in libgdx and I want it to have a "scanline" effect, like this: My first attempt was to make a little texture and draw it on a full-screen quad. I used two ...
2
votes
1answer
121 views

What's the difference between Textures and VertexTextures in XNA?

The GraphicsDevice class of XNA has the properties Textures and VertexTextures. What is the exact difference? I don't really understand what MSDN tells me about this. I usually use Effect parameters ...
2
votes
1answer
281 views

Resource management

I've come across a strange thing in DirectX 11: I'm trying to implement large scale volume visualization engine. My approach is like this: if the volume is HUGE (could not fit to GPU memory ...
2
votes
2answers
705 views

OpenGL texture on sphere

I want to create a rolling, textured ball in OpenGL ES 1.0 for Android. With this function I can create a sphere: public Ball(GL10 gl, float radius) { ByteBuffer bb = ...
1
vote
2answers
287 views

Error while reading TGA file and doing Texture Cube map

In my program, i read a TGA file with a function like this: char* LoadTGA(char* filename, int* width, int* height, int* bpp); As you can see, this function: return a char array of image data ...
4
votes
2answers
1k views

LibGDX stretching 2d graphics

I have a problem with stretching sprites in LibGDX. I have one png file for the sky in the game (1 x 1000px) and I want to render it 1000 x 1000px sprite.setSize(pixelWidth,pixelHeight); I want to ...
0
votes
2answers
673 views

How can I load textured objects in jMonkey?

I am working on a project in jMonkey, and I managed to create boxes, spheres and such objects, and load textures form image files, but when I converted a Blender file to .j3o and imported it in my ...
0
votes
2answers
267 views

LWJGL texture bleeding fix won't work

I tried a lot of things to fix texture bleeding, but nothing works. I don't want to add a transparent border around my textures, because I already got too many and it would take too much time and I ...
3
votes
1answer
152 views

Rasterization Rules and States

This thread directly concerns lightmap generation; however, indirectly, the rasterization of polygons by the GPU. I am currently generating lightmaps using a pixel shader. To the shader I send 3 ...
1
vote
1answer
155 views

generating complex maps in xna

I just wonder how does these maps like in this video are made. http://www.youtube.com/watch?v=TM6kcOau5oQ I was looking for some tutorials on the web but no success. All I found was some 2D Vectors ...
2
votes
0answers
114 views

1:1 mapping of texels to pixels with DX11 and multisampling and linear interpolation

Is it possible to get a 1:1 mapping of texels to pixels on a multisampled target in DX 11 with interpolation? It seems to me that the texture coordinate used in the shader is always one of the ...
-1
votes
1answer
158 views

Texture doesn't draw correct

I'm writing a game using SFLM and Opengl but when I create a terrain i got some OpenGl problems. I use heightmaps to generate a terrain but when I load the texture on it the texture is not correct ...
3
votes
2answers
1k views

What does changing GL_TEXTURE_WRAP)_(S/T) do?

I am working through some beginner OpenGL tutorials, and the current one teaches how to apply a texture to a simple rectangle. The tutorial states tells me to set the texture parameters ...
0
votes
1answer
1k views

SDL2 render to texture support

I'd like to use the function int SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture) in my 2D game. At this point I am using only the SDL 2.0 API, and using openGL seems overkill to ...
2
votes
1answer
232 views

What's the proper way to set up texture atlas in Unity 3D?

I am using Unity3d (free) to make a game with user-defined content (i.e., load in a map, it'll build the level for you). Everything is working as expected, except for the rendering. Note the ...
-2
votes
1answer
2k views

How can I import a Google Sketchup model with textures?

I'm using Unity 4 and trying to import a SketchUp Model into Unity and other Engines - but I can't get it to import correctly. Can anyone help me out?
2
votes
1answer
139 views

Light is not spreading evenly

I am using SunBurn for lights and rendering, when i create sceneobject in code, effect is like this see in this light is in the middle so sceneobject in middle is well lit and as we go to corner ...
0
votes
1answer
1k views

Why would one bind several textures to the same OpenGL texture unit?

This OpenGL documentation article says you can bind 4 (=several) textures to texture units 0, 1, etc. This OpenGL documentation article too. I found in this Stack Overflow answer an example of why it ...
1
vote
1answer
148 views

UV Coordinates of “curve” (or “bend”)

I am looking for some tutorial or equation how to map texture from square to "curve" or "bend". (Example on image below) I have tried to convert coordinates of unit circle to UV, but that gives me ...
1
vote
2answers
2k views

SFML: Generate a background image

I want to generate a background, which is used in the game, on every instance of the game based on certain conditions. To do so, I'm using a sf::RenderTexture and a sf::Texture like this: ...
1
vote
3answers
604 views

Confused about DXT/DDS compression and color depth

I have done my research on DDS/DXT compression, and the information is kind of "everywhere." It is rather difficult to even find good, organized, sensible information on color depth. However, it is ...
12
votes
2answers
1k views

Should I be using spritesheets, because of or despite of my vast number of images?

I am developing a 2D game, and I have a lot of sprites. I used 3D animations and models to render into 2D, to give them that "Fallout" or "Diablo" look to them. It is also easier than drawing by hand, ...
0
votes
1answer
441 views

Texture Won't Load in OpenGL

I've started trying to make a 2D game in C++ using OpenGL, and I'm using SOIL as the imaging loading library. The problem is, I've been trying to get a simple 64x64 image of a red square to open and ...
0
votes
0answers
69 views

Slick - create new texture from part of existing texture

Say I have the following image: I want to resize this texture, so I can have resizable buttons with a texture. Now, as you can't repeat a certain area of an image in OpenGL, I have to create a new ...
2
votes
2answers
610 views

OpenGL - drawElements 2D imposible z-sorting (textured)

I am creating a 2D program in OpenGL 3.2 Now to render what I do is have a VBO for each texture and add the elements of the objects that use that texture to this vbo. Now as you know the order you ...
3
votes
1answer
731 views

Sprite sheet textures picking up edges of adjacent texture

I have a custom sprite routine (openGL 2.0) which uses a simple sprite sheet (my textures are arranged horizontally next to each other). So, for example, here is a test sprite sheet with 2 simple ...
3
votes
1answer
276 views

Painting terrain with a selection circle

I don't mean putting a circle under a unit like done in an RTS, that's fairly simply done with a scenegraph(-like structure). What I'm referring to is selection circles for things like Area of Effects ...
3
votes
1answer
74 views

Is point texture filtering the same as nearest?

Is point texture filtering the same as nearest (different names for the same technique)?
2
votes
1answer
145 views

Generating mipmaps for volume texture

Does texconv from DirectxTex support generating mipmaps for volume textures? If not what are the other alternatives? I am asking because I have tried to create the mipmaps by using textconv.exe -m 3 ...
-3
votes
1answer
159 views

How to shoot lasers from Ship(XNA)?

I want a code which allows me to shoot multiple lasers from my Ship. Its a 2D game and the laser TEXTURE2D moves in a straight line. My Solution: I use List<> class of my Laser Class. ...
0
votes
1answer
140 views

Is there a need to set the parameters again when updating a texture?

Suppose that I'm developing the class COpenGLControl here in code guru to use it for showing a 2D texture in an MFC CPictureControl. and after applying some filters on the image, I will update the ...
5
votes
5answers
743 views

Why don't we use the whole color depth for normal maps?

All normal maps I've seen are pinkish or bluish. So it seems like only a short color range is used. Why do game developers give away so much precision? Update: The short answer is, that technically, ...
8
votes
3answers
465 views

Why is it possible to encounter a texture coordinate greater than 1 or less than 0

I'm studying a text about texture mapping and in the preparing to draw session, I read: Define the texture wrapping parameters. This will control what happens when a texture coordinate greater than ...
1
vote
0answers
176 views

Connecting smoothly N textures on terrain

I started to create my own terrain in a quite common way, just like this: http://www.rastertek.com/tertut18.html . It is infinite and automatically generated (by using coherent noise). The areas are ...