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

learn more… | top users | synonyms (1)

0
votes
0answers
31 views

Hidden textures [duplicate]

How do the developers of games "hide" textures from editing. For example in game called Faster Than Light which is made in c++ using SDL. There is no directory with graphic files. How to "hide" ...
2
votes
1answer
21 views

Pygame: Moving Background

I'd like to create a moving background in my Python game, with an image, that moves up and until it reaches the end. Than it goes back to its first position. I'm still in my learning process and this ...
1
vote
1answer
20 views

DirecX 11 R8G8B8 24bit format without alpha channel?

This is maybe a stupid question but I can't seem to find texture format for simple 24bit R8G8B8? There is only 32bit R8G8B8A8, but some of my textures don't have alpha channel. Is there any way to do ...
5
votes
1answer
55 views

Best way to initialize values on 32-bit FP framebuffer in OpenGL

I have a framebuffer bound to 32-bit FP texture: glGenTextures(1, &texColor); glBindTexture(GL_TEXTURE_2D, texColor); glTexImage2D(GL_TEXTURE_2D, 0, GL_R32F, w, h, 0, GL_RGBA, GL_FLOAT, (GLvoid*)...
1
vote
1answer
40 views

Texture mapping artifacts on certain surfaces

I am currently working on a 3d game engine, but am complete stumped on a problem involving texture rendering. Here is the rundown. My game engine renders meshes of the OBJ wavefront type. I have ...
0
votes
0answers
17 views

terrainData.SetAlphamaps slows unity game

iam using terrainData.SetAlphamaps() function for changing texture of specific part of terrain in update which is like my player moves and i get its transformation and map the texture at corresponding ...
1
vote
1answer
70 views

Can't load png in texture

I created new project in libgdx without Android, specified for Eclipse. I added testcar.png to assests in core project, refreshed core and desktop projects, new Texture(Gdx.files.absolute("C:\\...
6
votes
2answers
548 views

Need simple 3D terrain render with big texture map

I have a 1000 x 700 height map I have a 1000 x 700 texture map I did something very similar about 8 years ago: Using XNA. Unfortunately, when I bring up this old project and convert it to Visual ...
1
vote
1answer
23 views

SDL2: Texture not rendering to screen

I'm trying to render a BMP image, but nothing is showing up other than the draw color. I have most of my code in a header file. [game.h] #ifndef __Game__ #define __Game__ #include <string> #...
1
vote
0answers
23 views

SFML Texture issue removing from memory

I am currently working on loading tmx levels into my game, all is going well and i have layers being loaded textures being loaded and all the data being loaded such as level name, tile sizes etc. The ...
3
votes
0answers
18 views

Tile Texture If Dimensions of Sprite Are Larger Than Texture

I have a sprite that acts as a wall in a game that I am building. I would like to have the brick texture repeat itself instead of stretch to fit the height of the screen. I tried: Texture ...
0
votes
1answer
21 views

LibGDX - blurred textures when resizing

Hi could anyone help me solving the problem of blurred texures? My viewport screen have 800px of height and 480-600px (for different aspect ratios) of width and when I test game on smartphone with ...
0
votes
0answers
61 views

Low-poly heightmap

I want to transform a 'normal' heigthmap into something like this: Starting from a normal grayscale heightmap like this: I looked into Voronoi, but I cant find a way of how to tranform the ...
1
vote
1answer
40 views

Gradient Banding in Unity Android

In an Android game, I have a gradient background that changes color over time. This was achieved by creating a 1x2 pixel texture in code, and stretching it over a large quad with bilinear filtering. ...
5
votes
2answers
70 views

Texture coordinates do not map correctly in Direct3D11 game engine

I beg your pardon if this question has been already answered elsewhere or if this is the wrong site, but I have a serious issue with rendering textures with Direct3D 11. Using Cinema 4D R17, I ...
1
vote
0answers
34 views

How to Handle Game Textures [closed]

For my game I have decided to create my own hand-painted/stylized textures, and was curious about how my game would theoretically perform later down the road. Essentially, my game world is comprised ...
1
vote
0answers
15 views

How to create a texture2d from an array of pixels in DirectX11

I currently have a ray-casting camera that holds an array of pixel colors (XMFLOAT4 color) that is 1024x768. I am trying to create a Texture2D in DirectX11 that is also 1024x768 and simply copy over ...
1
vote
1answer
38 views

Modify texture of sepcific area of Terrain in unity

I am developing a farming simulator 3D game in unity. I have a crop field on terrain which is actually a texture paint in square to show a crop area, and i have to perform sowing (prepare field for ...
0
votes
2answers
26 views

rough texturing on edges of mechanical parts

How do major studios fake the effect of "wear & tear" on the edges of guns and other things? I've always wondered this, but today it got to the point where I figured, why not just ask you guys. I"...
3
votes
1answer
59 views

OpenGL cube map is always black

When creating and rendering a skybox with a cube map texture, the skybox is black. Here is how I create the cube map texture: GLuint loadCubemap(std::vector<std::string> faces) { GLuint ...
0
votes
0answers
16 views

HLSL DXGI_x_UNORM vs DXGI_x_UINT

I have a texture resource with a format of DXGI_x_UNORM I can then access the data in the HLSL using .sample or .load and it works exactly as expected. However if i simply change my format from ...
0
votes
1answer
25 views

Libgdx change the image inside table dynamically

I am trying to draw a HUD that shows the score and time and image like loading but I want to update and change the image when the score get higher but I tried to do that but it is not working. I ...
0
votes
0answers
7 views

Should I boost run task via disabling TexturePacker?

I decided to create textures with keeping in mind that the largest screen resolution that my game will be working with is 1920x1080. So, menu background texture in my game will be always 1920x1080. ...
0
votes
1answer
124 views

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...
1
vote
2answers
42 views

Unity Non-shader method of combining two RGB Textures into a single RGBA Texture

I work in a broadcast environment that delivers video signals over SDI as Fill (RGB) and Key (A) signals. My SDI rendering method produces a Texture for each SDI input and applies it to a material. I'...
0
votes
1answer
55 views

Streaming webcam via websocket performance issues (Code included)

I finally figured out, how I can stream my webcam, but I'm getting not the best performance. In low resolutions it's working fine, but as soon as I turn the resolution up, the performance gets worse. ...
0
votes
1answer
39 views

HLSL SetVertexShader Texture2DArray Sample

I want to do some texture samples in the vertex shader, but it seems this cannot be done in the same was as when using the Pixel shader. The code is basically.. Texture2DArray gTexture; VS() { ...
0
votes
0answers
41 views

How do I make an object not appear grey regardless of distance?

My moon texture is on a plane 500m away and I would like to know if there is a way to keep displaying the texture: As opposed to it turning grey as pictured here: regardless of the distance it is ...
0
votes
1answer
34 views

How can I have margins or padding around a texture in libgdx?

I am building a game using libgdx a 2048 like game and I draw the tiles of the board using textures (each texture represents a tile with the number 2 or 4 etc.) I would like tohave a small space ...
1
vote
1answer
36 views

Level/Asset design for performance Unity

I am a big fan of modular assets. Currently I am designing a 3d game for mobile and I don't know how I should create my levels to get the most out of the device. Should I... create lots of "small" (...
4
votes
0answers
51 views

Environment mapping without cubemap (need coordinates projection)

I'm working on a project with C++ and glsl (4.1). I have implemented a mirror object which is a plane at height 0 that works as follow: I render the scene with a MVP computed such that the camera ...
0
votes
1answer
35 views

Applying texture inside of an Icosphere?

I have implemented a code to generate an Icosphere procedurally in Unity 5.3.4f, which works pretty well. However, what I need to do know it tweak the code to make the sphere to receive texture only ...
3
votes
1answer
117 views

Texture atlas vs. array-texture: how differently are they handled by CPU and GPU and how that impacts performance?

Unity 5.4 (currently in beta), will bring a much awaited feature (since 2013) that is array-textures - in the same vain as OpenGL's ArrayTexture. However, after doing some reading about arrays-...
1
vote
1answer
49 views

Where does the roughness map go?

So I used Quixel, and created a great item. I want to view it in Unity with all the maps the problem however is I have 5 maps but only know how to insert 4. Diffuse Normal AO Specular Roughness I ...
4
votes
1answer
189 views

OpenGL(Libgdx) - How to texture a 2D terrain surface?

I want to texture the surface of my terrain. I have created the ground mesh and surface mesh separately and everything is okay for ground mesh. But I couldn't texture the surface mesh correctly. As ...
0
votes
0answers
41 views

How to solve these issues with gun customization mod for Minecraft?

I' m currently making a plugin for gun customization for minecraft 1.7.10 but I have rendering issues. All the textures match requirements. Sights are 1024x256 and the rest is 16x16 I think it's the ...
3
votes
2answers
114 views

Why is my alpha transparency not working correctly in Unity?

In Unity I have never seen a bug quite as weird as this one. As usual, I import my texture with a transparent background and then check the alpha is transparency box and apply it, and everything ...
3
votes
0answers
104 views

Particle-system in the GPU in Unity: how to load/store data from/to a texture in the shader?

I have been implementing a simple GPU-based particle system in Unity, for my current game. The setup is indeed not very elaborated: the shader receives a set of coordinates passed trough the position ...
7
votes
1answer
110 views

Perspective-Correct Texture Mapping

I am working on a small rendering engine for a personal project and I am having issues with the texture mapping part of it. It seems to work for some cases, but not for others. For example, when one ...
1
vote
3answers
122 views

Array Texture 2D with different sizes for the textures?

I'm making a 2D game engine, and I need a way to batch all textures into one so I only make one glBindTexture call throughout a scene. I am trying to use 2D texture arrays, but they only support ...
1
vote
0answers
76 views

How can I use ImGui to render simple text instead of using stb_truetype directly?

Since ImGui builds on top of stb_truetype for its font rendering, I thought it could be nicer to use its already built font-processing capabilities (ImGui::GetIO().Fonts), and render with those, ...
1
vote
0answers
61 views

How can I render text with modern OpenGL and stb_truetype, and why are the loaded textures black?

I've spent the past couple of days just desperately trying to get stb_truetype to render anything using the simple example provided https://github.com/nothings/stb/blob/master/stb_truetype.h#L242-L281,...
1
vote
0answers
20 views

How Would You Animate a 3d Characters Face (With Textures)

So I'd like to do a low poly style of modeling, and one of the corners I'd like to cut is on head geometry. Specifically, making the details of the face a texture (like a Mii or a character in Animal ...
0
votes
2answers
73 views

Opentk Textured Full Screen Quad

I want to display a texture on a full screen quad. What I get is a completely green quad and after a week of debugging I cannot understand why. I am currently using OpenTK 1.1.2225 and Magick.NET-Q16-...
2
votes
1answer
28 views

MonoGame renders texture in an almost compressed looking way

I was working on a game in MonoGame, which I have been doing for quite some time now. As I was implementing UI, I was noticing some sort of weird scanlines. Investigating further, to my surprise my ...
0
votes
0answers
30 views

Faster ways of rendering to a texture what is viewed by a camera in a given specific moment (Unity)

What I want to achieve is to render to a texture what is viewed by a camera in a given specific time or frame, and then stop rendering to the texture, delete the camera and stay with that texture for ...
1
vote
0answers
59 views

World texturing techniques in FPS game

Texturing for small objects (pickups and enimies) can easily be done UV-unwrapping the model, and use a texture of reasonable size to make the model look good. But how can texturing be done for the ...
3
votes
1answer
64 views

Reflection areas on texture

I have a wheel model. It's use Reflected Diffuse shader and only one texture and only one material. So it should seen like that, right? But it's seen like that: I'm really curious about that. What ...
0
votes
1answer
40 views

Why when releasing a DirectX Texture it fail

I have an instance where a class creates a DX9 texture via UINT usage = D3DUSAGE_RENDERTARGET; HRESULT hr = D3DXCreateTexture (m_D3DDevice, 200, ...
1
vote
2answers
79 views

How to load textures at other times than startup in XNA using vb.net?

I've encountered a problem with my game project lately. When I load more than a certain number of textures (around 1000) at startup I recieve an error regarding memory, because I have to use 32-bit in ...