Questions tagged [textures]

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

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

Extract “alpha” layed from “.dds” DXT3/DXT5 texture file

Given: Examples are provided using python, but it's not matter. There is white_small.png, contains RGBA. And there is ...
0
votes
0answers
11 views

Unity cloud build speedtree textures incorrect type after build

So I finally (after a few days) got unity cloud build to work. When I build it using the unity editor everything is fine. However, when the cloud build service builds it I get some odd textures for ...
1
vote
1answer
39 views

How to add noise into a texture?

I'm working on a Heat Map generated from Perlin Noise. So far I've got 2 different outputs. Let's go step by step: The result should be something like this: This is the Perlin Noise I've got, easy ...
0
votes
0answers
27 views

Blitting multiple SDL_Surface texts on top of an empty SDL_Surface results in strange outlines

I'm trying to create a single SDL_Surface that has multiple lines of texts stacked on top of each other using SDL2. When I create a single ...
0
votes
0answers
15 views

OpenGL Bump map issues

I'm using Core-Profile OpenGL version 3.3 and I'm trying to implement bump mapping. I'm loading the model thanks to assimp and adding 2 textures to the material one for the diffuse color and one for ...
0
votes
1answer
47 views

Soft Body rendering from OBJ model

As part of my master thesis I have to do an softbody simulation. I 'm using Bullet Physics engine. I'm trying to render softbody, create from Meshes, with Shaders in OpenGL but the object doesnt ...
2
votes
1answer
23 views

Removing texture wrapping artifacts in OpenGLES

I'm drawing an 2D array of cubes in 3D space using OpenGLES. The texture that I have bound is spritesheet-style; that is, it's multiple textures packed into one. If you look closely at the front of ...
-1
votes
1answer
60 views

What are these three different texture types I found in Pokémon sun?

I am currently trying to extract the Pokémon models/textures/animations of the Pokémon Sun game so i can use them as placeholders in Godot. At the moment I have the model, the textures and the ...
2
votes
0answers
26 views

How can I spread my texture evenly across a cylinder in Unreal Engine 4?

How can I spread my texture evenly across a cylinder in Unreal Engine 4? Specifically, in the image below, I would like have texture on cylinder (on the left) match the one on the box (on the right). ...
2
votes
1answer
70 views

How to store noise in a GL texture

I find that my procedural simplex noise in my fragment shader hurts performance, so I thought I would just use a stored noise texture instead. I would like my noise values to have better than 8 bits ...
0
votes
1answer
31 views

Rendering multiple textures on same image for terrain with index buffers (LWJGL 3)

I have started with LWJGL3 and trying to built game engine. I'm stuck on generating terrains and this is my second big problem and I'm exhausted so I need some advice on how to solve my problem. What ...
2
votes
1answer
28 views

Problem with rendering multiple textures from same image (LWJGL 3)

I have started with LWJGL3 and trying to built game engine. I'm stuck on generating terrains. I have one image that contains two textures. So now for example I want to generate terrain with only ...
0
votes
1answer
36 views

How to make a texture appear the same way in a cube?

My problem seems so simple, that before asking the question here I did a search on google and this site: https://forums.unrealengine.com/development-discussion/content-creation/33665-applying-and-...
2
votes
1answer
69 views

How to set the UVs of a procedurally generated road mesh?

I want to create a road through a c# script in Unity. I created a mesh like this. The "vertetices" first adds the left and then the right points. Then set the UV the same order and value as "...
2
votes
1answer
62 views

OpenGL Textures: Texture contains color lines when object is further away that some distance

I tried searching on the web but couldn't find a reason for this. When I render an object close to the camera, the object and texture renders fine. But further away from a fixed distance, it starts ...
1
vote
1answer
51 views

What would be the benefit of placing all of a room's textures on an object outside of the camera's view?

Pokémon XD: Gale of Darkness does an odd thing with textures. As described in this video, all textures for a room are placed on an object outside of the camera's view: This kind of caught me off-...
0
votes
0answers
14 views

