Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [textures]

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

1
vote
2answers
82 views

Combining multiple diffuse textures into one leaves strange distortions?

I made 3 models, each has own material. And after texture painting, I combined each their texture to single textures for optimization. Currently making Mobile Game with Unity 2018 and using Mobile/...
1
vote
1answer
54 views

Does texture splatting always sample 4 x N textures per fragment (regardless of the weights)?

Texture splatting - usually - is done by vertex painting, where each channel R-G-B-A is assigned as a different texture weight. Due to the way shaders are executed, doesn't it mean that the fragment ...
0
votes
1answer
99 views

How to update a dynamic texture

I'm using Ogre 1.10, I have a dynamic texture assigned to a material that I need to update its buffer with a new image every few seconds. How can I transfer pixel data from an image to my dynamic ...
0
votes
0answers
23 views

Clarifications with generating dynamic Unity Normal Maps

I am dynamically creating a Normal Map in Unity (for my dynamic mesh) but I am having issues, the problem primarily being my weak understanding of Unity's implementation of the Normal Map as used in ...
0
votes
0answers
91 views

How can I raycast a floor in a simple raycasting engine?

I've been following the infamous lodev raycasting tutorial for a little while now but I can't make heads or tails of how the raycasting for the floor/ceiling works. He seems to be drawing the floor ...
1
vote
0answers
31 views

Projecting a moon texture to the background

I want to display a 2d moon image to the background. I have a normalized direction for the center location of my moon texture. I also have the normalized view direction from the camera for each pixel. ...
0
votes
0answers
52 views

Raycasting — invalid floorcasting texture mapping

The problem is that the floor moves with the player in same time. In the correct implementation, the player must walk on the floor. I attach the animation on which this effect is visible (in spoiler), ...
0
votes
1answer
64 views

Normalmap texture in Unity from SP disorted a lot

As title said, normalmap made from Substance Painter in Unity disorted. Here is the picture: I made red rectangles to see more cleary. You can see that the some of line of normal were disorted ...
0
votes
0answers
38 views

Create BGRA texture SFML

I have a texture sfml but this texture have a format RGBA how i can change it to BGRA? Or how to create texture with need able ...
1
vote
0answers
88 views

Unity Pink Texture On WebGL

I'm trying to follow a youtube tutorial for my new game(images puzzle) and by using it's implementation on github to upload it later on facebook. When I run the game inside unity editor its work ...
0
votes
2answers
253 views

OpenGL Array Texture generates black texture

I am creating a game using OpenGL that has many textured cubes. I am trying to use an Array Texture to load multiple textures from one file. I tried to setup my texture atlas; however, all that ...
0
votes
1answer
88 views

World space coords for 2d images

How can I make an 2d image using World space coords with a shape? Like a circle instead of a quad.In 3d you can modify the vertices but if I want a smooth circle there will be too much vertices. What ...
0
votes
1answer
52 views

OpenGL ES texture rendered not as expected with disproportional aspect ratio triangles

I cannot seem to understand how texture coordinates work. I try to render a texture into two triangles and this is what I get Where the expected output is a normal continuous image as you can imagine....
0
votes
0answers
28 views

Why are my explosions not showing?

I'm creating a space shooter using type script and I don't understand why explosions won't work meaning that nothing is drawn on the screen and I don't understand what I'm doing wrong. ...
0
votes
1answer
40 views

Display dynamic texture image on inside of sphere

I'm displaying a ring wherever the camera 'looks'. When the camera faces the ground (green) the ring image always looks correct, see image: However, my scene is within a sphere (purple)... and when ...
0
votes
1answer
381 views

Correct way to project a texture with alpha and colors onto surfaces in Unity

I am experimenting with Unity and wanted to project a unit circle beneath a unit and my very first naive approach was to create a child plane below the unit, assign the material to it and stretch it ...
2
votes
1answer
492 views

How can I make tree foliage work with baked lighting?

