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

learn more… | top users | synonyms (1)

0
votes
1answer
102 views

Correct GL settings to mix 2D and 3D rendering

I'm programming a 3D game engine with 2D GUI. The GUI objects have partially transparent textures and the transparency works more or less. The sky color is rendered in transparent areas of the ...
25
votes
9answers
15k views

Texture packing algorithm

What is a good texture packing algorithm? Technically, bin packing is NP-hard, so a heuristic is what I'm really after.
1
vote
1answer
1k views

How to use multiple textures in OpenGL ES 2.0?

I am working in OpenGL ES 2.0. I load two png images as my textures with the libSOIL. I need to use one of them as the texture for the background and another one as the texture of a rotating cube. ...
1
vote
2answers
1k views

SFML: Generate a background image

I want to generate a background, which is used in the game, on every instance of the game based on certain conditions. To do so, I'm using a sf::RenderTexture and a sf::Texture like this: ...
0
votes
1answer
88 views

Merging several textures into one using RGB channels

Would it be possible to place a texture into each RGB channel? Example: Red = wood.png Blue = tiles.png Green = metal.png The advantages I could see are saving space, memory and draw calls and the ...
3
votes
1answer
96 views

Applying a noise texture to distort edges

I asked this question over on StackOverflow but then found this site, and it's probably better suited to here. I'm trying to implement Sketchy Drawings. I'm at the part of the process which calls ...
0
votes
0answers
40 views

Why isn't my texture changing after calling display list?

I can't bind another texture after calling glCallList. It does nothing. However if I change texture inside the list, it works.
3
votes
1answer
165 views

How can I use a Texture2D larger than 2048 x 2048?

I'm having issues working with a large image. I've read other threads on using images larger than a Texture2D supports, but found nothing that addresses my problem specifically with implementation ...
0
votes
0answers
86 views

How to properly paint terrain - Cryengine

I'm making a game in Cryengine ( just for learning purposes ) and i'm trying to paint a terrain, i've downloaded a free seamles texture then i added it as a layer texture and asigned the mud ...
0
votes
0answers
43 views

Easier way to clip a spritesheet

I have been learning OpenGL slowly for the past few weeks through LazyFoo's tutorials, and I've come to the texture clipping section. I think his explanation is fine, but not quite enough for me to ...
2
votes
1answer
128 views

How do I apply a texture over a material in OpenGL ES?

How can I apply a texture over a material? I've set up an object with the following material: GLKBaseEffect *effect; effect.colorMaterialEnabled = false; effect.material.ambientColor = ...
1
vote
1answer
380 views

Why is my Texture becoming slower when it approaches it's destination?

I have a texture drawn on screen. Whenever I click on the viewport it remembers its destination and starts moving towards it, until it is there. This is the code I am using therefore: //Check if ...
7
votes
3answers
363 views

Terrain & Multi-Texturing

I'm using OpenGL (Version 4.4) (and C++ if that matters). I've created a terrain renderer, the terrain is stored as a 3D scalar field (isosurface/voxels). It uses a slightly modified version of ...
2
votes
1answer
124 views

C# XNA - How to create a menu with bools and textures?

