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

learn more… | top users | synonyms (1)

-2
votes
0answers
27 views

2D textured triangles in SDL [on hold]

I would like to make 2.5D game with SDL. To do this I will need to draw 2D textured triangles. SDL currently doesn't have this feature. I have written a CPU-based 2D textured triangles routine. There ...
0
votes
0answers
26 views

OpenGL weird pixels

I'm creating a simple OpenGL application. I've created a tilemap where I put tiles to be rendered (just a simple grid). If I only render the walls, it's ok. If I only render the ground it's ok too. ...
0
votes
2answers
27 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
38 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
17 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 ...
1
vote
1answer
34 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
27 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 ...
5
votes
1answer
242 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
40 views

Rendering a texture with OpenGL

I have an image (100x200 px) painted with Paint.NET and saved as a .png with 32-bits color depth. How can i render this image using OpenGL 1.1 (with the LWJGL binding) or higher inside the display? I ...
1
vote
0answers
29 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
30 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
65 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
166 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
29 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
43 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
35 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 ...
1
vote
1answer
19 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 ...
0
votes
1answer
86 views

OpenGL texture seams

I'm atempting to make a game using OpenGL. So far I have loaded an .obj model, and I have generated a terrain as well as a very simple UI. My issue is that it 'seams' (tihi : P) that there are some ...
-1
votes
1answer
60 views

How can I set up a pixel-perfect camera using OpenGL and orthographic projection?

I am creating a 2D game using OpenGL and orthographic projection. For sprites, I use textured quads (actually two triangles). I want the pixel art textures for the sprites to be displayed in a ...
4
votes
1answer
100 views

How do I check for collision between transparent textures?

I am creating a 2D game using OpenGL. For sprites, I use textured quads (actually two triangles). The texures contain transparent pixels, since objects are not always perfectly rectangular. How do I ...
2
votes
1answer
37 views

How can I repeat a Texture Region in libGDX

