Questions tagged [textures]

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

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

How to render a portion of a texture (upscaled) without affecting the border with SDL2?

I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
Raffaello's user avatar
  • 125
0 votes
0 answers
68 views

How Virtual Textures work?

I'm trying to understand how Virtual Textures work. After coming across this post: https://discourse.threejs.org/t/virtual-textures/53353 And more research here: https://docs.unity3d.com/Manual/...
Miguel Myers's user avatar
0 votes
0 answers
43 views

What causes certain spots to be blacked out on my texture?

So my model's hair (and other spots) are either blacked out or really dark, but only in spots. (NOT THE WHOLE TEXTURE) This is probably a stupid question with an easy answer, but it's bending my ...
Maizie's user avatar
  • 1
0 votes
0 answers
51 views

How to import 3d texture in Unity?

How can I import a 3d texture the easisest way and visualize it somehow ( for example as a voxelized thing but other way can be also good)? I tried to download a 3d texture form different sites like ...
Fox1942's user avatar
  • 111
2 votes
0 answers
77 views

How to paint terrain details (e.g. grass billboards) programmatically?

In Unity, is it possible to paint terrain details such as billboarded grass textures programmatically? (The kind that appear vertical and wave according to wind settings.) What I know so far (or think ...
ChurlishCanadian's user avatar
0 votes
0 answers
48 views

Do texture arrays bring performance gains

I have a terrain mesh in unity that uses a four-layer texture blend, at first I used a single texture (diffuse and normal), then I converted it to two texture arrays storing diffuse and normal ...
BoomBac's user avatar
1 vote
1 answer
109 views

How can I dynamically change the skin and blush colours of an animated sprite's face in Unity?

I want to achieve this effect in unity when processing my sprites before After I was thinking that I could use two color pickers to tell a shader only to create a gradient if two colors share a ...
hello's user avatar
  • 11
0 votes
1 answer
58 views

How do games package their textures in relation to image compression?

I know that you have to keep in mind what platform you're targeting, but it feels like you might have to have multiple sets of textures. Like let's say you're targeting desktop. How do I know what ...
Zebrafish's user avatar
  • 189
0 votes
0 answers
46 views

Batch rendering with more textures than texture slots

I'm trying to implement batch rendering for my 2d game engine, and I need to render more than 32 different textures every frame. The first thing that comes to my mind is to sort the vertices by ...
Faby's user avatar
  • 1
1 vote
0 answers
63 views

Sprite2D texture repeat switches from Mirror to Disabled when resizing window

In Godot 4, I set the texture repeat of a Sprite2D to 'Mirror', When I run the game, it works fine except when I resize the window — then the texture repeat switches to 'disabled'. Is there a ...
Shahzaib Hassan's user avatar
0 votes
0 answers
32 views

Different texture generation methods with opengl

I'm experimenting with texture generation so I can begin to implement height map generation/terrain generation. Right now I'm just experimenting with different generating functions. Right now I'm just ...
YamMan's user avatar
  • 49
0 votes
0 answers
41 views

How to smooth sprites drawn from an atlas (either with linear filtering or some post processing technique)?

I've been doing a 2D renderer for a Tibia clone and came up with a design where all textures are bundled into a texture atlas. The pixelated style isn't working well (textures are often shrinked or ...
fusion32's user avatar
0 votes
1 answer
51 views

why One big texture frames is consuming more RAM compared to be divided into single frame ones [closed]

I noticed that composing frames in a big texture will consume more RAM rather than having 1 frame per texture (or sprite if you would like). The renderer is SDL2 backed by Direct3D. Is there any ...
Raffaello's user avatar
  • 125
0 votes
1 answer
103 views

How to apply sampler2Darray textures to different locations of a single mesh?

In openGL, I have a 3D terrain composed of a grid of 255x255 vertices. The vertex of the lower left corner is at coordinates (-127;-127) and the one of the upper right corner is at coordinates (127;...
Greelings's user avatar
  • 103
0 votes
0 answers
82 views

Ursina not applying shader and light to entity

I'm making a terrain-based game in Ursina. I finished making the terrain and the texture, and all of them run well, but Ursina is having problems with the lights and the shaders. ...
EarthAndMoon's user avatar
0 votes
0 answers
92 views

WHY doesn't Python's Ursina module load textures from .mtl file?

Why doesn't the Ursina module directly load all textures from an obj's mtl file? Let's assume I have 4 files: test.py: ...
EarthAndMoon's user avatar
0 votes
1 answer
204 views

Make moon using cubemap in shadergraph

I'm trying to make moon with a cubemap texture in shadergraph. I made it, but the texture is incorrect. I'm using a cubemap from NASA as a texture and it works, but it's bigger than moon shape and ...
user avatar
0 votes
0 answers
35 views

In Unity, how do I get a specific texture in runtime from .psd file rather than its whole entire texture?

I'm trying to recreate the current texture on a SpriteRenderer's sprite in order to make it bigger so that I can add a white outline to it. This is all done on runtime. If we look at the .psd file ...
rain walker's user avatar
0 votes
0 answers
92 views

How to avoid polygon fill in substance painter painting unselected polygons?

when using polygon fill in substance painter, it sometimes also paints different polygons that I havn't selected. (See image). I am using the Polygon Fill on a black mask that is attached to a fill ...
Schrello's user avatar
0 votes
1 answer
82 views

How to use gather offsets

I have this situation where I have parts of the same scene in each 4 half squares of a rendertarget rendered with the same view projection matrices. In my deferred pipeline I would like to sample with ...
philB's user avatar
  • 99
0 votes
0 answers
64 views

What are the pros and cons of having assets in one file versus multiple files?

Some games have all their assets in one .pak file or something. Or have all their textures in a single atlas. Others have their different assets in different files. ...
user1345541's user avatar
0 votes
1 answer
49 views

How do you handle edges on textures that join adjacent textures?

This question explains how to use borders to avoid texture bleeding. The following image is taken from the excellent answer to that question. But the problem I don't understand is, imagine you have ...
Zebrafish's user avatar
  • 189
0 votes
0 answers
122 views

How can I prevent height map artifacting when wrapping a texture around a sphere?

So, I have been on a bit of a journey wrapping a texture around a sphere. So, if you are reading this looking for spherical texture wrapping solutions, I would suggest checking out my last post as ...
Harper Rhett's user avatar
3 votes
1 answer
492 views

How can I map a texture around a sphere without a seam?

I am attempting to wrap a texture around a sphere without any warping using Unity's Shader Graph. I have been following this StackExchange answer, and have semi-successfully converted their shader ...
Harper Rhett's user avatar
0 votes
1 answer
63 views

Texture gets botched when loads in?

I got this weird issue with my block texture,it gets botched after loading the block, the issue though doesn't affect other textures as the the paddle texture gets rendered properly: I tried ...
koogel's user avatar
  • 79
2 votes
2 answers
92 views

How to make texture look sharper and more detailed, when you look closer?

I have this material of a rocky wall. At far it seems okay, but often when walking close by it's obvious that the texture actually has not enough resolution and seems way too blurry. Far: https://...
idchlife's user avatar
  • 167
1 vote
1 answer
195 views

Generating a texture and applying it to an object at runtime

In Unity, I want to generate a texture and apply it to a material. The following method generates a 16x16 Texture2D and applies it. However, my object with the material shows only a gray "default&...
Wiley Rush's user avatar
0 votes
0 answers
21 views

How is it possible to create a texture atlas from a list of images? [duplicate]

Given a list of images how is it possible to place them on a square image, so they take up the least amount of space?
Iter Ator's user avatar
  • 257
0 votes
2 answers
93 views

How to use unconventional texture format

I would like to use a texture that could have more than 4 channels. I have seen a post where they use a single channel R8 texture to store string chars. I'm thinking of using something like that with ...
philB's user avatar
  • 99
2 votes
1 answer
85 views

How can I initialize a sprite programmatically in Unity

Hello everyone and thank you so much for your help! I've tried following the answer at Unity 5 2D drawing sprites programmatically but nothing happened. I have a blank screen with just a background ...
TOM's user avatar
  • 41
0 votes
1 answer
161 views

Sending different textures to instanced elements draw call

I'm making a little OpenGL renderer. Currently I use VAOs/VBOs and batch all the entities with the same VAO. I then draw using glDrawElementsInstanced. I am ...
BinarSkugga's user avatar
0 votes
0 answers
30 views

Baking material used on a model to texture

In my project I have to optimize our assets. I want to create texture atlas. How can I bake objects' materials to a texture, so then I can make all assets in this scene use one material with this ...
Dekash's user avatar
  • 1
0 votes
0 answers
59 views

How to remove pink pixels from weather radar pngs downloaded at runtime?

I have some radar imagery that comes from a source that has a bug in it's rendering system. Pink is supposed to be the separation of specific cloud consistencies BUT it often shows up on the edges of ...
Jacksonkr's user avatar
  • 229
0 votes
0 answers
158 views

Change textures dynamically on 3D animating object in runtime

I have the following situation, where in I need to animate textures on 3D animating plane in runtime. There are 5 panels in the unity scene and two buttons, each button, when clicked triggers one ...
Omkar P's user avatar
0 votes
0 answers
38 views

using texture as variable

I was trying to use a texture as a variable in my shader (DX11 VS/PS 5.0). Can't get it. I have recently find this piece of code here where a texture is passed as a function parameter. Is that ...
philB's user avatar
  • 99
0 votes
1 answer
38 views

Blender Texture Painting Problem

I'm trying to texture paint a character in blender, however I'm running into a problem. I'm able to use the fill tool to color in the mesh, but the draw doesn't do anything. For example, when I use ...
Johnathan's user avatar
0 votes
0 answers
54 views

How do you update a non-renderable texture in webgl2 if you cant bind it to a framebuffer?

This is a noob question but I am stumped. I have a texture that stores x and y velocities. These velocities can be positive or negative so I need a texture that can store negative values. I can make ...
user6632577's user avatar
1 vote
1 answer
236 views

Unity texture shows UV border

I have a photogrammetry asset whose UV is, like most photogrammetry assets, a mess. And when I import this asset into Unity, the texture shows clear borders at the place where the UV is not connected, ...
Amarth Gûl's user avatar
1 vote
1 answer
176 views

Building a 3D modeling and importing workflow of a 3D indie game model

So, I am considering building an "SOP" for an indie game. The question might be simple, dumb, and wide but not deep. I am using Blender and Godot to build 3D character and environment models....
Tyler Chen's user avatar
0 votes
1 answer
50 views

ObjFile not properly loading

i am losing my mind. I am trying to create an obj parser has a way to learn opengl but i have ran into a brick wall. with DMGregory help i got the textures to work i think but know the mesh just looks ...
cuttingboard's user avatar
0 votes
1 answer
60 views

BasisParser returns undefined from loading KTX2 file with custom extension

I get 'undefined' from the BasisParser that I use from Pixi itself, when loading a KTX2 file with a custom extension (through Assets.load): ...
Kristof Van Der Haeghen's user avatar
0 votes
1 answer
2k views

How to fix the warning "Only textures with width / height being multiple of 4 can be compressed to ETC2 format"?

This question is about Unity texture compression. I have an image that has the dimensions as follows: width = 724, and height = 1044. The original size is 348 Kbytes. This means that both the width ...
Job_September_2020's user avatar
2 votes
0 answers
210 views

Resize Decal Based On Distance From Another GameObject

What I'm trying to accomplish: I am trying to recreate Paper Mario's "fake" shadow effect for my game. All of the characters in Paper Mario have a sprite of a dark circle that follows their ...
PayasoPrince's user avatar
0 votes
1 answer
921 views

Unity best practices for 3D tilemap

I looked at the forums and found out that it is not recommended to use the terrain system for the mobile platform. So then I decided to have a single plane as a "terrain" with single ground ...
Silz's user avatar
  • 37
0 votes
3 answers
178 views

How to tile 4 images and blend the seams

Scenario For the sake of example I have four textured planes that overlap each other. Theoretically this produces one large image but the textures come from a third party at run time and often are ...
Jacksonkr's user avatar
  • 229
0 votes
1 answer
56 views

How to make texture appear only once, in the center of a cube's top face?

I'm making a platformer game and I need a texture to be only on the top face of a cube and in the centre. Can I do this without scripts or do I need scripts? Also, my texture is transparent and I need ...
FortCraftCoder's user avatar
1 vote
1 answer
378 views

Why does it take around 5 times longer to sample large RenderTextures vs. sampling large Texture3D/2Ds in a Compute Shader?

Firstly I am in Unity 2021.3.11f1 using DX12. So the situation is the following. I have a large 3D RenderTexture, and I have a large 3D Texture3D with the same data, same format, same dimensions, same ...
Pjbomb2's user avatar
  • 11
1 vote
2 answers
290 views

Pack 4 textures into one channel

Can I pack 4 grayscale textures into one channel by converting the textures into uints and packing them? ...
Shiv-iwnl's user avatar
0 votes
0 answers
126 views

Is FFXV's LOD system similar to Unreal Nanite's LOD system?

I was reading this article and it seems the LOD system in FFXV is similar in that the texture is not swapped, but the number of polygons changes depending on the distance. Is Nanite the same, or is it ...
Sayaman's user avatar
  • 200
0 votes
0 answers
125 views

How do I resize an OpenGL texture created using new DSA?

My texture class uses new function glTextureStorage2d() (which OpenGL recommends), but the problem here is that this function makes the texture size immutable, ...
ihsan's user avatar
  • 73

1
2 3 4 5
31