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.

5
votes
0answers
270 views

Environment mapping without cubemap (need coordinates projection)

I'm working on a project with C++ and glsl (4.1). I have implemented a mirror object which is a plane at height 0 that works as follow: I render the scene with a MVP computed such that the camera ...
4
votes
0answers
326 views

Render live MJPEG stream on a plane in Unity

I'm trying to display a live video stream as a texture in Unity. It comes from a Raspberry Pi using motion and encoded as MJPEG. Is there an easy way to implement ...
3
votes
0answers
74 views

Advanced copying between textures in OpenGL

I have many RGBA textures in my project. I often copy a part of one texture into another texture using copyTexSubImage2D . I am probably able to copy just a specific channel by setting mask (colorMask)...
3
votes
0answers
374 views

Build includes sprite packer atlas and its original textures

I use Unity's Sprite Packer, it's working great. However, when I looked at the build report (in the Editor.log) it turns out that the build often includes the generated atlas texture and its original ...
3
votes
0answers
714 views

Particle-system in the GPU in Unity: how to load/store data from/to a texture in the shader?

I have been implementing a simple GPU-based particle system in Unity, for my current game. The setup is indeed not very elaborated: the shader receives a set of coordinates passed trough the position ...
3
votes
0answers
188 views

DX 11 Specular Highlights in Deferred Renderer

I am currently implementing a deferred renderer in DX11.1. Right now I am having a problem that I can't seem to crack with specular highlights when I have multiple light sources. I keep a vector of ...
3
votes
0answers
457 views

Drawing cube map and texture array on NVidia cards doesn't work

I have small problem with shadow maps preview. After binding shadow framebuffer I bind proper texture to store depth in it and then render the whole scene. When I read that values in shader to ...
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 ...
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 ...
2
votes
0answers
180 views

How to render texture into box2d objects from Tile Map? Libgdx

I have a problem, when i try to render textures. I read positions of gameObjects, for example coin and create box2d objects circle shape. I have wrote game logic and began make a graphic. But for some ...
2
votes
0answers
146 views

Should I use ASTC

So I read about ASTC and that it should be preferred over S3TC. Where I'm concerned is the current status of hardware support. According to Wikipedia every major GPU manufacturer supports ASTC but ...
2
votes
0answers
124 views

What am I doing wrong, in regards to multi-texture?

I am writing a bump mapping demo, so I need an image texture, and a normal texture which should be loaded into the fragment shader. This is the texture part of my OpenGL code: ...
2
votes
0answers
170 views

How to map trapezoid image to rectangle cubemap face?

I am writing a 360 video application on oculus mobile SDK. My video frame has a trapezoid region and I need to map it into a rectangle region. In the above figure, trapezoid ...
2
votes
0answers
210 views

Custom Inspector for textures?

I am working with an open source project called Project Porcupine. The project is a game engine for a base building game that allows for one to extend the game. We have a system to read texture files, ...
2
votes
0answers
31 views

First time working on 3D game: exporting steps after designer finishes 3D characters?

