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

learn more… | top users | synonyms (1)

1
vote
1answer
35 views

Texturing in blender

I am texturing a tree in bender using the sappling add-on, when i put the tree bark texture (which is saved as .jpg) the texture looks stretched and wierd, ive used "Use UV for mapping" on the curve ...
2
votes
1answer
60 views

Check if .dds texture is gamma-corrected

How can I check if .dds texture is gamma-corrected? It seems to be gamma-corrected since after manual gamma correction in fragment shader image is too bright. But I wanted to be sure.
7
votes
1answer
277 views

What is the optimal texture size?

I recently added a texture packager to my project that will pack a certain amount of textures into a single one, like this: So for example this one is 582x1023 pixels in size. The goal of adding ...
1
vote
2answers
67 views

SDL_LoadBMP into glTexImage2D results in scewed colors

I read up on this but i can not find the error. Some suggest switching the format from RBA to RGBA but the surface data says it is 3 byte data. Here are snippets and results of my source. Loading ...
1
vote
1answer
218 views

Unity 5 - Textures look strange in Deferred Rendering

I've created an exterior terrain scene in Unity 5 which features lots of trees and grass but some textures look awful and I'm wondering why. Please see the attached image: This texture problem is ...
1
vote
1answer
147 views

Libgdx are textures off screen rendered?

Let's say that my code looks like this: OrtographicCamera camera=new OrthographicCamera(); camera.setToOrtho(true, 100, 150); SpriteBatch spriteBatch=new SpriteBatch(); ...
0
votes
0answers
36 views

How to disable LockTexture for new level in unity?

i am building a game consist of 8 level. I use the following script to switch next level. But when i unlock a level the Lock Texture still remain in the window. I want to remove the lock texture when ...
-1
votes
1answer
50 views

Is is better to have multiple smaller or one big polygon

My game has some kind of minecraft (voxel) graphic and I have the opportunity to decide whether I want to render multiple smaller polygons or one big polygon. Which is better for performance?
1
vote
1answer
507 views

Unity Texture2D raw data TextureFormat problem

I am trying to load raw image data into a Texture2D in Unity using LoadRawTextureData but I can't get it to work correctly. First I receive an array of bytes from an unmanaged function that captures ...
0
votes
1answer
18 views

LightMap not working properly

I've made a chips bag model for my game: http://imgur.com/JcumRF4 And I textured it like this: http://imgur.com/wpyeACZ and I googled on how to make lightmaps all of them say "Smart UV project" ...
0
votes
1answer
55 views

Issue creating a dynamic seemless cube map

I have a function for building a cube map, given a location in space. I also have a system for displaying cubemaps (either loaded from images or given as a texture handle), and they work fine and are ...
1
vote
1answer
80 views

How do I store an FBO'S as a cube map?

As of late I've been trying to implement Cubemaps in my engine, and have managed to get the rendering side of them working. Currently, I'm trying to implement a function for creating them, but I ...
1
vote
2answers
57 views

How to preserve generated textures in XNA?

My game generates small "minimaps" for each room you go to, which are rendered onto render targets then stored in textures and displayed on the world map. When the game is saved, each new minimap is ...
3
votes
1answer
68 views

How can I create random noise that is seamless across modular game assets?

Does anyone know how I can create a texture for a modular tile, such that when the tiles are arranged, random weathering effects such as scratches will be continuous across seams? An example photo ...
0
votes
0answers
35 views

Texture not getting loaded in FBX , exported using FBX SDK

I'm working on an OpenGLES2 project (iOS) in which I have to export a scene/model in to FBX format, so that it can be opened using FBX review app. I have made up to the point where the model getting ...
1
vote
0answers
219 views

Unity UpdateExternalTexture from MovieTexture windows crash

I'm trying to play a MovieTexture object with a SpriteRenderer object. My code is working fine on OSX. It crashes my windows 7 exported game, and play mode in Unity editor in windows 7. I am sure ...
-1
votes
1answer
40 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...
0
votes
0answers
84 views

Unity and ASTC support

