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

learn more… | top users | synonyms (1)

1
vote
0answers
58 views

A tool to select points on texture, and obtain 0.0f .. 1.0f UV coordinates [closed]

If there is a need to create about 40 sets of UV coordinates for 40 different images. The sets can have 4 to ~16 UV points. Is there some way to make this easier? A tool similar to Inkscape would be ...
3
votes
1answer
543 views

GLSL custom interpolation filter

I'm currently building a fragment shader which is using several textures to render the final pixel color. The textures are not really textures, they are in fact "input data" to be used in the formula ...
6
votes
2answers
712 views

UV texture mapping with perspective correct interpolation

I am working on a software rasterizer for educational purposes and I am having issues with the texturing. The problem is, only one face of the cube gets correctly textured. The rest are stretched ...
4
votes
2answers
216 views

How do you clean up textures that are too photo-realistic to match the rest of your game assets?

I was browsing for textures online and notice most of it are too photo-realistic and many of them is just photo of real thing. I'm sure there some "cleanup" process for this type of texture using ...
2
votes
2answers
2k views

Dynamic Terrain Texture

I've been looking at a 2D physics game called 'Hill Climb Racing' (Android and iOS) and was wondering how they went about texturing the terrain? I've had a think about it and I've come up with ...
1
vote
0answers
79 views

Rendering text with stb_font results in glitches

I'm trying to render text with OpenGL and an "inline"-font taken from the stb_fonts The relevant code for initializing the font & rendering: LabelFactory::LabelFactory() { static unsigned ...
1
vote
1answer
258 views

Problem when texturing triangles using glVertexPointer()

I'm having a problem for displaying a single quad, here is how i do : //note: this code is only for 2 triangles, while on picture there is 4 triangles float tex_coord[] = { 0.0, 0.0, //3 0.0, ...
1
vote
1answer
369 views

Detecting pixels in a rotated Texture2D in XNA?

I know things similar to this have been posted, but I'm still trying to find a good solution... I'm drawing Texture2D objects on the ground in my game, and for Mouse-Over or targeting methods, I'm ...
0
votes
1answer
488 views

Why do my 512x512 bitmaps look jaggy on Android OpenGL?

This is sort of driving me nuts, I've googled and googled and tried everything I can think of, but my sprites still look super blurry and super jaggy. Example: Here: ...
22
votes
6answers
4k views

Creating a retro-style palette swapping effect in OpenGL

I'm working on a Megaman-like game where I need to change the color of certain pixels at runtime. For reference: in Megaman when you change your selected weapon then main character's palette changes ...
0
votes
1answer
99 views

How to Draw texture between 2 Vector3

My scenario: RTS combat style, 1 unit fires beam on another unit My problem is i want to draw a flat texture between 2 Vector3 points. I have looked at various Billboarding styles but that doesn't ...
0
votes
3answers
124 views

XNA Inheritence via Texture2D

As you know to draw a Texture2D mostly an Origin, scale-factor, rotation-value and color is necessary. To inherite a new class ATexture2D from Texture2D with adding this parameters, can cause ...
7
votes
2answers
233 views

2-components color model

RGB is the natural color model for OpenGL. But a lot of other color models exist. For example, CMY(K) for printers, YUV for JPEG, the little cousins YCbCr and YCoCg, HSL & HSV from the 70's, and ...
4
votes
3answers
156 views

How to read BC4 texture in GLSL?

I'm supposed to receive a texture in BC4 format. In OpenGL, i guess this format is called GL_COMPRESSED_RED_RGTC1. The texture is not really a "texture", more like a data to handle at fragment ...
0
votes
2answers
315 views

LWJGL - OpenGL - Texture shading

I want to use LWJGL to create a shader that all it does is change the color of the given texture. For example I tell it to draw the letter A using a sprite sheet then I can tell the shader to draw the ...
1
vote
3answers
386 views

SDL_image & OpenGL Problem

i've been following tutorials online to load textures using SDL and display them on a opengl quad. but ive been getting weird results that no one else on the internet seems to be getting... so when i ...
3
votes
2answers
362 views

Need to produce an animated texture of Water where each image tiles in all directions

