Questions tagged [textures]

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

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

Reprojecting a 1024x512 texture to an equirectangular cylindrical projection

I have recently been spending a lot of time with procedural texture generation. However that quickly came to a halt when I was trying to get the textures to map to a sphere. I am required to use an ...
user avatar
0 votes
0 answers
31 views

Suddenly getting pink rendered texture on model

Hey All I have been using this model in this project for a bit and everything was fine then suddenly this issue popped up and I am not sure what could be the cause. I am using a flatkit shader but ...
user avatar
  • 137
0 votes
0 answers
61 views

Implementing material (mtl) files into objects (obj) in LWJGL/OpenGL

I have an object loader that takes in textures, but when I try making some textures, they never turn out exactly how I want. I found out that a lot of them take a colour I want in one place and put it ...
user avatar
  • 1
0 votes
0 answers
26 views

Inward looking panorama

I have a 3d model with very complex geometry. I want to bake these details into a texture map. I want to transfer the rendered image of the model to a low poly version. It is like a panorama, but the ...
user avatar
0 votes
1 answer
44 views

Unity: How to determine and highlight map region under mouse pointer efficiently

In a 3D Scene, I have a table asset on which sits a game board asset, displaying a map with countries. My map is quite large- 7776 × 3456 pixels. The Main Camera looks down at an angle, can be moved ...
user avatar
0 votes
1 answer
13 views

Raycaster Textures Scrolling?

I am making a raycaster, I Have currently got textures rendering, but with North and South faces it appears that the texture is scrolling infinitely. I have read Shimmering, scrolling/panning a ...
user avatar
0 votes
1 answer
31 views

Unity preset manager filter

I have made specific presets for textures like Normal or Emission maps. After they are imported I have to manually select each one and assign the proper preset. I want to automate this process. To do ...
user avatar
0 votes
1 answer
31 views

How to generate the in-game world map UI for a large world?

I would like to generate a map of the game world (i.e. a world map for a full screen UI). I am not an artist so would like to automate the process. For small levels I was able to do this by capturing ...
user avatar
  • 31
0 votes
0 answers
34 views

Expected memory layout of 3D textures

I'm writing a texture viewer application which up until now supported 2D as well as 2D array textures. Recently I wanted to add support for some volumetric 3D textures that I stumbled upon but I am ...
user avatar
  • 204
0 votes
0 answers
11 views

Is there a better, built-in, FASTER system to compose textures by a sequence of textures on top of each other?

Say I have these textures: Disclaimer: These textures belong to RPG Maker MZ and nobody has rights to use them outside their client, so never use them for production deployments but only to ...
user avatar
0 votes
1 answer
31 views

How do I offset a texture pointer in order to store an array of D3D11_SUBRESOURCE_DATA?

I'm attempting to load a sequence of frames from a GIF into a Texture2DArray using stbi_load_gif_from_memory which returns a ...
user avatar
  • 1,976
2 votes
0 answers
60 views

How to get rid of these seams on the lightmap? ( Unity )

The wall is made of blocks of identical wall models with the same UVs. How to get rid of these seams on the lightmap? How I made this scene with this models: I made 3D model of the wall element in ...
user avatar
0 votes
0 answers
17 views

Unity - determine if textures are not used, such as "blank" normal texture and black occlusion texture etc

To try to optimize for runtime load of arbitrary 3D models, many of which have "fake normal textures" (basically, just a flat shade of purple - does not really add much to the look), how do ...
user avatar
  • 166
1 vote
0 answers
182 views

Is it possible to work with UDIM Tiles textures in Unity?

I thought about trying to work with UDIM in Unity, but I'm not familiar with this topic. It seemed to me that Unity should not work with UDIM at all. Is it so?
user avatar
0 votes
0 answers
27 views

How to modify UV data using GLM/OpenGL

I am attempting to translate texture coordinates in an interlaced VBO the same way I translate vertex positions. That is ...
user avatar
0 votes
0 answers
17 views

OpenGL multiple Compute Shader passes creating a checker pattern

I'm working with OpenGL 4.3 compute shaders and I've run into an issue where it seems to fail to write/display every other pass. The code takes in a raster file from GDAL and loads it into an initial ...
user avatar
  • 1
0 votes
1 answer
29 views

How to add a texture inside a specific area in a canvas in javascript?

How could I draw a texture between the bottom of the canvas and below the green line, in javascript? I dynamically add coordinates in a canvas, then draw lines between these points. EDIT : Solution: ...
user avatar
  • 11
0 votes
0 answers
20 views

How to make render texture grayscaled?

I have made a minimap, but I don't know how to make it less colorful and haven't find any solution for this.
user avatar
0 votes
0 answers
36 views

GLSL - if or #if for conditional sampler read

I have a GLSL ES 3.0 shader and in certain scenario, I want to read from two textures instead of one and do a lerp between them. However, I am not sure what is a better solution. Use standard runtime ...
user avatar
  • 1,076
0 votes
0 answers
18 views

How do you apply HistogramEqualization to a Texture in Unity?

Trying to convert a c# snippet that uses LockBits, marshals and strides to be used to do a histogram equalization operation on a texture in unity. I'm not sure where it's going wrong exactly or how ...
user avatar
  • 166
1 vote
1 answer
297 views

Techniques to make 3D models to look like oil paintings

