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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

Issues displaying images behind an inactive scrollpane

The background texture is only displayed when the scrollpane is scrolling, then it fades out to black. The text that is drawn displays fine in all cases. I don't know why this is, or how to fix it. ...
0
votes
0answers
32 views

WebGL - Luminance textures from JPG images

Is there any way to create a WebGL texture with Luminance format from JPG image? JPG images have 3 color channels and luminance texture has only one channel. The problem is that gl.texImage2D can't ...
0
votes
2answers
51 views

How to draw a textured 2D square using OpenGL

I am attempting to get started using OpenGL, and have learned how to open a window and draw basic shapes. However, I do not know how to texture them and have been unable to find any tutorials on how ...
0
votes
2answers
55 views

XNA - Card Game - 3D vs 2D vs Primitives [on hold]

I'm starting a new project in XNA which will be a card game. What is the best way to implement my cards? Since I want to rotate these, they'd have to be somehow displayed 3D. The game itself will be ...
1
vote
0answers
28 views

Lag when drawing single Texture multiple times in libGDX [closed]

I am building a game where you are basically drawing little dots on the screen with the help of the accelerometer. I am using a single instance of an Actor where I store the coordinates that needs to ...
0
votes
1answer
20 views

Texture2D.SetData Method Overload

Been reading up on various methods in the XNA framework, and found this one. I've done some Google searching, but I can't seem to find any information on how to use this particular method overload. ...
0
votes
2answers
82 views

32 bit or 16 bit textures

I'm trying to build some 2d character with Photoshop and Spine. By now, I have created some of my characters using 16 bit color depth images in Photoshop. Now, I wonder whether I have to use 32 bit or ...
2
votes
1answer
95 views

How do I change a Unity 4.6 Sprite's textureRect at runtime?

I'm using Unity 4.6, and I've made a sprite like this: AtlasFrameData frame = _testAtlas.GetFrameByIndex(0); Rect spriteRect = new Rect(frame.Position.x, frame.Position.y, frame.FrameSize.x, ...
0
votes
1answer
75 views

minecraft mapping from tibia OTBM file

I am new to minecraft modding but i program for a living and it looks quite simple to get around. I have this fantasy and a quick internet search shows im not the only one. For those of you who do not ...
0
votes
1answer
19 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
19 views

Missing texture coordinates for channel 0 Fbx and XNA 4.0

I'm getting this error while trying to load a model in XNA 4.0 : Error 2 The mesh "transform1", using SkinnedEffect, contains geometry that is missing texture coordinates for channel 0. The model ...
6
votes
4answers
182 views

Keeping sprites nice and pixelated

How do I keep the sprites in my game nicely pixelated on screens of all sizes and resolutions? I use nearest-neighbor texture filtering when resizing pixels, but this works well only at really high ...
0
votes
1answer
31 views

Texture organization and budgeting for a HD Sprite Based Game [closed]

I've been making a game that features 2 traditionally animated playable characters, hd backgrounds, props, and extra special effect animations. Things have gone well so far, but I have a few questions ...
1
vote
1answer
58 views

XNA: “TextureCoordinate0” missing, but I'm not using textures

I'm trying to create a voxel game using XNA, but I'm getting a somewhat bizarre error when calling DrawIndexedPrimitives(): InvalidOperationException was unhandled The current vertex declaration does ...
0
votes
0answers
24 views

How to evenly add textures to objects in Three.js?

I'm trying to add simple textures to my game in Three.js but I can't figure out how to evenly map textures to differently sized objects. This is how my textures look at the moment: The textures ...
1
vote
0answers
52 views

How do I fill a shape with a texture in Libgdx?

I am making a 2D racing game. I want to fill the area of the ground object with a texture. I have the shapes of the ground (a Box2D shape). If I make images of the ground with textures, it uses a lot ...
0
votes
0answers
23 views

Libgdx: ModelInstance texture is not rendered on Java8

I have project based on opengl, libgdx framework. It's impossible I think, but when I switch my project from Jdk1.7 on Jdk1.8 I have problem with rendering model's texture. I have no idea how language ...
1
vote
0answers
71 views

How can I use a texture as a font in Unity3D

I am making a game in unity and I am trying to make a custom font for showing numbers. I created a png with the numbers, turned it into a material and added it to a custom font object. I set up the ...
0
votes
0answers
47 views

Flickering Textures

I have downloaded an FBX and its textures and imported them into my project. The problem I have is that the textures are flickering very much in my current scene whenever I move the mouse. I have ...
0
votes
0answers
46 views

Update DirectX 11 Texture Created in Unity Asynchronously in the Native (c++) Plugin

Sorry for the long question :D tl;dr version :) Is it possible to update DirectX 11 textures created in Unity asynchronously in a native plugin (C++)? I've written a plugin that retrieves data from ...
0
votes
1answer
90 views

