Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
148 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.
7
votes
0answers
346 views

Is there a way to stop caching textures at 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
617 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
240 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
160 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
93 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
344 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
569 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
271 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
171 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
84 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
253 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
200 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
295 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
185 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
370 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
964 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
141 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 ...
-1
votes
1answer
236 views

Differences between textures? [closed]

Me and a small team of people are creating a video game in UDK. As i have heard, the game engine can only go up to 8192x8192px textures. In cry Engine 3, you can go up to about 16K px. Is there a ...
4
votes
1answer
1k views

Problem Implementing Texture on Libgdx Mesh of Randomized Terrain

I'm having problems understanding how to apply a texture to a non-rectangular object. The following code creates textures such as this: from the debug renderer I think I've got the physical shape ...
6
votes
1answer
430 views

Texture coordinate discontinuity with mipmaps creates seams

I just started learning openGL and I am getting this artifact when texturing a sphere with mipmaps. Basically when the fragment samples the edge of my texture, it detects the discontinuity (say from 1 ...
0
votes
1answer
1k views

Rendering Texture Quad to Screen or FBO (OpenGL ES)

I need to render the texture on the iOS device's screen or a render-to-texture frame buffer object. But it does not show any texture. It's all black. (I am loading texture with image myself for ...
2
votes
1answer
166 views

Texturing spherical terrain, seemingly arbitrary distortion

I'm using this algorithm to find texture coordinates on a sphere: Wikipedia UV Coordinates I get the famous seam due to the wrong interpolation, but I also get odd distortions on certain points on ...
1
vote
0answers
80 views

Organize different layers of repeating texture

I'm using Blender for creating assets for a 3D video game (FPS). Particularly i have to create a long wooden fence and i'd like to use one 700*700 texture for the entire fence so different part of ...
3
votes
1answer
169 views

Implement Displacement Mapping: Gaps along seams

I am implementing Displacement mapping using DirectX 11 with its new tessellation stages. Diffuse map and displacement map are generated by xNormal. The result after I applied displacement mapping is ...
0
votes
1answer
339 views

UV mapping: Untextured faces?

Im currently trying to texture a (transparent) cylinder. I want the texture image to wrap sideways around the cylinder but not the top and bottom faces, they are supposed to just stay untextured (so ...
0
votes
1answer
2k views

In Unity3D, try to load a png into a Texture2D in an Editor script and then run PackTextures, but they need Readable flag to be set

I am trying to automatically create a texture atlas from a set of generated png files in an Editor script. The problem is that I can't seem to be able to load a png into a Texture3D without it being ...
0
votes
1answer
191 views

does cocos2d cache texture automatically

I know if we want the textures cached we can use the sharedtexture manager to cache them, but since this is on mobile platform , why don't cocos2d-x just do this for all texture loads ? when creating ...
1
vote
2answers
296 views

Building a tessellated texture

In games like Minecraft the textures such as grass when lined up side-by-side it looks like one big perfect texture. When I make a texture it's never even and you can see the different blocks. How do ...
0
votes
1answer
269 views

How can I draw a small bitmap on a larger bitmap at a particular position? (Canvas / SurfaceView)

I'm building a game that requires additive blending of colours for certain bitmaps. Say I have 4 different types object, there are maybe ten of each type on the screen with each type having a ...
0
votes
1answer
452 views

Computing uv coordinates on a sphere approximated from an octahedron

Right now I'm texturing the octahedron with the formular from wikipedia(Finding UV on a sphere): UV Coordinates Wikipedia That unfortunately leads to heavy distortion right at the beginning, which of ...
1
vote
2answers
297 views

XNA spritebatch.Draw: Which part gets colored by the color parameter?

Which part gets colored and how can I control it? I have a rounded block and my goal is to have the center filled with a certain color chosen by that parameter. Here's the picture: ...
0
votes
1answer
228 views

Ogre: Light not reflecting correctly

In my Ogre 3d scene I have an empty box, and within that there are three small cubes. The camera is also within the box, facing the three small cubes. The user can move and rotate the camera with the ...
1
vote
1answer
195 views

Texture Shaders vs. Pixel/Fragment Shaders?

My question is a simple one. Functionally, practically, and performance-wise, what are the differences between using a D3DX Texture Shader, and using a Pixel/Fragment Shader rendered with a full ...
4
votes
2answers
487 views

OpenGL: Filtering/antialising textures in a 2D game

I'm working on a 2D game using OpenGL 1.5 that uses rather large textures. I'm seeing aliasing effects and am wondering how to tackle those. I'm finding lots of material about antialiasing in 3D ...
0
votes
3answers
632 views

Is it legal to reuse a 3D model as long as it has a new texture?

If I create a 3D model and texture for a client, say a house. Can I reuse that same 3D model, but apply a new texture and then legally use that in my own game? Is that enough of a difference? ...
-3
votes
1answer
158 views

What are some common 3D modeling tools? [closed]

I'm horrible at 3D modeling but I want to get better. Now the problem is that I have yet to find a good program that's easy to use. I want to be able to find one that's not just easy but also not ...
10
votes
1answer
954 views

How to reduce image size without pixelation?

I see lots of games with smooth edges characters and high res images, however when I try to reduce images to say 64x64 for my character I just get a pixelated mess. even if I start with a 64x64 canvas ...
0
votes
1answer
167 views

How can I compute the average color of a texture?

I'm making a mini-map system for my tile based game, and I thought the best way to accomplish this would be the following: At the beginning of the game, I calculate the predominant color of every ...
0
votes
1answer
292 views

How to seamlessly texture a cube in OpenGL

I have been following this site as an intro to OpenGL. After going through the model obj loading tutorial, I wanted to create my own .obj (a cube) as well as my own texture. Following this blender ...
1
vote
1answer
208 views

Size of an image imported with FreeImage

I'm having abit of a brainfart and I can't quite grasp what I'm doing wrong. It's quite simple, I am importing an image with FreeImage (http://freeimage.sourceforge.net/) which has a method ...
1
vote
1answer
75 views

OSX Based Equivalents for Stacking Normal Maps?

I've been looking for an OSX based alternative to the Windows based xNormal and NVIDIA textures tools for stacking normal maps in photoshop. Can anyone recommend something, whether it's a standalone ...
6
votes
1answer
1k views

Mip Maps on 2D Sprite causing black line above. Why is this?

I am new to Unity. I'm trying it out and using Futile for a code-first approach, but still importing textures using the Unity system. The problem I'm having is that when I use mip maps to scale large ...
2
votes
0answers
90 views

OpenGL ES Single Bitplane Texture (or something close)

I'm looking to use a texture to store single bits (or a low number of bits, two or three). This in of itself isn't hard if you're using nearest neighbor sampling with some bit plane unpacking. The ...
1
vote
0answers
358 views

textures and bouncing balls inside a cube [closed]

i have a cube with texture but when i add 3 balls so that they bounce on the walls of the cubes everything seemed to be wrong,the balls are not bouncing in the right directions, i want them to bounce ...
1
vote
1answer
110 views

XNA texture overlay with offset

Is it possible to overlay one texture over another and make them into a new texture? It should also work with an offset. Here's an example: This texture and this texture should make this ...
0
votes
1answer
105 views

Texture not carrying over to game correctly?

I have created my map for my game using 3DS Max. I have then applied textures to the map within 3DS Max, where the textures all show correctly. I export the map as a .fbx file to use within an XNA ...
0
votes
2answers
359 views

XNA texture GetData exception

When using this code: public static Texture2D MakeTexRed(Texture2D tex) { Texture2D drawTex = new Texture2D(Game1.graphics.GraphicsDevice, tex.Width, tex.Height); Color[] data = ...
0
votes
2answers
152 views

Sprites: Are there any tools to scale sprites individually without using Photoshop/GIMP? [closed]

I am using TexturePacker as tool to pack my 2D sprites, it is good but it doesn't provide the possibility to scale individual sprites to a specific scale. I am wondering whether there is any good ...
1
vote
1answer
339 views

Powers of 2 textures in Android 2d games?

I've read a lot about the importance of using powers of 2 png's for textures when using OpenGL ES. However, how does this relate to Google's own documentation regarding the resizing of graphics for ...