Questions tagged [textures]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
478 views

How can I bake several variations of a substance?

I have a substance (sbsar) that I'm using to generate a procedural material . I have applied this texture to reversi pieces. It works well, but all the pieces look identical. I addressed this by ...
1
vote
0answers
68 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 ...
2
votes
2answers
538 views

SDL2 Textures bleeding / 1px border around tile maps - SDL_RenderCopyEx taking integer arguments

https://forums.libsdl.org/viewtopic.php?t=9486 This post gives a good indication of my question. Basically if you set SDL2 logicalScale or otherwise and render textures at native window resolution ...
45
votes
3answers
6k views

Why are examples of game textures often represented on a sphere model?

I have recently started working with Unity and was looking for textures for the background (castle walls and such pieces) on a game that I am thinking about eventually building. I noticed that the ...
1
vote
0answers
399 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
1answer
902 views

How can I efficiently make a solid Texture2D?

I am trying to programmatically make an Image to cover the entire screen. I create the Texture2D, then create a Sprite from the ...
3
votes
0answers
153 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: ...
0
votes
0answers
49 views

How to get the “(human) Face” position from Webcam Texture

I am searching a way to recalculate the current Position of the Face in "Virtual World Position" From a Webcam Texture. I was thinking about a way to solve this via taking the Average Pupillary ...
2
votes
2answers
2k views

texture coordinates seem to have flipped or incorrect position?

I have a working cube in 3d space that has a texture wrapped to it. now when I say working it maps two of the 6 faces correctly. from what I can tell is that the texture coordinates are moved up "a ...
2
votes
3answers
2k views

How to reduce lag when rendering 40,000 sprites in Unity?

I am attempting to render 40,000 sprites: a grid of 200x200 with each grid node having a sprite renderer. All the way zoomed out I get about ~20 frames per second. What would be the best way to ...
1
vote
1answer
222 views

How to calculate a projection of 360° equirectangular slides?

My goal is to have a light source inside of a transparent sphere that has an equirectangular texture to act as a 360°-slide. I want to get the projection on arbitrary objects as a texture image on ...
1
vote
2answers
287 views

OpenGl: Error, The loaded object takes the same colors and style of the Texture?

I'm new to OpenGl Faced this problem: Draw function: ...
1
vote
1answer
251 views

Procedurally generated satellite view textures for large landmass rendering

I'm rendering a big land mass to be viewed from high altitude (40+ km), so I need satellite view style textures to be generated on the fly. The per vertex attributes I've got are: Biome (forest, snow,...
0
votes
1answer
149 views

Setting Texture to material slowly

Have an idea to set the texture to 3D material slowly. It would be like some animation, that change previous texture to new sloowly from bottom to top. I need it to my game... Can't find the solution.....
0
votes
0answers
228 views

Issue whith transparent textures when loading a prefab in Unity

I'm trying to implement Asset Bundles in my Unity game. I used to instantiate a prefab with Instantiate<GameObject>(gameRootPrefab), which worked fine. Now ...
3
votes
1answer
255 views

How to create an OpenGL texture using primitives?

I'm currently rendering a large proportion of the graphics of my game using custom OpenGL primitive functions (e.g. DrawCircleFilled(), ...
0
votes
1answer
241 views

Hard edges with non power of 2 images in OpenGL

When down scaling 2D images in Java2D, it does a great job at preserving hard edges while downscaling to non power of 2s. However, in OpenGL, I have been unable to find a solution to this. I have ...
1
vote
2answers
342 views

C++ SDL Vector of Textures Storing NULL Objects

I'm attempting to (re)learn C++ by making a top-down shooter game using SDL. In my game, I have created a Graphics class that handles all of the drawing, textures, ...
0
votes
3answers
248 views

Unstable sampled color in GLSL shader

It looks like that sampling the same exact color data from different areas of a texture atlas results in different vec4 in the GLSL fragment shader. In other words,...
1
vote
2answers
566 views

Rendering model with multiple tiling textures

See edit: How would I go about rendering a model with multiple tiling textures? I have a few ideas, but all of them have drawbacks, here are a few (by the way this is for an opengl game): -Use a ...
1
vote
0answers
224 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 ...
0
votes
1answer
1k views

How to import texture from Maya to unity?

I am trying to export a model from Maya with animation but when I import into unity I am getting the model but the texture is not there. From the internet I found that while importing the model I need ...
0
votes
2answers
201 views

Wrong UV calculation

For a personal project, I'm trying to implement a tilemap. My goal is to obtain this But all I got is this I am calculating the UV coordinates inside my shader, with this formula. 8 and 13 is the ...
1
vote
1answer
252 views

Why do I have an uneven sprite line, when zooming and moving in libGDX?

I'm having trouble zooming in and moving my sprites. I made a simple drawing to demonstrate what happens. No zoom: Zoomed out: Some lines disappear, when moving a sprite. If I use a filter, this ...
0
votes
1answer
89 views

Why does texture-sampling only work at (0,0,0)?

I want to save the color of every point of one object in the RWTexture3D(UAV Resource) and transfer them to another object in its shader. I made a test in the ...
1
vote
1answer
84 views

How can I add my custom mob to my minecraft game?

So, I'm obviously not a very experienced mob maker, so ill just get to the point. after I made a custom mob, I had no idea where to put it, how to make sound, how to make an egg for it etc. would ...
2
votes
0answers
87 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)...
2
votes
1answer
139 views

