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.

0
votes
0answers
31 views

Running OpenGL app on Windows XP x86 produces incorrect texture colors

I'm working with the Cen64 emulator and I compiled from source a x86 version that operates fine on Windows 10 x64. As soon as I run it on a Windows XP x86 machine the colors are then all incorrect. ...
1
vote
1answer
400 views

Texture upside down

I'm making a top down 3d game. I made a model in blender, uv unwrapped it, and made a texture for it. Texture in blender from the top: I saved the model as a .blend file and the texture as a png. I ...
0
votes
1answer
42 views

How do i properly make a skybox in Unity?

I have some trouble creating a sky box from a panoramic texture. Everything appears to be working. However there are some artifacts in one place. How do i get rid of them?
0
votes
0answers
23 views

Texturing edges of a procedurally generated polygon

I'm generating a polygon from code to display unit ranges in my game. Here's how it looks so far: I would love to be able to now use my texture and only apply it to the edges of this polygon (imagine ...
0
votes
0answers
18 views

DirectX 11 - Rendering to Texture only display the clear colour

I'm attempting to render the scene from the current view matrix onto a texture (currently just for testing purposes) but I can't for the life of me get it to work. Currently all the texture displays ...
1
vote
1answer
3k views

How can I implement 3D textures using webgl?

I went through the google I/O video but did not get exactly how to do it. If somebody could point me to a simple 3D texture implementation using webgl, it would be helpful. i basically have a volume, ...
0
votes
1answer
2k views

What's wrong my code to create a GL texture from an SDL_Surface?

I have an issue here with converting an existing SDL_Surface into an OpenGL texture. The texture gets created, but it's a plain white texture, below is a screenshot of the result: It seems to me ...
1
vote
1answer
17 views

What's the best practice to use the pbo to upload multi textures?

I have a basic model to upload textures as shown in the following picture. I design this for several reasons: Only the primary thread owns the OpenGL context, so I choose to create buffers, map ...
0
votes
0answers
20 views

DirectX 11 - Skybox Texture messed up

I'm attempting to create a skybox and I'm currently having some issues with the texture where it looks like this: It seems the textures are not really "sticking to their sides" correctly as it looks ...
0
votes
1answer
36 views

“RENDER WARNING: there is no texture bound to the unit 0” When not Rendering Texture

I have a webgl program that sometimes renders textures, but mostly renders triangles or lines. When I am not rendering a texture, webgl gives the warning, "...
0
votes
0answers
23 views

Godot: Possible to create a 2D tilemap and set it as a texture for a 3D surface?

If I created tilemap of some sort of pattern or image and wanted to set it as the texture of a 3d surface or 3d model, how would I do it?
0
votes
0answers
18 views

Adding another diffuse texture on top of the existing one in Unity3D?

I'm working on a voxel game, and I would like to add different properties to the voxels, which are visualised by an extra (transparent) diffuse texture on the voxel's default one. Voxels could have ...
0
votes
1answer
445 views

LibGDX - Draw multiple textures with different positions with one shader?

currently I'm optimizing my render calls by drawing multiple textures with one shader. The background textures who all share the same position are no problem. But now I want to draw some Textures with ...
0
votes
1answer
20 views

Sprite more bright than texture

I have imported new texture to UE, and have created new sprite. In the sprite I set as material next one: Also I set as Texture-parameter my texture. But my sprite render more bright than its texture....
0
votes
1answer
48 views

How can I pack repeated textures into one texture efficiently?

I have an obj mesh with some textures, several of them are repeated(uvs are not within [0,1]). I'd like to merge all those textures into one texture and transform the uvs of obj.
1
vote
2answers
582 views

UE4 - Loop through pixels for material

I am using Unreal Engine 4, and I want to try to procedurally generate a grass texture. For now, I am using a noise block. Now I want to loop through every 16 pixels or whatever (4x4 squares), take ...
11
votes
1answer
558 views

XNA Adding Craters (via GPU) with a “Burn” Effect

I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). ...
3
votes
1answer
363 views

Dynamically applied texture to GameObject using GUI button [closed]

In a scene I have multiple different GameObjects (almost 30 kinds) with parent child relationships. At run time (by using a GUI button) I want to change the texture of each clicked GameObject. As the ...
20
votes
2answers
29k views

How many textures can usually I bind at once?

I'm developing a game engine, and it's only going to work on modern (Shader model 4+) hardware. I figure that, by the time I'm done with it, that won't be such an unreasonable requirement. My ...
1
vote
1answer
419 views

Unity procedural skybox shader texture stretching

I am using the procedural skybox shader that Unity provides, but have tweaked it so that I can have a cloud texture. The problem I have, is that the texture is not tiling correctly, even though it is ...
0
votes
1answer
19 views

When I open an image from Unity in preview it's blank?

Ok, I need to know why this is and don't have the .png anywhere else. I have a texture in Unity that I need to edit in Photoshop, yet when I Reveal the image in Finder then open it in preview or ...
0
votes
1answer
253 views

LibGDX: Best Texture Sizes to use for highest resolution?

I have two texture atlases: 1 is 1024x1024 (mostly used for GUI elements), the other is 2048x2048 (for game objects like characters). I used Texture filter mip map linear on them. But when the ...
1
vote
0answers
29 views

Is it possible to make a randomly rotating terrain texture painting brush in Unity?

I wanted to make a terrain in unity with a dirt texture painted onto the original grass texture to make a path, but when I tried, the dirt (and grass) looked repetitive and full of patterns. My ...
0
votes
1answer
140 views

