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

learn more… | top users | synonyms (1)

8
votes
3answers
471 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
177 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 ...
2
votes
2answers
176 views

XNA hlsl tex2D() only reads 3 channels from normal maps and specular maps

Our engine uses deferred rendering and at the main draw phase gathers plenty of data from the objects it draws. In order to save on tex2D calls, we packed our objects' specular maps with all sorts of ...
0
votes
0answers
151 views

Cryengine 3 textures display in yellow

I just started to work with Cryengine 3 . But I have a display problem. this is a picture of how I look like inside the game. Notice that the gun is displayed in yellow. This happens also if I put ...
1
vote
1answer
223 views

HLSL Textured Light: outputs only a specific part of the texture (new problem)

Problem 1 I am trying to create a spotlight that instead of giving the circle within the spotlight a simple color, applies a texture to it. However, where the texture is supposed to be is only a ...
1
vote
1answer
297 views

Converting data file of Sprite Atlas from JSON to Cocos 2D

I have an existing Sprite Atlas with its data file in JSON format. How do I convert it for use with Cocos 2D and other frameworks ? I tried poking around in Texture Packer which supports publishing ...
0
votes
1answer
189 views

Monogame/SharpDX Texture2D doesn't hold value

The problem I have discovered is most likely between classes, so I dont really have much option but to post the whole code here: https://www.dropbox.com/sh/smyw9t1ap3by2vd/pBX-aJJ-Qx I have been ...
-1
votes
1answer
196 views

OpenGL: How to map textures to geometry without using filter parameters

following my another question I have studied in the documentations that I should use this procedure : Define the texture filter parameters. This will control what happens when a texture is scaled ...
3
votes
1answer
137 views

How to categorize textures into atlases

I am going to use texture atlasing for the first time in my games, and at first it seemed like a great idea to split textures into atlases by categorizing them by terrain themes e.g ForestTextures, ...
2
votes
1answer
356 views

What happens when a texture is too large for a device

The question is two fold: What happens on a device when a texture is too large for it to handle? Will it crash or simply downsize it? In Unity if I use texture atlases of size 4k and then set ...
1
vote
1answer
66 views

Export object or scene with textures

Is there a way to export or publish some work to a folder so somebody else can open the .max file and does not have to reassign all the textures again? My problem is that i used lots of textures ...
1
vote
2answers
505 views

How to flip a quad (openGL es 2.0 Android / Java)

bHow would one go about 'flipping' a quad i.e., either horizontally or vertically? (Just a single quad, not everything in view). I know how to rotate a quad, this is my rotation method: public void ...
3
votes
1answer
356 views

Creating specular maps for textures