I have an issue in Unity where my trees are black and it seems to be due to the fact that I'm using baked lighting in my scene. Luckily, it seems that I'm not the only one who's experienced this. I ...
0
votes
1answer
126 views

Issues to display a texture loaded with libPNG with opengles 3.0

I'm trying to load a texture loaded with libPNG on a XY coordinates. I know the width and the height of the texture (32x32). The texture is already loaded successfully and I have his Id. Here is my ...
0
votes
1answer
97 views

Grainy texture from distance

I am using SharpDX, a C# wrapper over DirectX 11 to render terrain. While I am able to render terrain correctly, I noticed that moving around creates a lot of visual noise and makes the texture of ...
0
votes
0answers
27 views

Why SpriteKit game is loading too long?

I have a game which is written using SpriteKit. In this game I need huge amount of texture (about 1000) for animation. I store all of these textures in a texture atlas. When I launch my game, it's ...
0
votes
1answer
72 views

textelFetch returns black value with sampler2D when level is greater than 0

I am trying to write a code for rendering a object with material properties (diffuse and specular). I am trying to use textures to pass float data to the vertex shader (I am accessing the textures in ...
0
votes
1answer
429 views

Using a Compute Shader in Unity to convert a texture to a float array

I have a fairly simple requirement for a compute shader (DirectCompute through Unity). I have a 128x128 texture and I'd like to turn the red channel of that texture into a 1d array of floats. I need ...
0
votes
0answers
22 views

Alternative solutions to applying an overly large and detailed texture to a mesh

I have a very large spherical mesh in my Unity scene (the earth), to which one very large texture is applied (a map of the earth). Now it just so happens that Unity's max texture size (8192 pixels I ...
1
vote
1answer
75 views

How did older games manage their sprites? [closed]

I’m aware that older games would reuse sprites as much as possible (Like the bushes and clouds in Mario, or slime and red slime in dragon quest), how did they manage their sprites? Did they preload ...
0
votes
0answers
15 views

How to manage big ammount of textures into one for the complex model?

I mean when I have a model with a big level of detail or solid gamelevel as ONE model - how to manage all textures for it? For example each wall has 512*512 texture, plus floor etc... To sum up ...
0
votes
1answer
96 views

UNITY - Huge amount of GRAPHICS in RTS Tiled game

after year of development and week of unsuccessful optimization I turn for a help from you, guys. So, my game is turn-based strategy with hexagon map. One hexagon consists of one texture for hexagon ...
1
vote
1answer
281 views

How to expose a child node’s texture from the parent in Godot

I built a simple scene that I instanciate at will. Simply a KinematicBody2D as root, containing a Sprite and a ...
1
vote
1answer
39 views

Texture does not fit the screen

Hi guys I am really new in OpenGL-ES and I am developing a simple android application with NDK, and I just want to ask why the image is not fit after I set the width and height of it. this is my <...
1
vote
1answer
91 views

Ugly Textures in the Distance

I'm here with another question about direct 3d 11 (sharpdx). My terrain engine is working good, but theres a problem with texture mip maps or filter which I can't figure out :/ The problem is basic. ...
0
votes
1answer
429 views

Why LineRenderer texture stretching when I set it to tiled?

I see this: I have a Line Renderer set up like this: This is the material: As you can see even if the texture mode is "Tile" the line stretches after the first element of the line. What am I ...
1
vote
1answer
35 views

LibGDX transparent textures look weird for a brief moment during skeleton animation

So I have a stage with some characters (Spine2D Skeletons). Each character has a health bar/stamina bar texture above them. The textures are simple PNGs with some gradient on them and transparency too....
0
votes
1answer
191 views

DDS load texture and cubemaps

I'm trying to render a skybox with a cubemap on it and to do so I'm using DDS Texture Loader from DirectXTex library. I use texassemble to generate the cubemap (texture array of 6 textures) into a DDS ...
1
vote
1answer
180 views

Project 360 video on the inside of a iso sphere / polygon sphere

I'm creating a game in Unity. I have a iso sphere or polygon sphere, and I want to project a 360 video on the inside of the polygon sphere. I've learned thow to put a 360 video on the inside of a ...
0
votes
2answers
129 views

Optimize polygons renderization

I'm developing a game (in Ogre3D) that, in short, consist in a vehicle that moves along a terrain and leaves a colored trail behind it. The trails are basically quads (a), these quads changes their ...
2
votes
0answers
48 views

Weird texture applied

So I applied the baked texture (on the right side of screen shot) but it shows in this manner. What is the problem? I made the model in Blender and also the baked image. The house consists of ...
1
vote
1answer
267 views

How can I properly add material textures to my model?

This is the first time I'm doing game development and I decided to pick Godot engine. I downloaded some object on the internet for my initiation learning. There are four files: throp_srub.obj ...
0
votes
1answer
374 views

LibGDX: How to use AssetManager with Texture Atlases?

A similar question was asked before, but I never saw an answer. How does one load individual texture regions that derive from a texture atlas using assetManager? I know that assetManager relies on a ...
0
votes
1answer
115 views

Creating single texture for all materials in substance painter with ID map. ID map doesn't bake properly

I am trying to create single texture for multiple materials in substance painter according to this tutorial. https://www.youtube.com/watch?v=HMP2xpGHimY I have two models made in Blender. One with ...
1
vote
1answer
41 views

Creating a large ground texture for mobile

Does anyone has any insight on creating / texturing a large mesh that will be used for a mobile game's level map? Specifically, I was wondering how games like Vainglory achieve this. I am familiar ...
2
votes
0answers
66 views

One rock gameobject drops FPS heavily!

Okay so this is really odd I have a game object (a rock) that even though is really high detail drops my fps from around 70 steady to 12! Now the object is divided into LOD's and the closer I get to ...
1
vote
1answer
538 views

How To Resize Existing Texture In OpenGL 4.3

I would like to know how to resize an existing OpenGL 4.3 texture while keeping the current contents. i'm using glTexImage2D(). Do I simply re-call ...
22
votes
2answers
4k views

Does a detailed texture take longer to render?

Let's say I want to render a square; its texture is "square.png." Is it easier for the computer to render it if the texture is just a plain color? And what about if it is a very noisy texture with ...
0
votes
1answer
356 views

Correct way of texture-mapping a 2D mesh in libgdx

this is a question regarding the libGDX framework. I have managed to UV-map a texture to vertices (in 2D) but have come across a few problems that I think might be caused by incorrect order of ...
0
votes
0answers
101 views

How to transfer the shaderresourceview into image using sharpdx?

I had a texture which format was R32G32B32A32_Float, and I got it's shaderresourceview. If I want to transfer it into a image object, then how to do it? Is there any demo or code?
2
votes
1answer
1k views
0
votes
1answer
295 views

Changing texture offset in unity by script

I am trying to change texture offset in a material by a script to create a parallax effect, but it doesn't move a bit no matter what I am trying. Any tips for this case? Or am I missing something?
0
votes
1answer
198 views

DX11: Alpha blending not working with textured quads

A bit novice on directx11. I am rendering some textured quads out of PNG files (with alpha transparency) and get some inconsistency with my alpha blending. I have a background changing color ...
0
votes
1answer
317 views

Creating paralax background in Unity3D

I am trying to create some parallax background in Unity in 2D mode by tweaking offset of the background material and using tiling. I used this tutorial https://www.youtube.com/watch?v=nGw_UBJQPDY as a ...
0
votes
0answers
25 views

Rendering to a 3D texture crating multiple mipmap levels in multiple calls

My goal is to create a 3D texture that contains a voxelization of a quadrant in my scene at some voxel resolution. For this purpose I created a shading program that renders each layer of the ...
0
votes
1answer
435 views

How to create pixel perfect noise shader?

I would like to know how they created the pixel perfect noise shader in monument valley 2 in that b/w level (example picture). I think it starts with a billboard shader, but I have no clue how to ...