Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [textures]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Select polygon (and create submesh) by color of texture?

For a procedural unity mesh operation: What is a performant way to select polygon (and create submesh) by color of texture? Raycast hit a point on the mesh, then paint bucket search for the same ...
ina's user avatar
  • 294
3 votes
1 answer
107 views

Is it possible to use a pre-existing texture buffer containing vertex data to initialise a vertex buffer for rendering in OpenGL v4.6?

I'm generating a heightmap in a compute shader in OpenGL v4.6 and storing it to a texture. Lets say I actually store the full vertex data in that texture instead of just the height, which is a trivial ...
Iron Attorney's user avatar
0 votes
1 answer
49 views

OpenGL texture not working

So I'm setting up texture creationg like so, for the data 3 pixels, 1 red, 1 green and 1 blue pixel: ...
Valtsuh's user avatar
  • 79
0 votes
0 answers
33 views

Glyphs are not being drawn [opengl + freetype]

I've followed this source from learnopengl.com for text rendering. It seems fairly simple, and only required this much code: ...
Scollier's user avatar
  • 124
0 votes
1 answer
61 views

How to convert a dynamic VIewportTexture to a "static" one?

Assume there is a viewport that "looks" at some Sprite2D. This viewport's view is providing the texture for a Sprite3D ...
Noideas's user avatar
  • 15
1 vote
1 answer
28 views

Failure on DX11Texturesavetofile for B5G6R5_UNORM format

I have a protocol to prepare with a combining shader a texture from two other textures and saving it in RGBA8_UNORM DDS format using DX11SaveTextureToFile. Works fine. It appears to me that I don't ...
philB's user avatar
  • 139
1 vote
1 answer
61 views

How to use Subviewports to render a texture for Sprite3D?

Godot 4.2 Background: In my game prototype, I have a following player entity: Paperdoll2D has a script that dynamically adds the weapon/armor/etc Sprite2D nodes to the main sprite to "dress-up&...
Noideas's user avatar
  • 15
1 vote
1 answer
101 views

Godot 4.2.1: Calling get_data() on Image from NoiseTexture2D Returns Null

I am trying to retrieve image data from a NoiseTexture2D. I seem to be able to get an image resource, but as soon as I try to get the associated data via ...
Haruto Kaito's user avatar
0 votes
0 answers
41 views

texture in perspective by vertices not interpolation

I am writing a software renderer with allegro5, but without using its own triangle drawing functions, I use the al_draw_prim function to draw the triangles but with all the z coordinates at zero, the ...
Ivan Rojas's user avatar
1 vote
1 answer
89 views

Does OpenGL have any automatic texture interpolation?

An image of a minecraft grass block in gimp: Loading from a texture atlas in OpenGL, gives a much blurrier image: I know that the actual image in my glfw window is larger than it is in gimp. (...
bbqribs's user avatar
  • 13
0 votes
0 answers
53 views

Extract texture from glb file

How do you extract the texture from a glb file in Unity? I'm not sure if it is from _MainTex or BaseColorTexUV?
ina's user avatar
  • 294
2 votes
1 answer
86 views

Approach to rendering a planet texture

I'm making a space game using Godot 4, and I need to capture the "hugeness" of planets. I figured I'd use spheres with textures on them for planets. The textures have identifiable ...
w94n9's user avatar
  • 21
3 votes
2 answers
1k views

It's possible to use more than 4 channels of a texture in GLSL?

I have a Texture with 6 channels. Each channel store a mask that is used to change a color of a part of my player's sprite. When the texture only had 3 channels it was easy to implement this color ...
IDKsla's user avatar
  • 33
2 votes
1 answer
90 views

I want to acheve this effect of trees changing texture based on distance to the player

The effect also applies to mountains and terrain, trees in the back look like shadows which with a dark sky look nice and in the day I can make them look like grey fog. I was thinking of simply adding ...
Atsinganoi Dragon's user avatar
0 votes
0 answers
85 views

How do i make the terrain texture less repeating?

question in the title no more to add, don't say "but it depends on how you set up your project" cause i'll set up my project how i need to set it up to solve the problem.
Atsinganoi Dragon's user avatar
0 votes
0 answers
30 views

Correct Orientation from Blender to Unreal Engine 5 in a spline

Let me preface this by saying I'm an absolute beginner and I have no idea what I'm doing. Following lot's of different tutorials, I want to create a road spline in unreal engine. Therefor I created a ...
infinitezero's user avatar
0 votes
1 answer
65 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
149 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
71 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
  • 121
2 votes
0 answers
132 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
127 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
172 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
62 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
1 vote
0 answers
111 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
38 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
1 answer
58 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
238 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
223 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
206 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
299 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
61 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
220 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
197 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
  • 139
0 votes
0 answers
75 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
78 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
194 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
1k 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
72 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
3 votes
2 answers
122 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
  • 229
1 vote
1 answer
466 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
23 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
1 vote
2 answers
206 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
  • 139
2 votes
1 answer
112 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
264 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
34 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
63 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
173 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
41 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
  • 139
0 votes
1 answer
87 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

1
2 3 4 5
31