UV mapping a playing card in Maya for use in Unity (using a SpriteSheet of all the playing cards). One Material or Two?

I am wanting to make a pack of cards in Unity and Maya. I am familiar with UV unwrapping in Maya, but I never used sprite sheet for my models i unwrapped. (They all just fit onto one texture so far). ...
2
votes
1answer
54 views

Tiling texture doesn't repeat, even though wrap mode is set to repeat

For some reason, my floor tiling (set to 100 x 100) only shows on one corner of the plane. Past that corner, it just stretches out to the sides and leaves the middle one solid colour: Here is how I'...
0
votes
0answers
19 views

Substance Painter Reset 2D View?

I have been working through the 2D view to apply textures and such then for some reason the camera just spazzed out and zoomed out alot and the F key only seems to reset the 3D View. How would I go ...
0
votes
0answers
13 views

Pands3d. Get value of texture under mouse cursor

That's quite straitforward. While creating a technical demo, i encountered a problem, where i need to know color of textures under mouse coursor. As i see it, there must be a function to transform ...
0
votes
0answers
59 views

Render (screenshot) weapon model in Counter-Strike: Global Offensive

I need to take screenshot of weapon model from screen like this, without any background. Tried to remove and change resources using mat_texture_list console command,...
0
votes
1answer
33 views

Finding texture coordinates for plane

I am creating a 3D ray tracer and want to add textured planes. My planes are stored using a position vector and a normal vector. I want to use a square texture and map it repetitively onto the plane....
0
votes
1answer
82 views

How to change Texture2D type to Sprite during runtime (Unity)

How can we convert the Texture2D type to "Sprite" using the script (not in Editor)? It seems that the Texture2D retrieved from file is by default Normal Map. I need to convert the TextureType to "...
1
vote
0answers
31 views

Unity: Terrain Texturing Roads

The way I would texture a road within a given terrain is with a seperate mesh and a horizontally tileable texture such as this: Then make sure the texture on the edge of the road and the terrain ...
0
votes
0answers
26 views

HLSL Texture Sampling Instability

I'm having some very strange behavior trying to calculate gradients in a shader. In both snippets, uv is the texture coordinate, duv is a float3 proportional to (1/width,1/height,0), c is tex2D(...
1
vote
0answers
17 views

How to import a texture to be used as occlusion map?

The same way normal maps need to be imported as "Normal map" in the import settings, how should I setup an Ambient Occlusion texture to correctly work? I've been searching around in the manual and ...
0
votes
0answers
39 views

Draw sprite outline with sprite renderer in opengl

I'm using a scenegraph with the visitor pattern to draw sprites in my 2D GameEngine. It works great. Now I'd like to render the lines of the cube the sprite is rendered onto. ...
0
votes
1answer
60 views

Missing texture after add new actors

I want to add two types of characters multiple times but when I add a new actor to stage texture in "old" actors stops render. I can add multiple KnightActor (...
0
votes
1answer
53 views

Black and white textures load as turquoise?

I have some black and white, and some grayscale textures, that are loading in unity as turquoise and white textures. What is causing this and how can I fix this? Also, can somebody verify that I am ...
3
votes
0answers
85 views

How to use large texture atlases in my shaders on mobile devices

This is a frustrating discovery. I have ported my desktop game to mobile and discovered that floating point precision in my shaders is not good. I have large animations which I store per frame on a ...
1
vote
2answers
84 views

C++ OpenGL texture warping

I'm currently doing simple 3D drawing in OpenGL but I have hit a roadblock I just can't seem to get around. The problem is happening with trying to load .obj files. I've written my own .obj reader. I ...
0
votes
0answers
15 views

How to dynamically fit texture to screenspace projection of object?

I want to map a texture onto an object so that it gets fitted onto the entire screenspace projection of the object, i.e. for each vertical cross-section of the object as visible by the camera, the ...
0
votes
0answers
12 views

Unity - importing Blender materials

Could someone help me understand something? I'm a bit confused as to why Unity doesn't import simple coloured materials over from a .blend file. If I select my character model that I've brought into ...
0
votes
2answers
132 views

Limit Color Pallete Using Shader (Unity)

Basically, what I want to do is take a primary input image texture (which is a render texture in-game) and a secondary pallete texture (contains X number of colors, and is X by 1 pixels in size). What ...
0
votes
1answer
45 views

How to rotate two textures at once in Libgdx, while keeping their relative positions the same?

I am trying to develop a game with cards, where the user can swipe left or right to tilt the cards like this. The red & white cross should stay in the same position on the yellow card as they tilt ...
1
vote
0answers
47 views

HLSL DXGI_FORMAT_A8_UNORM Texture - dark colors appear less opaque than white

I am trying to render a DXGI_FORMAT_A8_UNORM texture (precisely, a font bitmap) in multiple colors by specifying the color per vertex and then apply the alpha value ...
0
votes
0answers
36 views

How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric

I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
0
votes
1answer
33 views

For creating a distant moon in a 3D game, is it better to use a model or texture?

I'm working on my indie game and I want to create a moon (it's a 3D game) however I am unsure if I should create a model and put it far away, or if I should use a texture on a plane and have it ...
0
votes
1answer
62 views

