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

learn more… | top users | synonyms (1)

1
vote
1answer
117 views

Textures created with Photoshop show up with a white border

All of a sudden, I started having this problem. I've used libGDX + Photoshop before and never had this problem. One of my textures is showing up with a white border/glow around. The texture is the ...
0
votes
1answer
54 views

Draw a Texture to fit a rectangle

I would like to draw a texture in a rectangle that is smaller than the texture, normaly the texture will be scaled to fill the rectangle, which results in a squished image. I want to draw it to fit. ...
3
votes
1answer
65 views

Maya/Unity - See through models

I've recently modeled my character inside Maya; here's an image. The first thing I noticed whilst creating my model is that the models could be seen through source 1, after doing a little research ...
2
votes
2answers
137 views

How to display multiple textures with OpenGL without a texture atlas

I tried to dig into OpenGL a bit to use in 2D games (mainly because of shaders). There are multiple tutorials out there showcasing how to display and blend textures, and that's fine. But i haven't ...
0
votes
0answers
82 views

Stretching or distortion of texture on 1 face

Trying to master basic texturing using Substance Painter in a MODO to Substance Painter to Unity workflow.In the attached image you can see some pixel stretching along 1 face.(click to zoom in) The ...
1
vote
0answers
137 views

Box2d - Texture lagging and flickering

I'm having issues with texture rendering in my game. I've done a lot of research and repeated the same steps of tutorials over the internet to render and update Sprite positions properly. Somehow, ...
1
vote
0answers
32 views

How to set a specific face's texture color in Unity?

First off, let me describe my situation... So I'm building a voxel engine based on this tutorial. I'm using my own texture tilesheet. Most of the tiles have their own color except grass, leaves, and a ...
2
votes
0answers
75 views

Texture gets blurry when moving Box2D body

I'm having this issue that is very annoying. Somehow the texture of the player body is getting blurry and leaving a slight trail with its colors when moving it. The interesting fact is, this only ...
0
votes
1answer
89 views

OpenGL texture 2d array won't render with depth > 1

Below code uploads my texture memory that's described in the passed parameters. When 'vPixelData' only holds 1 item/texture it is rendered properly, but once there's 2 or more nothing shows up. ...
0
votes
2answers
72 views

Using sourceRect or cropping out a Texture 2D to draw? MonoGame/XNA

I was wondering what is the best way to draw textures (for performance). Using the sourceRectange in the spriteBatch.Draw() call and just draw the whole spriteSheet, or crop out every texture on the ...
0
votes
0answers
59 views

How to make a texture not stretch?

I have made two textures in Photoshop. I applied one of the textures to the sides (one to each side, in the Unity editor) and the other one to the top and bottom sides. However when I extend the ...
0
votes
1answer
586 views

When should I set a texture as a shader resource in order to read it?

I'm writing a Direct3D 11 HLSL shader with SharpDX. What I want to do is write the depth to a texture in one pass and read it in the next one. After declaring the texture, do I have to set the depth ...
3
votes
1answer
62 views

How do I control texture appearance based on game play events?

In an FPS I am developing, I am procedurally altering the appearance of textures based on game play events, and would like to know if the way I have implemented this was a good idea. Right now, on ...
0
votes
0answers
48 views

Wrap Mode: Scale and Position Anywere

I am trying to write a shader in Unity that allows me to place my texture anywhere on the UV. Picture this for a second, if you add a texture on a square plane, the texture gets either stretched to ...
0
votes
1answer
58 views

C++ OpenGL More textured objects equals less FPS

So I'm creating a game engine with many features, last time I focused on textures. When I finished implementing some new code (Made by myself) I created new Entity with texture, and it was working ...
1
vote
1answer
183 views

Monogame scale/resizing texture without stretching the borders

I would like to scale or resize my texture2d but when I do it, the texture border becomes stretched. Here's an example : This is my original texture And this the texture after I change the Scale: ...
1
vote
1answer
130 views