I have a texture that is part of a sprite sheet. I want draw the texture to cover a certain length, but I want it to repeat not stretch. However,when I use the following code batch.draw(hillBottom, ...
0
votes
2answers
46 views

“Render” unsigned integer values to texture without clamping to [0,1]

I am trying to render to an unsigned integer texture, with a blending function enable, so that in the end, the value in each texel will be the number of objects rendered on the texel. So I assume I ...
1
vote
3answers
197 views

How to implement Index Buffer Object (IBOs) with texture coordinates in OpenGL?

I was using IBOs to render meshes (for example a cube) from wave-front files (.obj), without texture coordinates or normals, in OpenGL. Following this, I attempted to implemented texturing. The mesh ...
3
votes
1answer
84 views

Texturing in OpenGL, Should texture coordinates be assigned to vertices in the shader?

I attempting to texture 3D models (a cube for example) using ibo’s, with OpenGL in Java. Currently, my textures are distorted. I believe this is because only a single texture coordinate is being ...
0
votes
1answer
34 views

Cannot Get The Texture Showed Up Correctly glDrawElements

I still have this problem almost 1 month. Tried to search on Google but did not find any solution to this. I have loaded all the data correctly but don't know why the texture came up like this. Here ...
0
votes
1answer
76 views

How do I manually make a .pack file like TexturePacker (without using TexturePacker)?

I am using libGDX and apparently the only way I see for creating a UI is with texture packs. I would say that since a texture pack is nothing more than JSON or XML file and a large png I could ...
1
vote
1answer
65 views

Unity5 imported models show no texture

I've got a problem with Unity materials. I'm a beginner- so I used Wings3d for creating 3d models. But there's a little Problem. Both objects on the picture below have the same material(a Standart ...
0
votes
1answer
97 views

CS:GO workshop awp skin scrambles

I was starting make my awp skin, but I was wondering that my skin at CS:GO looks bit different than on photoshop. So I came here for help. I will show just a test skin (fully red). First I was save ...
2
votes
0answers
46 views

LibGDX Android Textures reload other textures, and transparent images get black backgrounds [Pictures]

I have very strange problems with my LibGDX Game in Android - The problem is that sometimes the textures get black backgrounds when they should be transparent, and sometimes when I remove the texture, ...
0
votes
0answers
12 views

Texture colour not matching sprite?

As per title, I am unable to get my texture to match the colour of the background sprite. How would i go about alleviating this?
0
votes
1answer
77 views

glDrawElements and Texture Coordinate

I just move on from Immediate Mode and try Vertex Array method using glDrawElements and I got the texture is mess. How to draw the texture correctly? This is a piece of my render code ...
7
votes
1answer
87 views

Is quadrilinear texture sampling hardware supported?

If you have a volume texture with mipmaps, GL_LINEAR_MIPMAP_LINEAR texture sampling will perform quadrilinear texture sampling. Is that implemented in hardware like bilinear texture sampling is? Or ...
0
votes
1answer
65 views

Moving texture OpenGL ES 2.0

I am trying to implement a sprite of 8 columns and 8 rows in OpenGL ES 2.0 I made appear the first imagen but I cant figure out how to translate the Texture matrix in OpenGL ES 2.0 , the equivalent of ...
0
votes
0answers
29 views

Slick2d - apply shader

I have a problem. I'm trying to apply a shader to the whole screen. Since I haven't used shaders before I don't know how to pass the texture to the shader. Everything else works... So here are the ...
0
votes
1answer
42 views

XNA Texture mapping on model

I have a cube as my model and want to map a texture on every side of the cube. I have been searching for a while and most answers suggest using 3D max or using VertexPositionTextures. I am not ...
2
votes
0answers
68 views

Cannot convert bitmap to texture [closed]

I'm doing a little C# / OpenGL project and I can't manage to load textures properly. So here is my texture class : public class Texture { public String Filepath; private int TextureID; ...
0
votes
0answers
26 views

How do I use a tilesheet?

I have a texture which has lots of textures on it. But when it comes to tiling how does this work? As the UV space tiles anything within the 10 by 10 space. But if you have lots textures within that ...
1
vote
0answers
49 views

Alpha blending is too smooth

I got the exercise to create a color map from a heightfield and given normals with alpha blending. Therefore I have to blend 4 textures (deep-flat, deep-steep, high-flat, high-steep) depending on the ...
0
votes
5answers
208 views

How to properly pass sprites to a std::vector without destroying the sprite's texture in SFML?

From the official SFML tutorials, The White Box Problem:- "When you set the texture of a sprite, all it does internally is store a pointer to the texture instance. Therefore, if the texture is ...
0
votes
0answers
144 views

Unity changing texture of RawImage from code

I have a UI element, RawImage, which I would like to change the texture of based on which random number between 1 and 6 is generated. I want to change the picture of the dice, but I don't know how ...
0
votes
1answer
110 views

LibGdx - How can I correctly handle tile transitions / connected textures?

So I am making a tiled game and I need to connect textures correctly based on whats next to it. With tiles that had connection really close to the edge of the tile I could just use the 4 bit meathod ...
1
vote
0answers
124 views

How to fix artifacts when using equirectangular 360 panorama photo on sphere

I have a equirectangular 360 panorama photo. I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and ...
0
votes
1answer
169 views

Unity 5 - Texture/Material rendering issue

I am working on a Minesweeper clone that started as a Unity 4.6 project and ended up as a Unity 5 project. I have cube objects that use Legacy Shaders/Diffuse. I am new to Unity 5, so I am not fully ...
2
votes
2answers
107 views

How can I load textures in Unity and keep them between scenes?

I have some textures that are used in multiple scenes and I want to keep them in memory to speed up load times between scenes. I know about Resources.Load, but does that always keep it loaded? If a ...
0
votes
2answers
96 views

How would I create classes for each map tile instead of using a tmx? LibGdx

I am making a top down style game using LibGdx that I want to be randomly generated each new game load. I already have the algorithm to generate the array for what tile should be what. But i'm ...
1
vote
0answers
51 views

How to extract the texture from an image onto a mesh?

(preamble: I think this fits either here or SO with computer vision tag, I chose gamedev because I think you guys are probably really good with textures and meshes, but tell me if my decision was ...
2
votes
3answers
231 views

What's the best way to organize small textures in OpenGL?

What's the best way to organize small textures in OpenGL—having them all in a big texture and selecting them with texture coordinates, or using individual OpenGL textures? Until recently, I used to ...
1
vote
0answers
47 views

Browser game - small models with tileable textures vs one big model and one big texture

I am few years behind in terms of browser capabilities. I plan to combine 3D with pixel art, and I am going to use Unity to make a browser based game. I have made a stage that is one model and has ...
0
votes
0answers
63 views

Create Plane or Quad with size set to fit dynamically-loaded texture

I'd like to load a texture image (at runtime, from web, not stored in Asset folder anywhere) and apply it to a plane (or quad, etc.) so that the plane is the same size, in pixels, as the texture. I'd ...
1
vote
1answer
46 views

Modern OpenGL Texture Displaying Incorrectly [closed]

I've been working with this code and have simplified it to the most basic form possible, and even then I cannot get a texture to display properly at all. Here is the code: ...