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

learn more… | top users | synonyms (1)

2
votes
1answer
181 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 = ...
0
votes
1answer
144 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 ...
1
vote
1answer
74 views

How do I make parts of a texture transparent in Max?

I am applying an eye.psd eye-texture to my character model's face, but the results aren't what I'm expecting. Here's what it looks like (Observe the eye on the right. Ignore the other one.): The ...
3
votes
2answers
183 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
107 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
118 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, ...
5
votes
1answer
139 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 ...
2
votes
1answer
431 views

glDeleteTextures - release data, but keep the texture ID?

In OpenGL, is it possible to release texture data, but keep the same texture id? I want to unload textures when they aren't needed, but load them again later when they are. There are a lot of objects ...
0
votes
1answer
211 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 ...
1
vote
1answer
168 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
157 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
3answers
652 views

OpenGL - How to draw a transition of two textures on one quad?

I know when drawing a rectangle, if we select red and draw two vertices, and then select yellow and draw the other two vertices, the entire rectangle will show a nice transition of color between those ...
0
votes
0answers
83 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 ...
5
votes
1answer
241 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
407 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 ...
2
votes
1answer
729 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 ...
3
votes
2answers
1k views

SDL2 sprite batching and texture atlases

I have been programming a 2D game in C++, using the SDL2 graphics API for rendering. My game concept currently features effects that could result in even tens of thousands of sprites being drawn ...
0
votes
2answers
390 views

Texture coordinates for a 3D box

I have a box model in my DirectX application, stored as 8 vertices: MyVertex vertices[] = { { DirectX::XMFLOAT3( - 1.0f, + 1.0f, - 1.0f ), /*,tex coord...*/}, //0 { DirectX::XMFLOAT3( + ...
0
votes
1answer
98 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
264 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
2answers
201 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 ...
1
vote
1answer
351 views

LWJGL SlickUtil Texture Binding

I am making a 3D game using LWJGL and I have a texture class with static variables so that I only need to load textures once, even if I need to use them more than once. I am using Slick Util for this. ...
1
vote
1answer
76 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
74 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
183 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 ...
1
vote
1answer
218 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 = ...
5
votes
2answers
190 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 ...
3
votes
3answers
377 views

How can I render something like the swirling clouds of Jupiter?

The effect should be as similar as possible to this, though it does not need to be at planetary scale. I was thinking that it could be done offline via particles, perhaps by directing their motion ...
1
vote
2answers
117 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 ...
2
votes
1answer
175 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
253 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
185 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 ...
0
votes
1answer
302 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 ...
3
votes
1answer
189 views

Texture mapping a complex object on openGL ES

I dont have much experience with openGL ES (or openGL), but i do get the general idea of texture mapping, which is each vertex should be mapped for the relevant UV coordinates of the texture we choose ...
-1
votes
1answer
90 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 : ...
0
votes
1answer
73 views

Triangular grid and rendering to a texture (Direct3D 11)

Is it possible to render vertex data from a triangular grid into a texture with a same size (i.e. 3x3 vertices to 3x3 pixels - each pixel is representing one vertex)? Consider following situation. I ...
-1
votes
1answer
65 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 ...
0
votes
1answer
250 views

Textures not displaying. Problem with fragment and vertex shaders

Hi i have newbe question. I am sending to gpu textures unit and they dont display. This is simple version of my fragment and vertexshader. (More complicated version also dont work with other textures ...
0
votes
1answer
116 views

why is my OpenGL texture transparent?

I have a terrain in OpenGL, and two textures which I am combining using GLSL mix() function. Here are the textures I am using. Now I am able to combine and mix these two textures, but for some ...
2
votes
1answer
720 views

Paint with soft brush (logic)

During the last few days I was coding a painting behavior for a game am working on, and am currently in a very advanced phase, I can say that I have 90% of the work done and working perfectly, now ...
1
vote
1answer
661 views

How to achieve anisotropic filtering

I am loading a texture and using glGenerateMipmap() on it to achieve some level of mipmaping. I get different result on nVidia gt 555m, and on Intel HD 3000. The texture rendered by nVidia is not ...
0
votes
1answer
437 views

LWJGL Adding Textures with VBOs

I'm currently trying to texture a cube, but I am having no luck determining what the next step should be. I can load an .obj model from Blender into my LWJGL program just fine, and I can even make a ...
1
vote
1answer
88 views

Normal map causing certain faces to get shaded

I added a normal map to a MR arch & design material in Max 2012. I have a specular in the reflection color slot and a diffuse in the diffuse slot. As i increase the intensity of the normal map i ...
1
vote
1answer
998 views

How to compute tangent and bitangent vectors

I have a texture loaded in three.js, then passed to the shaders. In the vertex shader I compute the normal, and I save into a variable the uv vector. <script id="vertexShader" ...
1
vote
1answer
63 views

Does `SetResourceArray` copy the data into the GPU?

I am trying to create multiple textures, and only several of them change every few frames. I don't want to have to copy in the whole array via SetResourceArray for just a few textures that change, ...
2
votes
1answer
224 views

How should I prepare for migration from D3D9 to D3D10 or D3D11?

I'm considering a Direct3D9 texture streaming solution, but my company will eventually be going to D3D11 in the future. I wanted to make my solution as forward compatible as possible, so I was hoping ...
0
votes
0answers
107 views

How to import a character with multiple parts into udk

I have a master chief model that I downloaded and rigged, and it has multiple parts. The body, helmet, and pieces of armor that go around his body are all separate objects that have separate texture ...
2
votes
1answer
316 views

Scaling textures with nearest neighbour without having to use seperate sprite batches

I'm interested in being to scale textures up via nearest neighbour. I can do this via a SpriteBatch.Draw() overload however this means that any other sprites drawn within that batch will also have the ...
0
votes
1answer
235 views

Apply a texture on a Box - jMonkeyEngine

How can i wrap a texture (for ex a 4x4 pixels) on a box (1x1x1) in such a way that the texture is repeated and not enlarged to cover all the surface. Geometry box = new Geometry("Box", new ...
1
vote
1answer
128 views

Telling my shader when to use which Texture

So I've just managed to get Texturing via GLSL shaders to work and i can pass a sampler2d textureHandler + my uv coordinates into my shader to specify the texture to be displayed on my Tiles. Now im ...