Questions tagged [textures]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

How to tile a texture

I'm creating a simple program in C# and now i'm trying to slice an image into multiple tiles similar to a grid pattern so it does not get stretched when drawing to different resolutions. What i'm ...
1
vote
0answers
54 views

How to create a modular environment that doesn't repeat itself?

I am creating a modular environment for a game so I have walls repeating quite often. What I want to achieve is to have the same walls with a different look, even though they are the same mesh sharing ...
0
votes
1answer
18 views

Unreal Engine - Materials Import as Gray

I imported the .fbx files from here: https://www.cgtrader.com/3d-models/industrial/other/big-warehouse-pack into an Unreal Engine 4.27 project. All the meshes load in properly, but the materials are ...
0
votes
0answers
11 views

How to get UVW coordinates in the generated vertex

I use a homemade path tracer in which the texture coordinates are re-generated. Because of this, my scan on the object flies off. ...
0
votes
0answers
6 views

Converting single number to tileatlas coordinates [duplicate]

I'm trying to make a 2d tilemap based platformer, but I don't know how to convert single numbers to a tilemap coordinate. Imagine a map: map = [[10, 12, 24],[12, 14, 5],[13, 011, 19]] (numbers are ...
0
votes
0answers
34 views

Render 3 textures into an RGB texture?

Flutter has support for external textures, but they have to be RGB. I want to render YUV video to Flutter. On OpenGL I used to create 3 textures, and upload Y,U,V to each corresponding texture. Then I'...
0
votes
1answer
14 views

Texture "Mapping" (Using just part of a texture sheet on a object face)? Unreal Engine

I've created a Playing_Card class which is of course for card games such as Blackjack. The class works fine, except until now I have not used graphics. I have now ...
0
votes
1answer
38 views

UVs Distored When Importing Mesh?

The first image shown below is of part of my mesh in Blender, and the second is of that same part of the mesh in UE4. For whatever reason, the UVs are distorted and glitchy once imported into UE4. I'...
1
vote
0answers
33 views

Why my output image is not seamless?

I offset a region of an image but when I tried to restore it using same method it doesn't look right. here is my input and output: And this is the code I used to restore : ...
1
vote
1answer
48 views

How to draw splatter (one color) on 2D grid to cover approximate number of pixels? (looking for algorithm/math answers)

Imagine a 2D grid, where water stain increasing because of water drops. But not in plain circular way but more like noisy-splatter way. Or like corruption way. I want to create effect that will ...
0
votes
1answer
29 views

Dynamic textureIds in glsl

I have a bunch of texture IDs that each correspond to an image, I would like an integer to be passed in as an attribute, and then just get a ...
0
votes
1answer
23 views

How to map texture pixels to the corresponding 3D positions?

I have a mesh stored in .obj format with a texture image in .png format. For any "defined" pixel in the texture image, I'd like to compute the corresponding 3D coordinates when the texture ...
0
votes
0answers
22 views

Blending / Lerping between textures in a Unity CG Shader

I can lerp between colors just fine, but lerping between textures just doesn't seem to work. What am I doing wrong? Here's my code: ...
1
vote
0answers
23 views

Why do my textures make randomly colored gaps?

So in unity, I use a palette to paint a texture, but they create randomly colored gaps like this: Why is this? Thank you in advance!
0
votes
1answer
51 views

Scratching with mouse to reveal a symbol

How can I make the minigame where you move a mouse around a rectangular grid and the symbol gets more or less "apparent" as shown below? (I can do mouse things, don't know how to approach ...
0
votes
1answer
43 views

Not understanding how indices and texturePositions are mapped to vertices in LWJGL

I've been following this tutorial on OpenGL and LWJGL and at some point three different lists are introduced without really explaining how they interact with each other. Can someone explain how it ...
2
votes
1answer
62 views

OpenGL 2D texture lookup returns zero (black)

I am trying to use a 2D texture as a lookup table for pre-computed values. In each case I set all values of the texture to 0.5 for testing. When I use a 1D texture, it works and I get 0.5: ...
1
vote
1answer
61 views

Implementing wet and dirty materials [closed]

How you would implement wet and dirty materials or material overlays that you can clean like in PowerWash Simulator.
3
votes
1answer
240 views

How do I convert a voxel model to a low-poly mesh with texture mapping that accurately mimics the coloured voxels?

I've created a model in MagicaVoxel (A) and I want to use it in Godot. I imported the model into Blender, but then realized that it's using a very high polygon count for such a simple model. I found ...
0
votes
0answers
75 views

Workaround for texture coordinate problem on border of terrain "chunk"?

I am working on clipmap terrain with streaming chunks loaded into a texture array. There are currently 2 texture arrays, one for the heightmap chunks and one for the normal map chunks. Chunks load in ...
1
vote
0answers
56 views

Why is this GL_TRIANGLE fan texturing incorrectly?

I am constructing some terrain for a 3D game (in C) as a 2D grid of tiles, the corners of which have height into the 3rd dimension. In the middle of each tile is another vertex, the height of which is ...
0
votes
1answer
30 views

Edge bleeding with opacity map

I want to layer a grass texture with opacity over a dirt texture to form an edge. Both on the same model. But I'm getting edge bleeding from the opacity. I made both textures within Substance Designer ...
0
votes
1answer
19 views

Does a texture mask need to be the same size as the base texture?

new to game development here. I am working with an experienced 3D modeler and following some tutorials on texture mapping. Apologies if this is not the appropriate question for this forum, but this is ...
0
votes
0answers
32 views

What is the best approach to using videos to animate a weapons' display screen in Unity?

My job is to create, model and animate sci-fi weapons', and create Unity assets out of them so they are ready to use. This particular weapon has two side displays. I've animated some text in After ...
0
votes
0answers
19 views

OpenGL sampling a multidimensional texture

Preface: In my AI project I'd like to do UV mapping of my mesh with a neural texture consisting of 16 channels with 512x512 values of type float16. The result will be a neural frame consisting of 16 ...
0
votes
0answers
13 views

Pytmx loads no tiles or textures, it seems

So, I've been trying to load a tmx file through pytmx But when it loads the file, it only loads a black image with the same resolution as the tmx file. ...
2
votes
0answers
13 views

Libgdx tiles get overlapped on render

I'm trying to create a Tilemap with 64x64 textures which follows this configuration. ...
1
vote
1answer
78 views

How to use Texture2DArray with Normal map and Normal Unpack node in Shader Graph

I am extracting Normal Map from Texture2DArray in shader graph and then converting it to normal using ...
2
votes
1answer
37 views

Unity Texture2DArray is too noisy

I've generated a Texture2DArray from array of Texture2Ds and for some reason, when my shader is using Texture Array the output ...
1
vote
0answers
46 views

SDL2 - Updating part of a texture is slower than updating all of it

I'm programing a kind of cellular automaton in which each pixel is an automaton. I'm using a SDL2 streaming texture with the SDL_LockTexture() and ...
0
votes
1answer
45 views

How to best select a texture pair to use in height blending when using a splatmap shader

In my project, I'm implementing a shader to combine up to 4 textures in a terrain using a splatmap texture (https://en.wikipedia.org/wiki/Texture_splatting). I want to combine the splatmap blending ...
0
votes
0answers
8 views

Why does 'SpriteRenderer.drawMode' virtually change from Tiled to Simple when 'SpriteRenderer.size' exceeds some value?

Given: texture size = 225x225 2D sprite object; SpriteRenderer.drawMode = SpriteDrawMode.Tiled; Now if SpriteRenderer.size is changed to 286x286 the sprite is ...
0
votes
1answer
15 views

Get all images from peristent data path and save them to a Texture2D array

So i managed to make a working script that downloads images from firebase in this situation and saves them to Application.persistentDataPath. Now what i would like help in doing is getting all those ...
0
votes
0answers
23 views

Not clearing FBO's Texture error in battery economy mode

When rendering inside a FBO's texture, I'm not using glClear() but overwriting each fragment, GL_BLEND is set to true. This works just fine, but I just realised when my laptop switch to economy mode, ...
0
votes
2answers
97 views

Is it better to load all of the scene at once or load small parts of it as the player moves?

I want to create a lot of detail in my game but I don’t want to kill the frame rate tracking all the models and movements (like all the grass). Will loading them in pieces save the frame rate or will ...
0
votes
1answer
124 views

How to create a texture SRV with different sRGB format from a render target in DX11?

Is it possible to bind a texture with a different format as render target and as shader resource view? Specifically with a different _SRGB suffix. My goal is to render a shader into an R8G8B8A8_UNORM ...
0
votes
0answers
30 views

Assertion Failed: TextureRHI - Texture Casting Errors (UE4)

I am taking a pointer to a UTexture2D asset "MyTexture2D", and casting it to an array of FColor using the following: ...
0
votes
0answers
103 views

How to texture procedurally generated custom terrain mesh

I am making an infinite procedural terrain for my game and currently trying to apply textures to it. The generated terrain has different biomes, so I want to texturize the terrain based on biome and ...
0
votes
1answer
372 views

Issue with Texture2D memory leak in Unity

I have a simple method that converts RenderTexture data into Texture2D ...
0
votes
0answers
19 views

Fade a texture effect as it nears the end of a cylinder mesh

In my game I have a laser beam that travels for about 15m, but abruptly stops due to the mesh the texture is attached to. How can I setup my shader graph so that the end of the texture fades away? I ...
0
votes
2answers
76 views

How to vertically flip a DDS texture on import?

I have a program capable of rendering 3D graphics using Direct3D11 and it is currently compatible with two different texture formats, TGA and DDS. The code to read and load a TGA texture in memory I'm ...
0
votes
0answers
37 views

Single Array Texture, multiple wrap modes

I have a array texture of which I would like some of its sub-images have wrap modes of GL_REPEAT and others to be ...
0
votes
1answer
61 views

Convert a UV shader to Triplanar

I am doing procedural environment generation using Houdini and Unity. There are two main shader features I want: Vertex-Color Height Blending - I currently have a shader for this which I purchased. ...
0
votes
2answers
49 views

How to give a certain scene different preference settings then other scenes unity

In my unity game that I am creating there are 4 scenes. 3 of those scenes rely on a backdrop because they are the main menu, death screen and the escape screen(for when you escape the place). ...
0
votes
1answer
26 views

texture size of characters and geosets

I am a 3D artist, not a game developer but I am interested in dabbling none the less. Would anybody know the texture sizes currently used for games like WOW or Guild Wars 2? Don't worry, I'm not ...
1
vote
1answer
94 views

Apply multiple Shaders to one texture with DirectX

I'm beginning with DirectX development and I'm quite confused by the documentation about how to do the following: I have 1 image (Texture2D), I'd like to apply 2 independent HLSL, one after the other, ...
0
votes
1answer
28 views
0
votes
1answer
75 views

What does the max texture unit mean?

My graphics card is a UHD 620 from intel and it says that it has 24 texture units (as far as I know). Using SDL2 creating and loading 25+ texture works fine, so am I not understanding what the max ...
2
votes
2answers
236 views

Renaming Texture 2D nodes in Unity's shader graph?

I am new here so thanks for having me. I have a query regarding renaming the Texture 2D nodes I have created in my first Shader graph. I have setup a shader graph with a normal map, base colour, ...
0
votes
1answer
86 views

Can textures change between resolutions?

I'm a beginner in game design and textures have been bothering me. How do they work in video games? Here's what I mean. Can textures change between resolutions in settings? Or is it tied to screen ...

1
2 3 4 5
29