Should we avoid a padding of transparent pixels around an image when creating Assets to be used in 3D Space?

Assuming we are creating Assets to be used on iOS in order to create textures that are then mapped to the surface of Quads in 3D Space, is below recommendation and its reasoning appropriate? Try to ...
0
votes
1answer
258 views

Mipmapping on CPU

I'm trying to load a big terrain texture and only want to load a certain mipmap level to the GPU with Vulkan. When the whole terrain is in sight, the camera is far enough away from it so that only a ...
1
vote
0answers
253 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
1answer
3k views

Difference between “texture” vs “texture2d” in OpenGL ES?

I see many example in shadertoy use texture, but in the cocos2d-x, only texture2d. Does ...
0
votes
2answers
234 views

How are minimaps rendered for open worlds?

When I've created minimaps for smaller to medium levels before I would use a large texture mapped to a plane for the minimap and world map. The minimap/world map camera would then view this texture ...
0
votes
1answer
153 views

How to edit the alpha channel of an existing specular map?

I am working with a third party model and need to change the specular map. The model material is using the spec map's alpha channel information. I have opened the spec map in Photoshop and if I go to ...
0
votes
1answer
259 views

My generated texture is flipped

I'm learning OpenGL and I don't understand why my texture is flipped if I give as UVs the "matching" vec2 of the mesh's vertex (vec3). Example: ...
1
vote
1answer
229 views

Textures drawn with visible missing lines of pixels

I am making a game in monogame and have encountered the following problem: The black arrows mark the places where the rendering is "off". As you can see the gray lines aren't "flush" or "smooth". ...
2
votes
1answer
276 views

Triangle Texture Packing Problem

I'm trying to create a texture atlas where each triangle face is laid separately from each other (i.e. it is not typical mesh parameterization). In order to do this, I would have to pack the triangles ...
0
votes
0answers
63 views

Best way to add material to mesh map Unity

Ok bear with me because I don't know most of the terminology yet. I downloaded an asset for 2D tiling to use in my game so I'm basing this off the documentation terminology. It chunks my 1000x1000 map ...
1
vote
2answers
952 views

How can I loop through pixels in the material editor?

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 ...
0
votes
1answer
1k views

How to load and display an image in OpenGL ES 3.0 using C++

I'm trying to make a simple app on Android Studio using the NDK, JNI to call C++ code that load and display an image. I have managed to create the surface and draw a simple Triangle already. Now, I'm ...
0
votes
1answer
534 views

Multiple textures/texture atlas

Is there any performance difference between using multiple textures and using texture atlas in splatmapping? I would want to use multiple ones beacouse tiling and changing them would be easier but ...
4
votes
1answer
887 views

OpenGL - texture releasing

If I call glDeleteTextures, will it release memory immediately? And what is the performance? I know that glGenTexture is quite ...
4
votes
1answer
1k views

How can I render images to multiple windows without creating double textures in SDL2?

Simply put: What is the simplest way to render an image to two different sdl2 windows? I'm pretty new to SLD2, but I have a nice little level editor working. I then decided to move the area with edit ...
2
votes
1answer
600 views

Is there a way to set texture wrap mode as repeat in SDL 2?

In SDL2, I would like to render a texture on the screen, but with destination rectangle greater than texture size. Instead of stretching the texture, I would like ...
1
vote
0answers
341 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 ...
0
votes
2answers
310 views

Texture2D.SetPixel method behaving weirdly in game province creation

I have been trying to implement a province system in Unity. I am trying to read the provinces from an image file, store their coordinates in a province, and use those coordinates to generate a texture ...
0
votes
1answer
4k views

UV World mapping in shader with Unity.

Please refer to this Answer. DMGregory script is working for me, although I have a problem I can't fix because I don't talk shader :) The tiling will be applied correctly on geometry aligned on XY ...
0
votes
1answer
296 views

Particle system color not set properly in Android build in Unity.

I want to set the color of "Particle System" that I add to a game object in run time. Both game object and particle system are created in run time too. I have the following code that works well on PC ...
1
vote
3answers
492 views

Why add a transparent border to a texture?

I've seen game developers give advice to add a transparent border around sprites, for example around 3:00 minutes into this tutorial. Why should we leave a transparent border around a texture before ...
1
vote
0answers
479 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 ...
1
vote
0answers
592 views

How does Unity's QualitySettings.masterTextureLimit work?

I'm trying to get to the bottom of how masterTextureLimit works, but my results have been inconsistent so far. I created a massive sprite (8192x8192), and I'd like to resize it at runtime to save ...