I thought I could use bools to be able to select options in my menu. But the options should be textures. To show that an optino is selected I have 2 textures like this: [----Menu Screen----] [ > ...
1
vote
0answers
59 views

Texture visualization problem on camera movement (xna)

I'm trying to move a camera over a model that is used as the floor of the game. When I move the camera, the texture of the model is not showing correctly (video of the problem: ...
0
votes
0answers
50 views

Scrolling/Panning with a repeat texture

Let's say that I'm wanting to pan/scroll a surface from right to left (or left to right, but never mind that for now). I've created a texture and my intention is to set the texture to repeat on X and ...
1
vote
0answers
172 views

LibGDX render sprites in tiled-map format ( convert texture to sprite )

I am creating a game in which till now I have used textures to create A 2D tiled game. I have created a matrix which converts the touch co-ordinates into a array index number and according to that ...
0
votes
1answer
95 views

How to change colors of texture in lwjgl? [duplicate]

I have the following texture: The black pixels are characters, the background is transparent. How do I change the black pixels of the characters to another color? I use this texture as a bitmap for ...
5
votes
1answer
114 views

UV interpolation is wrong with a wide FOV

How should I take FOV into account when interpolating UV coordinates? This picture shows the result today. Everything works fine with a narrow fov, but when I make it really wide, things deviate. The ...
3
votes
0answers
253 views

How do I generate a mipmap for a texture loaded from a stream?

I am loading a Texture2d from a stream: public static Texture2D GetTexture(GraphicsDevice dev, System.Drawing.Bitmap bmp) { Texture2D texture; using (MemoryStream s = new MemoryStream()) ...
3
votes
2answers
174 views

Optimal way to store coordinates of a random point in 3D space in a texture?

A quick question: there is a well-known approach to store 3d point in space in a texture as a distance between camera and an object (deferred rendering). But it implies that the object lies on a ray, ...
0
votes
1answer
76 views

Getting invalid argument error on R32G32B32_FLOAT texture creation

D3D11_TEXTURE2D_DESC texDesc; texDesc.ArraySize = 1; texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE; texDesc.CPUAccessFlags = 0; texDesc.Format = DXGI_FORMAT_R32G32B32_FLOAT; ...
0
votes
0answers
74 views

How can I draw a part of a texture in slick2d?

I know the method for drawing a region of a texture in slick2d: image.draw(x, y, srcX, srcY, srcX2, srcY2); But I have no idea how the texture coordinates work. To draw a region of x:16, y:16, ...
0
votes
1answer
103 views

Shimmering, scrolling/panning a texture

Shimmering I understand shimmering in textures is caused by sub-pixel accuracy aliasing against the regular grid of pixels on the screen when drawn. I have a good example of it here, whereby I'm ...
2
votes
1answer
115 views

What's the difference between Textures and VertexTextures in XNA?

The GraphicsDevice class of XNA has the properties Textures and VertexTextures. What is the exact difference? I don't really understand what MSDN tells me about this. I usually use Effect parameters ...
1
vote
1answer
121 views

Difference between texture arrays and multiple single textures?

I've just learnt that DirectX 10 and above have a feature called "texture arrays". Which, basically, is just a normal array of textures (shader resources) which in a shader is declared like: ...
1
vote
1answer
124 views

How do I flip upside down fonts in FTGL [closed]

I just use FTGL to use it in my app. I want to use the version FTBufferFont to render font but it renders in the wrong way. The font(texture?buffer?) is flipped in the wrong axis. I want to use ...
0
votes
0answers
53 views

Dealing with 2D tiled maps in DirectX

I'm new to DirectX. I'm pretty much to the point to where I can create some sprites and attach textures to them, but I'm not fully cognizant of the entire model of textures and sprites or exactly how ...
9
votes
2answers
721 views

Should the content pipeline tools be embedded in the engine?

How minimal should a games engine be? How much of the content pipeline should be embedded in the engine? Some use cases where the super engine might be useful: When loading user content, the user ...
5
votes
1answer
169 views

Best way to organize models with multiple meshes and textures?

I have character models which have different parts, ex: upper body, head, lower body; each part is a separate mesh in the same model. Each part has several textures associated with it (diffuse, ...
0
votes
3answers
253 views

Why is my texture drawn in a different place when in fullscreen?

I'm trying to draw a texture (with a crescent moon) in the middle of the y-axis: public void draw(SpriteBatch batch) { batch.draw(lune, 0, Gdx.graphics.getHeight() / 2); } It renders this when ...
1
vote
1answer
146 views

Read part of texture using SharpDX

I have a Texture3D. I want to read a part of it from CPU side. (I'm using the SharpDX toolkit (v2.5.1).) My data is always 0, but the output shows no errors. This is the source texture: testTex = ...
2
votes
1answer
409 views

Unity UV map, tint / change color of texture

I have an array of vertices with texture coordinates for a UV map in Unity: newUV.Add(new Vector2 (0, 1)); // FACE 1 newUV.Add(new Vector2 (1, 1)); newUV.Add(new Vector2 (1, 0)); newUV.Add(new ...
1
vote
2answers
139 views

Howdo I create differently sized texture atlases for different screen sizes?

I am beginning game development and using texture atlases. I've created textures based on the resolution 1920x1080, so I created a 1024x1024 size Texture Atlas for storing multiple graphics. If the ...
0
votes
1answer
88 views

Heightmaps with several textures

I got a full functioning heightmap loader, however I can only use one texture. Now I want to implement more textures (like diffrent textures depending on heights ect, Possibly a structure that makes ...
6
votes
1answer
237 views

With what projection matrix should I render a portal to a texture?

I'm using OpenGL. I have problem with my engine's portal implementation. To create the first portal I do: create a virtual camera with the position of the second portal and the correct orientation ...
1
vote
1answer
66 views

XNA Textures dissappear when game window is resized

[SOLVED] - See linked post in the P.S. I have a set of Texture2Ds generated in the Load method with this function: Texture Generation: private Texture2D[,] createTextureSet(TileInfo[,] map) { ...
1
vote
1answer
51 views

Repeat or wrap texture (DirectX 9)

Sure there's something I'm missing about wrap/repeat textures in D3D 9. I've tried setting the sampler in the shader, i.e. : sampler DiffuseSampler = sampler_state { Texture = ...
0
votes
0answers
136 views

Sprite Rendering Cost Calculation

First of all asking before asking this question I have already read following post for the clearance of my mind. Sprite Renderer Texture 2D I want to change my background texture as per device ...
5
votes
2answers
163 views

How to make part of the Texture not to be scaled.?

I am new to LibGdx, i was doing one example for my learning and struck with this question, i had searched in google but i am not able to find the answer for this. 1) How to make part of the Texture ...
2
votes
1answer
126 views

How to work with smaller intermediate textures in OpenGL and GLSL?

I'm working on a project rendering water simulated through smoothed-particle hydrodynamics (SPH) with a non-photorealistic look to use in games. In the actual stage of the project everything about ...
0
votes
1answer
209 views

Ogre: Light not reflecting correctly

In my Ogre 3d scene I have an empty box, and within that there are three small cubes. The camera is also within the box, facing the three small cubes. The user can move and rotate the camera with the ...
1
vote
2answers
101 views

pre-rendering light on texture based on bump map

Using a gray-scale bump-map and N sources of colored light, what is the algorithm to render the light on the textured surface, assuming I have the angle(s) and distance of each light source? (I am ...
0
votes
1answer
228 views

Can I programmatically generate textures in java?

Is it possible to programmatically generate textures in Java, textures that could then be used to cover in game objects?
3
votes
1answer
148 views

How are Volumetric Effects made within games? (e.g. Smoke/Fire)

For computer generated volumetric elements such as clouds, fire, and whitewater. How are they made? Is it just a simple collection of particles [put to pixels] taken from Physics equations or are the ...
3
votes
2answers
825 views

What does changing GL_TEXTURE_WRAP)_(S/T) do?

I am working through some beginner OpenGL tutorials, and the current one teaches how to apply a texture to a simple rectangle. The tutorial states tells me to set the texture parameters ...
2
votes
1answer
579 views

Heightmap and Textures

Im trying to find the "best way" to apply a texture to a heightmap with opengl 3.x. Its really hard to find something on google because tutorials are olds and they're all using different methods, im ...
0
votes
1answer
199 views

Problem with Texture Array and billboards [closed]

It's my first post here. My name is Bruno and I'm from Brazil. I'm trying to learn DirectX 11, and I'm using Frank Luna's book. The problem is that he uses the Effects Framework to do everything, and ...
-1
votes
1answer
69 views

problem with texcoord at post effect (quad rendering)

I have this shader: float4x4 View; struct VS_INPUT { float2 Position : POSITION; float2 TexCoord : TEXCOORD; }; struct PS_INPUT { float4 Position : SV_Position; float2 TexCoord : ...
-1
votes
1answer
53 views

Combine textures with coordinates [closed]

Is it possible to add one texture to another texture, at specific coordinates? Like if I want to add a small texture(16x16) to big texture (1368 x 768) with coordinates ( 100, 100) so the small ...