I need to produce a 2D 'animated' texture of "water" for a game in which each image tiles in 'all' directions, much like those produced by the Caustics Generator, but with the power and flexibility of ...
3
votes
1answer
611 views

Z Order in 2D with orthographic projection and texture atlas

I am working with a 2D game in OpenGL ES and have a question about z-order together with a texture atlas. I am using an orthographic projection because I want pixel-perfect rendering of 2D sprites, ...
0
votes
1answer
622 views

Multiple textures on a mesh created in blender and imported in xna

I created a cube in blender which has multiple images applied to its faces. I am trying to import the model into xna and get the same results as shown when rendering the model in blender. I go through ...
3
votes
1answer
141 views

Algorithm for approximating sihlouette image as polygon [duplicate]

Possible Duplicate: Is there any heuristic to polygonize a closed 2D raster shape with n triangles? I want to be able to analyze a texture in real time and approximate a polygon to ...
0
votes
1answer
182 views

TGA loader: reverse y-axis

I've written a TGA image loader in Java which is working perfectly for files created with GIMP as long as they are saved with the option origin set to Top Left (actually TGA files are meant to be ...
6
votes
1answer
257 views

Text on a model

I am trying to put some text on a Model and I want it to be dynamic. Did some research and came up with drawing the text on the texture and then set it on the model. I use something like this: public ...
0
votes
1answer
199 views

How to draw textures on a model

The following code is a complete XNA 3.1 program almost unaltered to that code skeleton Visual Studio is creating when creating a new project. The only things I have changed are imported a .x model ...
0
votes
1answer
232 views

Objects won't render when Texture Compression + Mipmapping is Enabled

[EDIT: FIXED - Calling setting texture max level fixed that] I'm optimizing my game and I've just implemented compressed (DXTn) texture loading in OpenGL. I've worked my way removing bugs but I can't ...
3
votes
1answer
2k views

Issue with Mapping Textures to Models in Blender

I've been trying to texture a model using Blender, but when I draw on the UV Editor it doesn't show up on the model, and I can't draw on the model itself. I've tried saving the image and the 3D View ...
0
votes
1answer
544 views

Artifacts when using SamplerState.LinearClamp in SpriteBatch

I'm using XNA 4.0 and VS2010 Express for Windows Phone and Windows Phone SDK 7.1. This is a platform game and I have a map made up of 16x16 textures that is drawn dynamically, tile by tile. When ...
5
votes
1answer
176 views

Two graphical entities, smooth blending between them (e.g. asphalt and grass)

Supposedly in a scenario there are, among other things, a tarmac strip and a meadow. The tarmac has an asphalt texture and its model is a triangle strip long that might bifurcate at some point into ...
5
votes
4answers
268 views

Would like some help in understanding rendering geometry vs textures

So I was just pondering whether it is more taxing on the GPU to render geometry or a texture. What I'm trying to see is whether there is a huge difference in rendering two scenes with the same setup: ...
2
votes
1answer
136 views

How to implement custom texture formats in Android?

What I know: Android can load PNG, BMP, WEBP,... via BitmapFactory. What I want to achive: Load my own 2D file format (e.g. 1-bit texture with a 1-bit alpha channel) and output a RGBA8888 texture. ...
5
votes
2answers
978 views

OpenGL 3.0+ framebuffer to texture/images

I need a way to capture what is rendered on screen, i have read about glReadPixels but it looks really slow. Can you suggest a more efficient or just an alternative way for just copying what is ...
1
vote
0answers
69 views

How to work with edge Texture

Im not sure if i use the right terms, but im not able to find something to start with. Im trying to develop a little HTML5 game. I have a ground with a texture and now I want to make a surrounding ...
1
vote
0answers
103 views

Application window as polygon texture?

Is there a way, or method, to have some application rendered as texture in 3D scene on some polygon, and also have full interactivity with it? I'm talking about Windows platform, and maybe OpenGL but ...
3
votes
1answer
256 views

Fourth texture = segmentation fault

I keep on getting segmentation fault each time I load fourth texture - what type of texture, I mean filename, does not matter. I checked value of GL_TEXTURES_STACK_SIZE which turned out to be 10 so ...
0
votes
1answer
117 views

how to create texture for modelmesh?

