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

learn more… | top users | synonyms (1)

0
votes
1answer
29 views

Copying a texture's colors to a new texture to create a new sprite

Let mySprite be some .PNG sprite: Texture2D tex = mySprite.texture; Sprite sprite = Sprite.Create(tex, new Rect(0,0,tex.width,tex.height),new Vector2(0.0f,0.0f),1.0f); The resulting sprite can be ...
0
votes
0answers
17 views

Scaling UDK landscape material

I have been following some guides off this site, more specifically the "Random Tiling Masks: Randomize the texture mapping to reduce tiling" section and I have run into an issue regarding scaling of ...
0
votes
0answers
11 views

How can you duplicat folders and not share old dependencies in Unity?

I have a folder with some prefabs, materials, textures, FBX, etc. My Prefabs refers to FBXs and Materials in this folder. Can I clone this folder in a way that it will save those local dependencies? ...
0
votes
0answers
64 views

Garbaged textures on OpenGL [closed]

I've been struggling with this for a long time, and now I've hit a dead-end, I have no idea what to do. I'm pretty new to OpenGL (roughly about eight months), and I've been developing an engine for ...
0
votes
1answer
56 views

“_SRGB” suffix for BC texture format doesn't result in sRGB-to-linear correction at sampling

I am working on a 3D engine as a hobby (Direct3D 11). Currently I am trying to implement sRGB -> linear -> sRGB color space conversions via texture formats with "_SRGB" suffix. So, my textures are ...
1
vote
1answer
28 views

How can I fill a Color[] from a Texture2D given a Rectangle in SharpDX?

I used to fill a Color[] using XNA's Texture2D.GetData<T>(int, Rectangle?, T[], int, int) method, but there doesn't seem to be an equivalent overload on SharpDX's Texture2D. Anyone know how I ...
1
vote
1answer
60 views

Design question: best way to model and visualize a long grid of data [closed]

Perhaps some noob questions for a scientific application that you can assist with: I am trying to render a large, evenly spaced grid of data in 2D. The full data set dimensions could be anywhere from ...
-1
votes
0answers
34 views

Incorrect texture applied to triangle

I am trying to draw a certain part of a texture based on data from another texture. A texture is passed into the fragment shader. Its red component contains a value from 0-255 (shader maps it to 0-1) ...
0
votes
0answers
111 views

Bad quality of the sprite in Unity

I need to import a few sprites (background platform and sky) into my game scene but it seems that their quality after importing into Unity is too bad (they are blurred). The original resolution of ...
0
votes
1answer
40 views

Why does changing texture change it for both objects? [duplicate]

I have two identical objects in my Unity scene. When I change the texture of one, the texture is changed on the other, almost as though the first one is a prefab. Why is this happening and how can I ...
-1
votes
0answers
37 views

LibGDX Texture width and height must be powers of two