I have configured in unity all compressed diffuse map textures as 6x6 ASTC blocks and normals and other maps as 4x4 blocks. However when I profile my game using Mali Graphics Debugger it tells me ...
1
vote
0answers
27 views

Create texture atlas from loaded textures - OpenGL LWJGL Java [duplicate]

In my program I have objects with different textures, that are in the same vbo. I cant have an array of samplers in my shaderprogram, so i have to use a texture atlas. I have seen some ways to make a ...
1
vote
0answers
113 views

Should I bake all textures to a texture atlas in a game level?

I'm writing my own game engine using Java/OpenGL. I'm creating levels in Blender 3D and exporting them in a custom file format. I'm not going to be auto-generating any terrain - everything is going ...
1
vote
2answers
97 views

How do 3d engines add textures to objects?

I was wondering how 3d engines like Unity or OpenGL added textures to objects. Example: How would Unity add this texture to the side the arrow is pointing to?
1
vote
1answer
99 views

Dynamiclly applied texture to gameobject using GUI button

In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked ...
0
votes
1answer
172 views

Problem with ID3D11DeviceContext::CopyResource method - How to properly read a texture CPU-side?

I am trying to make a full copy from a render target texture to a staging one but it seems my data length ends up being only 4 in length instead of 921600 (1280 * 720). Here is my textures ...
0
votes
1answer
80 views

Is there anyway I can make a plane visible from both sides?

In Unity i have a model of a tree with leaves made of a plane and a texture, when I upload it to unity the texture is only visible on one side so how can I change it to be visible from both sides ...
0
votes
1answer
28 views

problems with imported texture

I have done a texture in GIMP and imported it in Unity but for some reason the texture appears to be squashed in the sides. Image done in gimp: And here is what happens in Unity:
1
vote
1answer
38 views

LWJGL not streching texture to quad

I'm having problems with texturing in LWJGL. The texture is not being stretched to a quad. As you can see, the texture is not being sized to the quad, marked with pink border. The problem doesn't ...
1
vote
1answer
145 views

Rendering Performance: num Draw Calls == num Texture Bindings

I'm making a game with Libgdx 1.6.4 and experience some lag issues on iPhone 4 and then discovered: // in the constructor GLProfiler.enable(); ... // in the render method Gdx.app.debug("draw ...
0
votes
1answer
259 views

Applying texture to a 3D object

I am trying to draw a 3D cube on the screen, using MonoGame. The cube was created in Blender and exported as an fbx file. The following is what the cube looks like in VS when opened in the editor: ...
2
votes
1answer
66 views

WebGL - send part of texture to GPU

I have a matrix of pixels in RAM memory, e.g. 1000x1000 pixels. I send it to GPU using gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1000,1000, 0, gl.RGBA, gl.UNSIGNED_BYTE, pixels); Which works great. ...
0
votes
1answer
47 views

Ray tracing - texture and phong lighting

Other questione releated to my ray tracer implementation for iPad. If I have a polygon that has a texture and a material, how do I calculate the color using Phong lighting model? Is the texture used ...
1
vote
1answer
144 views

Cubemaps turn black OpenGL GLSL Java LWJGL