How can I make terrain texturing look detailed both close-up and far away?

I attempting to make my game have very detailed textures, and in general look pretty. However, I'm having some issues with that. Let's take a look at a rock texture close up: Picture. As you can see,...
1
vote
0answers
42 views

Awesomium custom surface scroll

I have a custom Awesomium::Surface implementation, and I need to create a Scroll function for it. The function asks me to manually move some pixels of my texture by the indicated X and Y offset. How ...
0
votes
2answers
303 views

libgdx texture edge blending problem

I have two completely white bitmaps here: They're there, trust me. When I put one on top of the other and scale them down with TextureFilter.Linear I get this: How do I get rid of the dark ...
1
vote
1answer
133 views

Drawing texture with smaller size results in pixelated image, even after applying filter

Can someone please help me resolve this issue. I've tried searching myself and the common answer suggested is to use a TextureFilter. I've tried doing that multiple times but nothing works. My png ...
2
votes
1answer
199 views

Libgdx problem while converting TextureRegion to Pixmap

I'm developping a Tile base game where I have to generate transition tiles. To do so, I have a method that generate those tiles from 2 existing one and 1 "filter tile". I use this method to make a ...
0
votes
2answers
436 views

Speed up loading of png files (used for textures) in Android OpenGL Game

My game has a few texture atlases that need to be loaded (in my XHDPI folder they total 3.49MB) and on a top-end device they don't take that long to load, however on a low-end device they seem to take ...
2
votes
1answer
148 views

LibGDX: Do I have to dispose a texture if I load it from AssetManager?

AssetManager manager = new AssetManager(); manager.load("texture1", Texture.class); manager.load("texture2", Texture.class); manager.load("texture3", Texture.class); //And so on... And then I load ...
1
vote
1answer
57 views

MonoGame, sprite to rectangle

I'm bucking the trend and working with MonoGame in VB2015, please don't tell me how brilliant C# is and how I ought to learn that, I really can't be bothered, and all the }}{}{{{}{ drives me insane!! ...
4
votes
1answer
90 views

Should texture regions sizes be power of two?

Is it advisable for my individual texture regions inside this texture to be power of two, or that won't make any difference? I've read on several places that it's recommended to use power of two ...
2
votes
1answer
722 views

LWJGL SlickUtil Texture Binding

I am making a 3D game using LWJGL and I have a texture class with static variables so that I only need to load textures once, even if I need to use them more than once. I am using Slick Util for this. ...
1
vote
1answer
148 views

Seams between tiled textured cubes

I've created a textured cube in Blender, which I have uv-mapped like this: The tiles are 256x256, and I've mapped the coordinates exactly at the edges (e.g. x: 256, y: 512). I then export my model ...
0
votes
1answer
81 views

How to map square texture to triangle?

I want to find the texture coordinates for point P. I have the vertices of the triangle and their corresponding uv coordinates. The numbers in the little squares in the texture represent color ...
0
votes
0answers
122 views

Cubemap texturing issue D3D11 (C++)

I have a texture problem with the cubemap I'm rendering and can't seem to figure it out. I've generated a cube map with direct x's texture tools and then read it using ...
-1
votes
1answer
124 views

Which Sprite would be rendered out of two overlapping sprites in a 2d world?

For example, in a 2d setting, I have two sprites(one of green color and other of blue) of same size and y-axis and are at some distance apart from each other in x-axis. If there distance is gradually ...
0
votes
0answers
40 views

Difference between sprite and texture? [duplicate]

Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture? I read this comment on the ...
0
votes
1answer
80 views

Automapping of the noise texture onto 3D model

I want to apply kind of noise/dust texture to objects so it would look good, and make it without having UV mapping in models. This is because I want to have a possibility to apply this to any objects, ...
1
vote
1answer
142 views

Texture Packer - Any way to make it combine intelligently