First time making a 3D game so could use advice. The designer is creating 3D characters with Cinema 4D (https://www.maxon.net/en/products/cinema-4d/overview/). What steps are required to go from his ...
2
votes
0answers
183 views

Texture gets blurry when moving Box2D body

I'm having this issue that is very annoying. Somehow the texture of the player body is getting blurry and leaving a slight trail with its colors when moving it. The interesting fact is, this only ...
2
votes
0answers
688 views

OpenGL textures make very low fps

I loaded some textures just one time before I go to my mainloop(glutMainLoop). I am using SDL for the texture loading. However, when I compile, my game is running at 6-10 fps. When I don't load the ...
2
votes
0answers
262 views

SDL2 SDL_CreateTexture returns pointer to existing texture

I have an initialized renderer in SDL2 that works fine. I create some textures from images using SDL_CreateTextureFromSurface and store them in a vector. ...
2
votes
0answers
289 views

Should I bake all textures to a texture atlas in a game level?

I'm writing my own game engine using Java/OpenGL. I'm creating levels in Blender 3D and exporting them in a custom file format. I'm not going to be auto-generating any terrain - everything is going ...
2
votes
0answers
92 views

Texture shader using model's texture

I'm trying to get a model rendered in monogame using a texture shader. I'm using the code from this tutorial project: http://kgiannakakis.github.io/MonoGameEffects/ I created a simple textured cube ...
2
votes
0answers
367 views

LibGDX Android Textures reload other textures, and transparent images get black backgrounds [Pictures]

I have very strange problems with my LibGDX Game in Android - The problem is that sometimes the textures get black backgrounds when they should be transparent, and sometimes when I remove the texture, ...
2
votes
0answers
816 views

LibgGDX drawing two separate Textures in FrameBuffer

So I am trying to combine multiple TextureRegions in to one by using a FrameBuffer. This works extremely well when the ...
2
votes
0answers
1k views

Is it reasonable to use a 2D texture as a lookup table in GLSL

I need a lookup table in a shader. The input values would be color values and the output other color values. Something like: ...
2
votes
0answers
318 views

1:1 mapping of texels to pixels with DX11 and multisampling and linear interpolation

Is it possible to get a 1:1 mapping of texels to pixels on a multisampled target in DX 11 with interpolation? It seems to me that the texture coordinate used in the shader is always one of the sub-...
2
votes
0answers
612 views

glFramebufferTexture2D gives corruption with cube map textures

I am using glFramebufferTexture2D with cube map textures but it gives corruption in texture. draw_cube() function works perfectly when i draw that on default framebuffer. ...
2
votes
0answers
2k views

Interactively edit UV mapped, textured mesh in Cinema 4D without distorting texture?

I'm fairly new to Cinema and I'm building a rigged flat (2d) character out of illustrated pieces. I want the meshes to have an efficient number of polys but sufficient resolution where they'll bend ...
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 ...
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
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 ...
1
vote
0answers
50 views

Design of (texture) resource system

For an open source game I wanted to redesign the resource management system but got into a dead end and need some pointers to some reading material or where to go now. Starting point was (mostly) a <...
1
vote
0answers
21 views

Built-in Terrain analogs search: is it worth to use imported 3d-model?

I think 3d-model is better than the built-in terrain-component in Unity when it comes to optimization. But when it comes to texturing terrain made in 3rd party 3d-modeller, how to apply resulting ...
1
vote
0answers
21 views

Emissive material from white texture

I have texture with black and white shapes. I would like that white parts are emissive and black parts are transparent/glass. How to make such material ?
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. ...
1
vote
0answers
89 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 ...
1
vote
0answers
405 views

Unity shaders - blend edges of tile textures stored in an atlas

I'm creating a tile based game. The tiles can have different textures. All the textures are loaded at startup and dynamically packed in a texture atlas (this is done to make modding easier). Each tile ...
1
vote
0answers
345 views

How to use array texture as a replacement for a texture atlas given thousands of block types in minecraft style game?

I've been trying to figure out how texture atlassing works, only to see people say that you shouldn't do it, and instead use array textures (provided you can target people with that capability, which ...
1
vote
0answers
32 views

DragonBones import question

Most DragonBones tutorials I've found seem to have you importing separate files at the start of a project, but the example projects use a single PNG texture containing all the parts of the final ...
1
vote
0answers
324 views

Computing the UV coordinates of a 3D point that lies within a 3D triangle

From a triangular mesh I have a 3D triangle T represented by 3D vertexes v0, v1 and v2. Each vertex has an associated UV coordinate into a common texture image, represented as uv0, uv1, uv2. ...
1
vote
0answers
32 views

Animated Impostor

I need to create explosions and smoke, but as the particle does not interact with the environment (there are in the background) I was thinking of using the Animated Impostor technique (or animated ...
1
vote
0answers
60 views

images loaded onto texture appear completely white

I am applying a texture to a primitive plane using ARKit and Unity like so, ...
1
vote
0answers
219 views

LibGdx: Texturing cube results in jagged transparent edges

currently I'm in the works of programming a game - surprise xD I'm using LibGdx for this manner but I've encountered a very unknown bug I guess. I wasn't able to get any further by searching the ...
1
vote
0answers
381 views

Directx11 create Texture2D using subresourceData

I'm trying to create immutable texture in d3d11 so I want to use subresourceData, every tutorial on textures creates them with 2nd argument being null and after that updates subresource but I want to ...
1
vote
0answers
43 views

Textures blink where there would be black

I am texturing my level, but every single texture "blinks" where there would be black, (as seen in photo) I dont know how to fix this, they worked fine earlier.
1
vote
0answers
81 views

Why is the texture all wrong on my model?

Why is this happening? If possible I'd like to know what this particular problem is called. The model is a simple cube made in blender and exported with normals and MTL. Texture is the cube unwrapped ...
1
vote
0answers
103 views

Problems exporting meshes to Unity 5

After creating a tree (Scots Pine) in SpeedTree Cinema v7.1.1 I exported it as a .FBX ascii file to Unity 5 and I encountered a problem; the leaf material, while viewing it in Unity 5, can only be ...
1
vote
0answers
58 views

How can I get textures to combine naturally in Half Life SDK?

I'm quite new to Half Life SDK, the SDK dedicated to the original Half Life, and have mostly been testing my abilities by recreating certain scenes from Half Life 1 and its expansions. One such scene ...
1
vote
0answers
319 views

Generating texture coordinates autmatically with Cube Mapping for an object that is not a skybox in OpenGL

I am wondering whether its possible to automatically generate texture coordinates for custom obj models to work with cubemaps. Every tutorial I see online is about environment mapping. Is it possible ...
1
vote
0answers
186 views

Texture mapping artifacts at triangle edge (for thin triangles?)

I'm working on generating programmatic textures for 3d models and showing them in WebGL using Threejs. To do this I generate a texture image (PNG) that contains per-triangle textures (a rectangle on ...
1
vote
0answers
254 views

OpenGL ES 2.0 Framebuffer stays empty?

As first I want excuse me for opening another FBO question. I found alot of them but I still can not manage to get it working. I want to implement a framebuffer class for postprocesing in my 2D ...
1
vote
0answers
340 views

1D vs 2D vs 3D texture performance

I'm working on a 3D game with large blocky untextured, but individually colored, voxels (similar to CubeWorld). For rendering, right now I naively convert online all visible faces ahead of time to ...