Recently I tried to add cubemaps to my 3D-rendering engine. The objects with a cubemap now turn completely black. This is how I load my cubemap: public static int loadCubeMap(String filename) { ...
0
votes
1answer
206 views

Render Queue Sorting, HOW?

Recently I'm trying to implement a render queue sorting system, i.e., ordering my renderable objects in an array in such a way that the overhead of OpenGL state changes are minumum. After some ...
0
votes
0answers
27 views

Resolution of textures in OpenGL [duplicate]

I load texture from PNG file and render their using OpenGL. But I found the manual, what texture resolution must be divisible by a power of two. If I use a texture with a resolution of 800x600 pixels, ...
1
vote
1answer
658 views

Unity3d change texture on terrain at specific vector3 at runtime

I need the terrain texture to change at certain positions depending on where trees etc. are randomly positioned at runtime. I'm struggling to find any solid information about how to take a particular ...
1
vote
2answers
187 views

Fading in and fading out animations

This is how I'm creating my player. Is there any way to start fading in and fading out for an amount of time when I get hit? private Texture tex = Game.res.getTexture("player"); public Player(Body ...
0
votes
2answers
219 views

Render specific part of a texture in OpenGL (2D Sprite Sheet)

I've looked at this answer to find out how to render just a part of a texture: http://stackoverflow.com/questions/6884285/c-opengl-render-part-of-an-image I tried that, but the problem is, this is how ...
0
votes
1answer
68 views

Sprites not showing (C# - XNA 4.0)

I'm following a tutorial from XNA GPA, but in my project, none of the sprites are loading. I've followed all of the instructions exactly, and the code works as expected when I copy it from my project ...
0
votes
0answers
23 views

How do I generated cubic UV coordinates for a mesh?

I'm trying to add a utility function to my game engine that generates cubic texture coordinates for a specified mesh. I've attempted to come up with my own algorithm but I can't get it to work ...
3
votes
1answer
211 views

Curvilinear distortion for mapping texture on quad sphere

I'm using the formula I've found here to map procedural texture on to a quad sphere. For example I'm working with a 3d panoramic cube map that I've generated with a simplex noise. Each face of the ...
0
votes
2answers
129 views

Unity C#: strange texture/sprite problems

I've been making a gallery style shooting game, like something you'd find at a carnival, with ducks to shoot. I'd made the game and it was all working fine. However opening it today, it doesn't look ...
6
votes
1answer
297 views

Why does flipping 1 texture region cause an identical texture region to also be flipped? (libGDX)

Sorry for the bad title. I didn't know how else to explain it. The following is a portion of my code: public class AssetLoader { public static TextureAtlas spriteSheet; public static ...
0
votes
1answer
272 views

How do I render a PNG image with OpenGL?

I have an image (100×200 px) painted with Paint.NET and saved as a .png with 32-bit color depth. How can I render it using OpenGL 1.1 (with the LWJGL binding) or higher inside the display? I tried ...
1
vote
0answers
47 views

Texture shader using model's texture

I'm trying to get a model rendered in monogame using a texture shader. I'm using the code from this tutorial project: http://kgiannakakis.github.io/MonoGameEffects/ I created a simple textured cube ...
0
votes
3answers
40 views

Capturing small details in textures without making a huge map

Ex. Nuts and bolts on a cabinet. Said items are tiny relative to the cabinet, and on a texture map looks like an indistinguishable dot. Is it worth it to separate these tiny details into a mesh of ...
0
votes
1answer
106 views

Achieving Retro Resolution with HD

I couldn't really find any tips on this (or perhaps I just lack the proper words once again), but I'm thinking about how to get some retro looks (SNES 16 Bit, specifially) using a modern system. ...
3
votes
1answer
573 views

Can Unity support / use textures that are not square?

I have been told by another highly skilled Unity artist that Unity cannot efficiently handle non square images. Since that doesn't sound right to me, I wanted to get a second or third confirmation to ...
1
vote
0answers
47 views

Guidelines to create textures for materials in Unity3d

I'm facing a problem with realizing particle systems. Following many tutorials including the recent live session everything end up assigning materials to particle to get custom shape ones. What I'm ...
0
votes
0answers
73 views

How to properly use large texture that is not power of 2?

I'm making a 2D game, rendered using WebGL (using ANGLE, which means that on Windows DirectX is actually used). This is desktop-only game, but would be great to be compatible with integrated graphics ...
0
votes
1answer
55 views

Best approach for level specific textures

TL;DR: Best way to handle level-specific textures without overkilling memory usage and killing performance and keeping things clean in OpenGL for mobile (also lower-end devices) and desktop using ...
2
votes
1answer
85 views

Custom Coloring of Tileset Characters

Games like Dwarft Fortress and Dungeon Crawl Stone Soup are drawing their boards using tiles from a tileset image (I think?). I know you can do color keying and replace the background color with ...