I intend to develop a fantasy 3D game focused on warships, with a look similar to oil paintings. The reasoning behind this decision is that the art style would allow for a sense of wonder and ...
user avatar
  • 115
0 votes
0 answers
32 views

How do I add damage marks to a character?

I am using Unity3D and I am making a melee combat game. When a character gets damaged by a sword I need to add cut marks in enemy skin/armor. Is there a way to alter the texture to add the cut mark in ...
user avatar
1 vote
0 answers
37 views

How to make a cloudy looking planet?

In my game you navigate in space and you can come across planets. You can approach the planet and then land on it. At first I wanted the planets to be spheres, but then I realised how unpractical this ...
user avatar
0 votes
1 answer
25 views

Depth does not writes in texture

I am doing volumetric fog. In the first pass I write down the depth of the front polygons of the cube, in the second pass I write down the depth of the back polygons of the cube, in the third pass I ...
user avatar
  • 11
0 votes
1 answer
28 views

How to remove the influence of a region of a texture, using texture stages?

I created a 512x512 shadow texture, and I don't want to render the center part on my Terrain. Can something like this be done? I didn't find anything on the internet about this (Example as in the ...
user avatar
-2 votes
1 answer
88 views

GL error GL_INVALID_OPERATION: mismatched type setting uniform of location "4" in program "1"

I get this error while trying to add lighting ...
user avatar
-1 votes
1 answer
47 views

How do I add light to my textures?

How do I add light to my textures using this? I have this GLfloat ka = 1.0; glm::vec3 ia = glm::vec3(0.5f, 0.5f, 0.5f); and in the fragment shader ...
user avatar
0 votes
1 answer
71 views

If I want to use textures and colors, how do I put them into my fragment shader?

I have many mesh objects in my scene and I have applied an image texture to some objects but I want to set different colors for the other objects. How do I do that? This is my fragment shader ...
user avatar
0 votes
0 answers
43 views

Opengl. A single texture is applied to all my objects. glTextureStorage2D Error faced

I can't seem to figure out why a single texture is applied to all my objects. I have three objects - fence, ground and cone but they get weirdly placed textures or a single texture on all of them. ...
user avatar
0 votes
2 answers
63 views

Make materials higher quality as the user gets closer

Scenario I have a sphere with an low-quality earth texture on it. I also have a much higher quality earth texture (Gigabytes in size) that I can use but it's too performance intensive to use on most ...
user avatar
  • 191
2 votes
1 answer
49 views

Only Square Textures loading correctly (Beginner question)

(Sorry if this has already been asked, I couldn't find any other question or source describing my problem) Okay so basically Square textures load and display just fine. But for some reason, when ...
user avatar
1 vote
1 answer
201 views

How to create/get good terrain texturing for an RTS game?

I'm writing an rts-style game, so I have an overhead camera, typically 20-50m above the terrain. Most ground textures (grass, dirt, etc.) I find are obviously made for a much closer, probably FPS-...
user avatar
  • 1,210
2 votes
0 answers
62 views

How do I create terrain texture maps from photogrammetry?

I want to create a terrain texture diffuse and normal map. To do that, I have capture some terrain with photogrammety: I have cleaned up the high poly model and created a lo poly model from it in ...
user avatar
  • 821
1 vote
1 answer
89 views

Should I be worried about textures higher than 4K?

Upon developing a big project, it just happened that when stitching all the thousands of animations spriteframes of a single character together, the sprite sheet turned around to 2K by 13K texture!! (╯...
user avatar
2 votes
0 answers
10 views

UV interpolation gets distorted on a trapezoid [duplicate]

I'm experiencing an interesting distortion in the UV mapping of a trapezoid. When I map a square plane and tilt it backwards, the perspective-correct interpolation gives it the expected pinching at ...
user avatar
  • 121
1 vote
1 answer
83 views

What could be causing my texture in ash Vulkan to render lighter?

I have just completed the Vulkan tutorial using rust and the ash crate. I've been following along with this repository. I am unable to determine what is causing my textures to render lighter. If ...
user avatar
0 votes
1 answer
134 views

Creating a background image with Photoshop for Unity

I'm making a home screen for my game. I don't know how to transfer a 2d image from Photoshop into a game that's on Unity. How do I import the image and make it visible in game? It’s a 3D game. I don't ...
user avatar
0 votes
0 answers
29 views

problems with displaying sfml textures

I have created a kind of framework for a game that combines box2d and sfml. All game scenes are stored in the Game class. The scenes also contain information about static and dynamic objects: ...
user avatar
0 votes
0 answers
107 views

Huge texture management in OpenGL

I have developped a big map where the user can navigate. Let's say this map has a resolution of 15000x5000 (for example. It can be even higher). The way I am handling this in 2D is with a Tile Map (...
user avatar
0 votes
1 answer
74 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 ...
user avatar
  • 51
1 vote
0 answers
67 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
0 votes
0 answers
8 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 ...
user avatar
0 votes
0 answers
63 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'...
user avatar
0 votes
1 answer
194 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 ...
user avatar
0 votes
1 answer
158 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'...
user avatar
0 votes
0 answers
37 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 : ...
user avatar
1 vote
1 answer
56 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 ...
user avatar
  • 145
0 votes
1 answer
48 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 ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
  • 101

1
2 3 4 5
30