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

learn more… | top users | synonyms (1)

0
votes
1answer
152 views

OpenGL : Keeping alpha in a render buffer

In my current task, i need to render a texture into a render buffer, in order to work on it (apply special filters) there. The result is then considered a "new texture", which is later displayed. ...
1
vote
1answer
238 views

XNA shield effect with a Primative sphere problem

I'm having issue with a shield effect i'm trying to develop. I want to do a shield effect that surrounds part of a model like this: http://i.imgur.com/jPvrf.png I currently got this: ...
7
votes
1answer
557 views

Spritebatch drawing sprite with jagged borders

Alright, I've been on the making of a sprite class and a sprite sheet manager, but have come across this problem. Pretty much, the project is acting like so; for example: Let's take this .png ...
14
votes
1answer
578 views

Suitability of ground fog using layered alpha quads?

A layered approach would use a series of massive alpha-textured quads arranged parallel to the ground, intersecting all intervening terrain geometry, to provide the illusion of ground fog quite ...
1
vote
1answer
320 views

how to use a mask texture?

A texture pack for a sponza model contains mask textures (black and white). I guess that I should read only a red channel from that texture, right ? I use deferred rendering and for shading ...
1
vote
1answer
216 views

Confusion on HLSL Samplers. Can I Set Samplers Inside Functions?

I'm trying to create a system where I can instance a quad to the screen, however I've run into a problem. Like I said, I'm trying to instance the quad, so I'm trying to use the same geometry several ...
1
vote
2answers
251 views

Texturize a shape of multiple triangles in 2D

This is an example of a shape consisting of multiple points, triangles and eventually a shape: Red Dots = Vector3 (X, Y, Z) or Vector2 (X, Y) If I have a Texture of a certain size, how do I ...
2
votes
2answers
5k views

Unity Android: Truecolor texture performance hit and alternatives for truecolor

After integrating the graphics assets to my application, I noticed that when the textures are compressed they look very bad compared to truecolor. This happens to all the textures and it did not seem ...
1
vote
0answers
173 views

loading a heightmap as texture in shader

I have a height map of 256x256, containing, foreach cell, not only height as a normal float value ( not 0-1 ) and also 2 gradient values ( for X and Y ), also as normal float values ( not 0-1 ). I ...
12
votes
2answers
1k views

Speeding up procedural texture generation

Recently I've begun working on a game that takes place in a procedurally generated solar system. After a bit of a learning curve (having neither worked with Scala, OpenGL 2 ES or Libgdx before), I ...
5
votes
2answers
2k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
3
votes
1answer
1k views

How do I generate mipmap .png and model .obj files for LibGDX?

I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android). I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at ...
1
vote
0answers
59 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
754 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
874 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
239 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
96 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
300 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
417 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
582 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: ...
23
votes
6answers
6k 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
101 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
141 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
248 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
182 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
354 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
558 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
618 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
908 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
721 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
156 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
198 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
274 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
209 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
277 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
666 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
190 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
275 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
149 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
1k 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 ...
2
votes
0answers
80 views

How to work with edge Texture [duplicate]

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
118 views

Application window as polygon texture? [closed]

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
293 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
118 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
322 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
4k 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
254 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
515 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 ...