Is there a possibiltiy to create a texture from a meshpart in xna. By getting a flat version of the mesh. So I can create a texture for it and edit that texture(via rendertarget)? I need to get the ...
3
votes
2answers
282 views

Having the same texture data in different ID3D11Texture2D

Sorry if this has been answered elsewhere - I'm rather new to DX. My question concerns conservation of resources - specifically textures in VRAM. I assume that upon returning from a call to ...
0
votes
2answers
3k views

Map and fill texture using PBO (OpenGL 3.3)

I'm learning OpenGL 3.3 trying to do the following (as it is done in D3D)... Create Texture of Width, Height, Pixel Format Map texture memory Loop write pixels Unmap texture memory Set Texture ...
0
votes
1answer
235 views

My Maya texture does not render at all in Open GL! [closed]

I uploaded my layered Maya (Maya 2012) Textures via objLoader into my opengl project. I also uploaded 3D textured model. I am able to render a model but not even one texture is showing. Before pasting ...
5
votes
1answer
410 views

How to flip a BC6/BC7 texture?

I have some code to load DDS image files into OpenGL textures, and I'd like to extend it to support the BC6 and BC7 compressed formats introduced in D3D11. Since DirectX and OpenGL disagree about ...
4
votes
1answer
276 views

Game Asset Size Over Time

The size (in bytes) of games have been growing over time. There are probably many factors contributing to this: trailer/cut scene videos being bundled with the game, more and higher-quality audio, ...
1
vote
0answers
740 views

How to properly add texture to multi-fixture/shape b2Body

Hello to everyone this is my first poste here I hope that will be not fail start. At start I must say I make part 1 in Ray's Tutorial "How To Make A Game Like Fruit Ninja With Box2D and Cocos2D". But ...
-1
votes
1answer
1k views

Asset missing problem XNA

I'm using VS2010 with XNA 4.0 and I'm trying to load an FBX model with texture on the screen. The problem I'm having is this error: Missing Asset: C:\Users\ChocoMan\Documents\Visual Studio ...
3
votes
5answers
250 views

Free texture sites – is it safe to use their content

There are multiple free texture sites, like: texturemate.com or plaintextures.com. I am wondering how safe it is to use their content? I imagine that the texture could be withdrawed from the site, ...
2
votes
1answer
230 views

Java getResourceAsStream as local resource

Before using LWJGL, I used the Graphic method, and there I displayed imageicons, and I had the picture file located in the resources. I used: ImageIcon tcard = new ...
2
votes
1answer
4k views

Can I use an animated gif as a texture?

I want to have a plane that shows an animated Gif as it's texture, so essentially it will be a movie. Can I apply an animated Gif as a texture? If so, does it apply like a normal texture? Note: I know ...
1
vote
1answer
167 views

Can't work out how matrix is applied to 2D vertices

I have a texture, some 2D vertices, and a matrix. The matrix is used to calculate the texture coordinates for each vertex, but the problem is that the matrix comes with absolutely no documentation and ...
2
votes
2answers
831 views

Can't get simple OpenGL texture working using SDL2 and FreeImage3

I created a simple OpenGL program that display a quad with texture, but it doesn't seem to be working as it only displays a white quad. What could possibly be wrong? I checked everything I could think ...
6
votes
1answer
3k views

Repeat texture in libgdx

How to fill region with repeated texture? Now I'm using next method: spriteBatch.begin(); final int tWidth = texture.getWidth(); final int tHeight = texture.getHeight(); for (int i = 0; i < ...
1
vote
2answers
637 views

Android OpenGL textures sometimes corrupted

Just trying to get some sprites (textured squares) to draw from a texture atlas and 50% of the time after the application is first launched/ reorientated/ brought from sleep these various graphical ...
2
votes
1answer
252 views

Is there any reason not to save skinning animation data in texture?

I have thought about saving animation data in texture. I think I can save shader parameter setting and interpolation cost in CPU, and also enable animated instancing. But I couldn't find no text ...
1
vote
2answers
378 views

Loss of texture detail in XNA (Banding 16 bit issue)

I'm loading in a background texture for my game, it's not vert detailed, it's just there too add some variance. The problem is that there looks like a large reduction in detail. I've included images ...