NGUI Texture Background Font of Sprite

I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
0
votes
1answer
50 views

My texture blends into one single color (DirectX11)

First thread on gamedev stackexchange. I am currently creating a cube with a single texture on each side. I got my cube up and running. But when I apply my texture, I get this: It blends the ...
1
vote
0answers
40 views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
0
votes
0answers
33 views

Does Unity's “Compression quality” affect ETC2 compression?

In Unity I am using "Advanced" texture options on Android with ETC2 8-bit compression. There is an option for "Compression quality" as described here: ...
0
votes
0answers
46 views

When camera moves the textures move and rotate

I recently followed the tutorial at PaulsProjects on shadow mapping. After finishing the tutorial all of my textures seemed to have vanished, then I moved my camera and the texture reappeared. But the ...
1
vote
2answers
186 views

How do I choose an optimal texture size for a mobile Unity game?

I am developing a 2D game with Unity2D for Android, iOS, WebPlayer and maybe for desktop computers. I think the working resolution of my game is 1280*800. How do I choose the optimal size of ...
0
votes
0answers
26 views

Sprite framework binding multiple textures

In an attempt to batch render as many quads (sprites) as possible, I'm instance rendering a single unit-sized quad and passing in a buffer of per-instance data that includes width/height, texture ...
1
vote
1answer
48 views

Is it possible to look up a texel from a texture in GLES2 GLSL framgent shader without using sampler?

Is there some way I can directly access texture memory from fragment shader in GLES2 GLSL? I don't need the sampler to be involved since I am just using it as a look-up table.
1
vote
0answers
28 views

Is it possible to use unnormalized texture coordinates from a GLES2 GLSL fragment shader?

I want to look up a texel from my GLES2 GLSL fragment shader using un-normalized texture coordinates (0-w, 0-h instead of 0-1, 0-1). The reason is that this texture is used as a look up table and I ...
0
votes
1answer
47 views

Android OpenGL and non premultiplied textures

As I understand it; by default all bitmaps will will get the alpha channel premultiplied in Android if loaded using BitmapFactory. My setup: I have a 32bit bitmap(.bmp) where the alpha channel has a ...
6
votes
1answer
2k views

Why do my images take 200 MB of RAM when they are ~20KB on disk?

I am creating an Android game using libGDX. When I load my nine images it takes 200 MB of RAM. But the images are 10 to 17 KB each. Why the discrepancy? Here is where I create textures from those ...
0
votes
0answers
24 views

Why do I get an 'invalid call' error when creating a volume texture in SharpDX?

I'm trying to create a VolumeTexture in C# with SharpDX, but it fails: var form = new RenderForm("SharpDX - Test"); var device = new Device(new Direct3D(), 0, DeviceType.Hardware, form.Handle, ...
1
vote
1answer
110 views

Basic terrain shader without using external texture

I have this: (Right now I have the height map in a x*x size 2D array and a 1D vector too.) What I am trying to achieve is something like this: Without using any textures, only plain colors. So ...
0
votes
1answer
77 views

Building a unity game without textures? [closed]

For a school project I have to build a unity game. Since the focus is on programming and building the game and not on creating graphics (we are supposed to find free models/textures online) I'm trying ...
0
votes
0answers
31 views

How to get textures for my buildings? [duplicate]

I have decided to make my own game but i have one problem.So i want to create my own city but realized that i need textures.How i can make textures for my city buildings?I've been thinking about going ...
1
vote
1answer
99 views

Is it possible to calculate the TBN matrix in the fragment shader?

Just from model position, model normal and texture uv?
1
vote
2answers
44 views

Modifying a texture already applied to geometry

I am making glyphs on a wall "glow" by changing how much of the overlay texture (light intensity) is blended into the diffuse map. The basic approach is to capture the diffuse map into a render target ...
1
vote
0answers
111 views

OpenGL Bump Map — Texture artifacts ?

I am learning OpenGL (and learning the math behind it) and I'm making a simple OBJ viewer, nothing fancy. I have diffuse, specular and ambient light/texture working fine and now I am implementing the ...
0
votes
2answers
49 views

Getting the correct texture from an Atlas

I'm writing an OpenGL ES (2.0) app and have a custom Quad class which draws a textured quad for my sprites. Currently, I put the textures of any sprites of the same size into a single file or atlas, ...
1
vote
1answer
54 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
30 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
15 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
1answer
82 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
47 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
75 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 ...
0
votes
1answer
302 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
56 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
vote
2answers
107 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
90 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
40 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 = ...