Vulkan rendering of Minecraft-like world in C++

I decided on using 16x16x16 (4096 total) chunks of blocks. Problem is with textures. First idea was about texture atlas but it would require a lot of calculation and possible problems in dividing UV (...
0
votes
1answer
33 views

How to create a 32 bit red texture byte buffer

I want to make a red texture image buffer. Would anyone help me to make it in right way. I have tried following: ...
0
votes
0answers
23 views

How to scale UV coordinates from a specific offset?

I'm currently attempting to copy a small texture onto a larger texture, but I want to have control over how large and at what UV position the smaller texture is copied over. I've made some progress ...
0
votes
0answers
10 views

How can I tell if a vertex is mapped outside the texture map?

Let's say I create a shadow map from a specific view and then apply that map to a scene. Some objects lie outside the map and they take colors depending on how you defined the shadow map (for example ...
1
vote
1answer
2k views

3ds max render to texture in PNG

Using 3ds Max 2012, I've been able to use the "render to texture" function to successfully bake my lighting. The only problem is that these image files are always output to TGA files. I need PNG ...
0
votes
1answer
376 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 ...
1
vote
1answer
478 views

Showing background transparent image in android [closed]

I have a image with transparent background created from photoshop. I added this to my android game which I am creating using libgdx. But when I add it to that, it is shown with white background like ...
0
votes
2answers
440 views

How can I have margins or padding around a texture in libgdx?

I am building a game using libgdx a 2048 like game and I draw the tiles of the board using textures (each texture represents a tile with the number 2 or 4 etc.) I would like tohave a small space ...
1
vote
1answer
270 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 ...
1
vote
0answers
24 views

How do I wrap my custom texture to a quad using DX11 and C++?

I have manually cut out some textures from a sprite sheet and saved them as individual files for now, and I am trying to load in this png and apply it to the quad I have drawn on the screen, but for ...
1
vote
2answers
29 views

Meshes exported from blender as .obj does not map correctly

I am having some problems with developing my game in OpenGL with java (Using LWJGL3). I have been following a guide for the more complex steps of the process, like loading meshes. When using the ...
0
votes
1answer
131 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
30 views

PVRCT Texture Format with glTexStorage2D on Open GL 3.0 ES How?

I've looked everywhere and I can't seem to find the answer. How can I use glTexStorage2D with PVRCT textures? I've done this: ...
1
vote
2answers
297 views

Proper way to update pixel array data

For a game that updates a board every frame I am calculating the next arrangement of board, updating pixel array data and render board as 2D texture to quad the size of the screen using OpenGL. I use:...
0
votes
1answer
89 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
46 views

OpenGL Textures not showing

So I'm currently working on a small C++ project for a school assessment and for some reason my Textures are not showing when I run the game. I don't get any compilation errors but they don't show up. ...
1
vote
0answers
33 views

How do I create textured landscape in low poly style?

I'm trying to create something similar to this kind of artistic landscapes in Unity. I've been from trying to use Unity's terrain system and Gaia to making it in Blender; no matter how I can't figure ...
0
votes
0answers
25 views

Unity apply materials to parts of a mesh

How can I apply materials to a part of a mesh in Unity ? As an example I would like to place grass on the first half of a plane and rocks on the second. And if possible, how can I manage transitions ...
4
votes
2answers
1k views

Generate ETC2 compressed texture from Android Bitmap in OpenGL ES 2

My app currently uses a lot of textures most of which probably could be compressed quite a lot by using ETC2 (my app runs on 4.4 so i have a lot of devices supporting GLES30), i cannot use ETC1 since ...
0
votes
0answers
7 views

Substance Painter Bayblon.js PBR export (gltf)?

I am using Substance Painter 2018.3 and want to export my PBR material for babylon.js. The documentation of Babylon.js states: metallicRoughnessTexture: Texture containing both the metallic value ...
0
votes
0answers
59 views

How to get Pixel Coordinates of certain colors in a Texture?

I have a relatively big Texture, and I try to find a certain color pixels pattern: eg. White, Black, White, Green . They are lying next to each other, If I use Texture2d.Getpixels() on every pixel ...
0
votes
1answer
107 views

Where should I store textures for a game?

I am currently creating a game in SFML using C++ and I'm wondering: what is good practise for a location for textures? Should I store it with my project? Or my executable? Or even in something like ...
0
votes
1answer
42 views

Stealing system RAM for texture cache

As an example, the N64 has a notorious 4kb texture cache. Could someone sap another 4kb (or more) from the system's RAM or the Expansion Pak and use that as texture cache space? If so, would it be ...
0
votes
1answer
38 views

Difference between texture.Load and texture.Sample(PointSampler,..) in HLSL/Dx

Conceptually, I understand the difference between load and sample but I want to know if essentially point sampling and load do the same thing when it comes to selecting a texture value (ignoring an ...
0
votes
0answers
30 views

Repeat a region of an atlas

I'm using libGDX and I've switched from using a Texture instance for each wall in my game to an atlas. The wall texture you see was repeated alright: As you can see, it skips textures when I switched ...
0
votes
1answer
56 views

Element's texture is null - Monogame/XNA, C#

I have a ArgumentNullException everytime I try to call the Draw() method of my Projectile class in the Game1.Draw() method. In Game1.cs Initialize() method: ...
1
vote
4answers
445 views

Why some textures become black in GDX

I have such situation in my GDX game: I have a static class that manage my Drawables. It's a Singleton. I want to load all my ...