Draw a texture2D at specific coordinates on another Texture2D

I have a ShipTexture and a Sail Texture. I need to draw the sail texture at a specific location on the shipTexture (call it the sailMountPoint) regardless of the location vector associated with the ...
2
votes
1answer
262 views

Unity – How to keep sprites sharp and crisp, even while rotating

How can I maintain crisp, sharp edges on sprites, while avoiding the aliasing caused by rotation? None of the things I've tried produce a pixel-perfect non-rotated block, while allowing rotation ...
0
votes
1answer
95 views

How to use 2D textures in OpenGL / WebGL for physics [closed]

Following along the answer here, it was mentioned about textures: They can also store things like velocities. For example, you can use a texture as a "flow field" for animating particles or other ...
0
votes
0answers
14 views

How to make texture visible in unity from blender file?

I've imported a tree to Unity that I've made in blender, but the texture of the tree is not visible. Could you please tell me how to make that texture visible? I am a beginer and I don't know how to ...
0
votes
1answer
41 views

How to use textures in 2D games in WebGL

I have been trying to figure out how to structure the VBOs in WebGL, and think that keeping them all together in one if at all possible sounds like the best approach. Right now I'm thinking of having ...
5
votes
1answer
184 views

How can I let players “scrape away” one texture to reveal another?

In this game I'm making, I want my players to be able to remove rust from an object based on collisions from another object such as a wire brush. Since it's a VR game, performance is key. I've ...
3
votes
1answer
93 views

Randomizing material across meshes - UE4

I have multiple instances of the same mesh which is using the same material. While looking for randomizing textures, I came across texture bombing and so the material in 1 wall looks fairly random. ...
0
votes
0answers
64 views

Conversion from single-plane to multi-plane texture formats in Vulkan

How can we copy a texture in VK_FORMAT_R8G8B8A8_UNORM to VK_FORMAT_G8_B8R8_2PLANE_420_UNORM under the assumption that no color ...
0
votes
0answers
18 views

Applying material to group of meshes - Unreal engine 4

I'm trying to apply some materials to a group of static meshes (free internet content), but the problem is the material seems to be disconnected at the joint of the meshes. In the image you can see ...
0
votes
1answer
185 views

opengl - flickering of fragments even with disabled depth test

I'm trying to render a quad with a coloured border. I'm using texture coordinates to detect whether the fragment should be considered part of border or not. If it is part of border, then render it ...
0
votes
0answers
127 views

OpenGL seamless repeated texture has artifacts on edges

I'm currently trying to map a seamless texture onto a 3d wall object but when it comes to the edges of the texture there are visible artifacts. closeup: Here is the shader code i use for the texture ...
0
votes
0answers
21 views

A good way to record texture animation?

I want to animate rain on a windshield-mesh. The animation should be looped... And then I want to swipe the rain with windshield wipers. (also looped) So the texture on the windshield is supposed to ...