I am making a Pokemon Clone, using libgdx. I have the different types of sprites: e.g. Back, front, back shiny, and front shiny. The current way the Texture Packer combines the textures seems to be ...
0
votes
1answer
54 views

Opengles 2.0 multi Textures fade out one by one

I have multi textures, A was drawed on top of B, B was on top of C ...., ( like Picture 1) .I want to fade out A first, then B will appear and fade out either... But when A fade out, background color ...
4
votes
1answer
817 views

How to make (or where to get) a half-sphere mesh that textures properly?

I'm making a game in Unity that involves lots of spheres. Said spheres will have lighting applied to them, but will also be viewed from only one camera angle. Right now, the full spheres look ...
0
votes
1answer
36 views

XNA Texture2D Copy Error

I have a static class that I use to build a 3d character and render the results to a RenderTarget2D which I then return. I'd like to store the results for later use so I need to make a copy of the ...
1
vote
1answer
86 views

Why loading ~250mb of compressed texture data spills Out of memory error on Windows

I am making SDL2/OpenGL 2D game for Windows with a lot of pre-rendered sprites. When testing on my laptop I got SDL_Surface creation failed: out of memory error during loading assets. Windows' ...
7
votes
2answers
1k views

Xna: Texture2D from a png file

I'm making a tile based game, and I'm working for support of tilesets. I'm trying to make it so that a Texture2D is set as a chosen PNG file. I can do this with no problem f I load the image into the ...
3
votes
4answers
378 views

Optimizing Texture Text Rendering?

I have an implementation currently that stores each letter as it's own separate texture, usually only a couple pixels in width and height. So this has some problems as i am unable to do a batch render,...
8
votes
3answers
1k 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
94 views

Scale texture at runtime in unity

I need to scale the texture in unity3d.In unity we are able to adjust the scale using the option in the toolbar How will I scale the texture at runtime using the mouse pointer. the texture should ...
0
votes
1answer
93 views

Texture being stretched when using D3DTADDRESS_CLAMP

I'm trying to create a skybox using a cube and using one of this textures: http://forum.unity3d.com/threads/mundus-skybox-pack-01-released.202748/ I've got it working well, but I noticed there are ...
1
vote
0answers
43 views

The new android studio? [closed]

I got the new android studio, and I noticed one thing when creating a new activity. The layout that corresponds with the java for the activity is made twice, once as a content: This new layout ...
2
votes
1answer
92 views

Unity procedural textures

I'm wanting to have an object that does random animation in Unity, within the object. Basically, I want a floor that has lights that go through it. I'm trying to figure out exactly what is the best ...
1
vote
1answer
89 views

Different screen sizes? (landscape)

I want to make a separate landscape layout for each size of my original layout I have activity_main.xml. I have adapted it to be able to fit multiple screen sizes: Now, I want to create a ...
2
votes
1answer
89 views

Comparing the images

I have a drawable, which I want to compare to. I created a drawable object with it, and when I log it with toString, I get: android.graphics.drawable.BitmapDrawable@41f95548 I am randomly selecting ...
1
vote
1answer
1k views

3ds max render to texture in PNG

Using 3ds Max 2012, I've been able to use the "render to texture" function to successfully bake my lighting. The only problem is that these image files are always output to TGA files. I need PNG ...
0
votes
0answers
25 views

Layout is different?

I know that layouts can look different on different screen sizes, but I didn't take that into account when I made this layout. So, it is designed for normal screen size, by default, and my phone ...
0
votes
0answers
53 views

SketchUp Models Not Rendering Correctly In Unity

I needed to create a city so I downloaded an asset "Buffalo City 1980" .skp file, opened it in SketchUp, exported it to .obj (worst output), .fbx and .dae (much better). The collada file at least ...
4
votes
1answer
446 views

Can instantiated objects have different material/texture?

While I have some experience with simple 2D games, I am new to more process-demanding 3D games. One basic question that has been concerning me recently and for which I am having difficulties to find a ...