How does one usually go about this? Is this something that generally an artist has to do manually, or are there decent procedural methods (such as with normal mapping where one can look for gradients ...
0
votes
0answers
315 views

Trouble with textures in Unity and Android

I am trying to dynamically create textures of a single (random) color via script. In the Windows Editor it works, but in Android it fails and my Quad gets a magenta color (i.e. missing texture). I am ...
0
votes
0answers
64 views

XNA HLSL no model textures

I am using XNA and HLSL to render all the models in my game, so far there is only one, a flashlight. My flashlight model is a .fbx file type, and it loads the model in the game perfectly fine. ...
1
vote
1answer
2k views

Texture atlasing in Unity

I'm researching new ways to optimize games for better performance. Currently I am working on texture atlasing, which is giving me a hard time. I made the atlas using Texture2D.PackTextures and saved ...
1
vote
1answer
225 views

Why does calling GL.Color4 result in a blank screen?

I am learning OpenGL using OpenTK and VB.NET. I made a square with a texture: GL.Begin(BeginMode.Quads) GL.TexCoord2(0.0, 0.0) GL.Vertex3(-1.0, 1.0, 0.0) GL.TexCoord2(1.0, 0.0) ...
0
votes
0answers
2k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...
1
vote
0answers
72 views

Textures occasionally rendering twice on a particular face [closed]

I am learning how to render 3D objects using webgl (no third-party libraries). I am currently facing a very confusing situation however, where my textures are rendering apparently twice over a ...
3
votes
1answer
301 views

How do I use more than 32 textures in my game?

I'm building a game in OpenGL, relying on shaders as much as possible because python. However, I think I've been working under a misunderstanding of OpenGL since I started. I've abstracted stuff into ...
1
vote
2answers
250 views

LWJGL - If I use VBOs what can I do about separate textures?

So basically this is my problem: I am creating a game that needs a texture for each object. Now I would use a sprite sheet but the textures are different sizes. I am using VBOs and I need to some how ...
3
votes
1answer
311 views

How do I generate a mipmap for a texture loaded from a stream?

I am loading a Texture2d from a stream: public static Texture2D GetTexture(GraphicsDevice dev, System.Drawing.Bitmap bmp) { Texture2D texture; using (MemoryStream s = new MemoryStream()) ...
1
vote
1answer
150 views

Visual artifacts on long distance on plane

I'm making a voxel game in XNA, and have filthy visual artifacts on long distances. I use 2048*2048 atlases. I'm already using mipmaps and 16x anisotropic filtering. I've read this blog post, but ...
-1
votes
1answer
238 views

Storing texture ID's for fast global retrieval [closed]

Simple question: What is the fastest way to retrieve a texture ID, given an enum value? Say I have 100 textures, what would be the fastest way to get one texture ID? Make a texture manager with a ...
1
vote
1answer
735 views

OpenGL FBO, render off screen and texture

I need to do some offscreen render to use the rendered image in something different from OpenGL context (for instance I need to use the image in a QListWidgetItem inside a Qt application). After ...
3
votes
1answer
89 views

Texturing a quad

Drawing a quad with a texture mapped to it with the fixed OpenGL pipeline is one of the easiest things to do in OpenGL. And for some madmaking, mysterious, dumb reason I can't get it to work. I ...
1
vote
0answers
71 views

Directx Texturing problem [closed]

I've recently started exploring Directx 11. I'm almost done the introduction so I started making my own *.obj parser and it works beautifully. I accounted for the right-hand coordinate system of 3ds ...
2
votes
1answer
132 views

Stretching a texture over multiple faces

I have a grid of vertices that I'm using as the ground for my game in XNA. I have a effect file / shader which handles texturing and lighting. Right now I have it so the texture tiles across each face ...
2
votes
2answers
165 views

Are global shader variables slower than texture look ups?

I want to send quite a bit of data to the GPU, the data will never change (or will change very rarely) after it has been created. Is there a performance impact to using global shader variables or ...
2
votes
1answer
597 views

Heightmap and Textures

Im trying to find the "best way" to apply a texture to a heightmap with opengl 3.x. Its really hard to find something on google because tutorials are olds and they're all using different methods, im ...
2
votes
1answer
336 views

XNA 4.0 Multiple Textures on same Vertexbuffer

I have been messing around with XNA for a long while now, but have never really done much more than just copy/pasting tutorials and editing those. Since a bit I have been trying to really start to ...
-2
votes
2answers
257 views

Procedural World Generation [duplicate]

How does Minecraft generate it's texture (ex. which block is grass and which one is stone)?
0
votes
1answer
143 views

Accessing and changing texture data in SlimDX

How can I access and change texture data in SlimDX? I have a Texture2D and a Texture3D and I need to be able to go in and change either a single or group of pixels.
6
votes
0answers
305 views

Is there a way to stop caching textures in runtime?

Procedural textures with substance seem to update very quickly if you turn off caching, modify one exposed variable at a time, modify it frequently, and even then only after you've attempted to modify ...
2
votes
1answer
599 views

How to tell what part of a 3D cube was touched

I am writing a rather simple android game and I am implementing Open GL to draw a 3D cube that spins upon the X, Y and Z axis and I need to know where the user has clicked on the texture of the cube. ...
1
vote
2answers
235 views

projected textures not appear on the “back” of the mesh as well?

I want to create blood wounds on my character's bodies by using projected textures. I've watched some commentaries on games like Left 4 Dead and they say they use projected textures for the blood. But ...
2
votes
1answer
154 views

Resolution independence - resize on the fly or ship all sizes?

My game relies heavily on textures of various sizes with some being full-screen. The game is targeted for multiple resolutions. I found that resizing textures (downsizing) works quite well for this ...
2
votes
1answer
92 views

Why is it when I render a basic cube, my editor's grid changes too?

I have one HLSL file for DirectX11 that only has input layout for color and position. Then another HLSL file for the simple cube that has position, normal and textures. What I noticed is when I render ...
3
votes
2answers
342 views

How do I take a screenshot and blur it?

I want to take a screenshot of the game when it's running, blur it and draw it on the screen. Could you help me with taking a screenshot and blurring it?
0
votes
1answer
541 views

How to texture voxel terrain without triplanar texturing?

How can a voxel terrain (marching cubes) be textured without triplanar mapping ? The goal being to have more artistic freedom. I think, I could unwrap the mesh while extracting the isosurface then ...
1
vote
1answer
259 views

Sprite sheet resolutions and Tile Maps

I am making a game using Cocos2d-x and want to support multiple mobile phone resolutions and sizes. Right now I have made my game sprite sheets set on a resolution of iPad Retina's resolution of ...
0
votes
2answers
167 views

XNA Texture2D positioning problem

I'm currently stuck on something that just seems extremely odd. I'm creating a game with kinect, and when the player performs an action I want to place a texture onto the screen where their hand is. ...
1
vote
1answer
83 views

Images not found in textureregion

Previously I was using simple Texture for sprite based animations, but that did not provide support for images which were not in the power of 2. TexturePacker provides with the ability to load all the ...
1
vote
0answers
242 views

Texture Region drawing issue with LibGDX

I am currently moving my old slick2d project to libgdx. I have created a custom AnimationExt class that extends Animation to which I added a draw method. The Animation's frames are actually ...
0
votes
0answers
192 views

Problem adding texture to VBO with png texmap in OpenGL

I was doing a VBO and able to load all the data of OBJ file but now I have problem adding texture to it. what i did is that I use the slick library to get the texture file and bind it to the VBO ...
1
vote
1answer
272 views

Workaround for reading and writing same texture?

To apply post effects, it is often needed to read the preliminary image, perform computations on its pixels and store the result in the same texture again. For example, think of a tone mapping or ...
1
vote
1answer
184 views

SharpDX - How do I write multiple streams to Texture2D?

I'm working on a 3D map that is cut as a simple grid of textures. The idea is to draw only one object with all those textures, instead of having a tile object for each of them. Correct me if I'm ...
4
votes
1answer
349 views

How to optimize SpriteBatch usage?

From what I understand, SpriteBatch's purpose is to batch as many draw operations to send to the GPU. Each batch can handle one texture at a time, and changing SpriteBatch context/texture is ...
1
vote
2answers
879 views

How do I use TextureRegion?

I can't understand how to use texture region. I have a png file which has images (sprite sheet) and I must "extract" every image I want. From here it just says TextureRegion(texture, 20, 20, 50, ...
1
vote
2answers
138 views

NPOT texture and video memory usage

I read in this QA that NPOT will take memory as much as next POT sized texture. It means it doesn't give any benefit than POT texture with proper management. (maybe even worse because NPOT should be ...