public class Game implements ApplicationListener{ public static int WIDTH; public static int HEIGTH; private Texture texture; private SpriteBatch batch; public static ...
-1
votes
0answers
61 views

Fixing textures in unity

I have been having problems getting a texture to work in unity. This is what it looks like. The "maze" structure you see in the screenshots is infinitely thin if you look from the top. Does anybody ...
1
vote
1answer
51 views

Should I use textures that are the size of the object?

I've been reading but couldn't find an answer to my question: If I have an object, let's say 30x30. Should I use a texture that is 30x30, 300x300, or even 3000x3000 or should I follow 'the powers of ...
5
votes
1answer
63 views

Texture is black when manually building mipmap

I am trying to manually build a mipmap from a series of images. For the sake of brevity, let's assume the file containing the images I want (from 256x256 to 32x32) have paths file_1...4. What I do ...
0
votes
0answers
30 views

Load different grayscale images into the same texture

I have a series of images loaded as data1 = stbi_load_from_file(file1,&width,&height,&comp,1); data2 = stbi_load_from_file(file2,&width,&height,&comp,1); data3 = ...
1
vote
1answer
35 views

How to deform 2D tileable texture in XNA/MonoGame

I'm looking for a way to deform tillable texture in a 2D game I'm building using MonoGame but I'm not sure how this effect is called and searching the internet for "deforming textures" gives me mostly ...
0
votes
0answers
26 views

How to render many regions from the same texture using UV mapping?

I tried to apply some things that look like a "texture atlas". I would like to load 1 big texture which includes many small textures, my goal is to render each texture separately. I tried to use UV ...
0
votes
0answers
27 views

FPS drop after moved from Textures to TextureAtlas in LibGDX

I've started using LibGDX some time ago and I was making a test project to get used to this library. I've created some images and added them to the assets folder and loaded each image as a Texture ...
1
vote
0answers
66 views

How can I texture a large terrain mesh in OpenGL?

I want to apply a texture to a large terrain mesh in my game. I think that it is just not acceptable to have a gigantic UV map spanning over 4096 x 4096 pixels. What's a better way to apply a texture ...
1
vote
1answer
25 views

texconv produces texture with same size using BC1 or BC4

According to msdn, the BC1 block compression format is for images with 3 color channels and 1 bit alpha channel and the BC4 is for images with 1 color channel and no alpha. Using the same RGBA input ...
1
vote
2answers
113 views

How can rotate a 2D textured quad in legacy OpenGL immediate mode?

I have a texture of a tank, and I want to it appearance on the screen depends on its current direction, so I decided to use rotating texture functions of OpenGL. I followed some advices through Google ...
5
votes
1answer
157 views

How to read a color of a pixel from texture (cocos2d-js)?

How to read a color of a pixel at [x,y] from a texture (in cocos2d-js)?
1
vote
1answer
107 views

Voxel engine/vertexes: how to add more and more different textures during game runtime and change some of the blocks' faces?

It's difficult to ask this, but I'll try. The thing is: I asked before somethings about creating ramps and blocks with vertexes. [I'm using C#/XNA.] Explanation: now I got a chunk that has blocks ...
1
vote
0answers
29 views

How to produce a texture to represent a vector field

I would like to be able to produce a texture that essentially represents a 2D vector field (eg red represents vector {1, 0}. What I would like is to draw a path and the vector at the point on the ...
0
votes
1answer
43 views

Downloading 10 images and storing their data with WWW

I would like to download 10 images, and store their texture data into my list. I don't really know how to do that - I heard that for this you use the WWW class, so I went: List<byte[]> ...
8
votes
1answer
597 views

Why is my custom Texture2D blurry?

Have some WWW object downloading a .PNG image. ((SpriteRenderer)renderer).sprite = Sprite.Create(request.texture, new Rect(0,0,100,100)); My sprite looks fine. Now, let's be a bit ...
3
votes
3answers
55 views

Can you offset the horizontal flip in SpriteEffects XNA?

As the title suggests I need to know if there is a way to offset the SpriteEffects.FlipHorizontally component in the XNA draw method. My reason for this is the sprite I am attempting to flip is not ...
0
votes
0answers
27 views

Rectification of an image by using texture projection

I need to rectify an image with texture projection on GPU (GLSL/shaders), do you have any resources/tutorials/insights to share? I have the 3D pose of the camera that created the image and the image ...
0
votes
3answers
86 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 ...
0
votes
1answer
52 views

Terrain (mesh) textures in Unity - blurry?

I've created a 3D mesh in blender which will be used as a terrain in Unity. Additionaly, I created a 900x900 texture which I'd like to apply as material to the mesh. However, unlike with the normal ...
0
votes
1answer
41 views

Grants a Higher Texture downsized a better quality than a texture with the downsized resolution?

if i use a texture in a game with a resolution of 128*128 for a tile which is actually 64*64 on screen and both textures show the same image just in different resolutions. One in 128*128 and one in ...
1
vote
0answers
29 views

LibgGDX drawing two seperate Textures in FrameBuffer

So I am trying to combine multiple TextureRegions in to one by using a FrameBuffer. This works extremely well when the TextureRegions originate from the same Texture object/file but as soon as I try ...
0
votes
1answer
87 views

2D RGBA texture is gray in GLSL shader

I have a shader to perform LUT coloring of a texture and a c++/c# programs that call it which work perfectly when i use a 1D texture. Since i need to support computers that don't support the 1D ...
0
votes
1answer
122 views

Getting a pixel of Sprite at the cursor position in Unity

Summary: I've been trying to figure out a way to use simple box colliders as a nice and efficient "first pass" collider. For the "second pass", I want to check that the area clicked has an alpha value ...
1
vote
1answer
89 views

Unity3D: terrain object's textures flickering on long distances

I'm making RTS project on Unity3D. I created terrain with Unity's standard Terrain tool, and added textures of grass, mood etc. on it. Then, for creating "man-made" objects of terrain (roads, ...
3
votes
1answer
89 views

Desaturate texture using mask in OpenGL 2

I have a very large texture i am using as background and i want to apply a filter to a small part of it, the "small part" is defined by the alpha layer of another texture i have (which is still ...
2
votes
1answer
85 views

Total Texture memory size iOS / OpenGL ES

My team is running into an issue where the amount of texture memory allocated via the glTexImage2D is high enough that it crashes the app ( at about 400 MB for iPhone 5). We're taking steps to ...
1
vote
0answers
67 views

Making game textures from sample images - legal/copyright question [closed]

TL;DR version: Can I use samples from images online in a commercial game project? Hello, I have been learning to use blender and have gotten quite decent at making models and applying textures, but ...
3
votes
1answer
93 views

How can I animate characters' static-geometry eyes?

Here's a Nintendo example: Specifically, the animation of the pupils seems not to animate the geometry. How is this done?
1
vote
0answers
120 views

Is it reasonable to use a 2D texture as a lookup table in GLSL

I need a lookup table in a shader. The input values would be color values and the output other color values. Something like: uniform float lut[256]; color = vec3(lut[int(color.r*255.)], ...
0
votes
1answer
55 views

How does Texture2D.GetData return coloured pixels?

I'm trying to work out how the pixels are stored in the returned array but I'm not having a lot of luck (and thus my calculations don't seem to be working). I realize that the pixels are stored in ...
1
vote
1answer
95 views

Vertex shader in OpenGL/GLSL - transformation of the interior of a textured quad

I have a LWJGL project and ran into a problem with a vertex shader I wrote. In my scene I am rendering a map whose ground consists of rectangular tiles. On top of that there are other objects (I used ...
0
votes
2answers
184 views

Material tiling and offset in unity

Ambiguity: What exactly is the difference between Tiling the material and Offset of material? Need to do: I need the material to be repeated n times on the object where I need to set the value of n ...
1
vote
2answers
109 views

XNA How to change the sprite texture to white color

as the title, how can i do to take the sprite to white color here is some example, turn to follows image and my game planform is XNA now, and developed winphone game thanks for reading!
0
votes
1answer
268 views

Simple heart container script for 2D game (Unity)?

I'm attempting to create a simple mobile game (C#) that involves a simple three-heart life system. After searching for hours online, many of the solutions use OnGUI (which is apparently horrible for ...
0
votes
2answers
64 views

Best way to detect if vec3 is between vec3(x) and vec3(y) in glsl

As titled I am sampling from a texture and if the color is somehow gray [vec3(.8), vec3(.9)] and an uniform is 1 I need to substitute that color with another one I am not a glsl veteran but I am ...
1
vote
0answers
44 views

HLSL: An array of textures and sampler states

The shader must switch between multiple textures depending on the Alpha value of the original texture for each pixel. Now this would word fine if I didn't have to worry about SamplerStates. I have ...
2
votes
2answers
95 views

Texturing a mesh generated from voxel data

I have implemented the Marching Cubes algorithm to display an isosurface based on voxel data. Currently, it is displayed with triplanar texturing. I'm working with unity, so I have a material with the ...
1
vote
0answers
44 views

XNA HLSL UV Mapping

I was testing my hlsl lighting shader, I've copied it from a tutorial and it works perfectly, but all the meshes in the model needs to have texture coordinate, I guess this is because this part: ...
0
votes
0answers
43 views

OpenGL Textures have distorted colors on some android devices

I am uploading loading images as textures to GLSurfaceView. The resulting textures look perfectly fine on some devices, on others the appear completely distorted. This is what it looks like on a ...