5,844 questions
Score of 4
1 answer
332 views
Loading three.js texture from UInt8Array in plugin
I'm trying to implement a three.js texture loader for the JPEG 360 format. For this purpose, it's really a JPEG image embedded in a nested set of "boxes", very similar to the structures used ...
Score of 0
1 answer
109 views
How do I get a single Texture2D from a Sprite Atlas?
In Unity, I have multiple Sprites which have been packed into a sprite atlas. These sprites also have their own individual Texture2Ds, like so:
I want to get the individual Texture2D of the sprite ...
Score of 2
2 answers
61 views
How to handle negative texture coordinates in a CPU raytracer
Years ago I implemented a CPU raytracing software and things work properly. I then implemented a DirectX 12 viewer. I just found out there is some discrepancies between my 2 implementations when i t ...
Score of 0
1 answer
67 views
How to load and draw texture with opacity in Metal
The background
I'm finally working to convert my very old Mac kaleidoscope application, ScopeWorks, which was written in OpenGL and Objective-C, to a Multiplatform app in SwiftUI and Metal.
I'm using ...
Score of -1
1 answer
49 views
A-frame texture loading problems [closed]
I have been having trouble with loading a gltf model with textures into my project, I have downloaded this gltf model from sketch fab, and it came in a folder with png textures, however when I tried ...
Advice
0
votes
1
replies
105
views
Which texture resolution to use (360/720/1080) when rendering every frame in OpenGL ES (Android) and Metal (iOS)?
I’m building a mobile app that renders UI content using a custom renderer:
Android: OpenGL ES
iOS: Metal
I render textured quads to a surface continuously (targeting ~60 FPS, so a draw loop every ~...
Score of 1
0 answers
65 views
Learn 2D Feature Map for Texture Classification
For a bit of context, I am working in a lab where we use a dissimilarity map to characterize textures between them, called LDM (Local Dissimilarity Maps)[1]. Recently, this was further enhanced by ...
Score of 2
0 answers
90 views
Displaying a coordinate grid and markers on the globe in Unity
Please help me with the Earth model in Unity. I don't understand what's wrong.
I downloaded the blue marble texture from the NASA website, attached it to a Material, and placed it on a sphere.
I want ...
Score of 1
0 answers
242 views
Texture for a 3d model I made in blockbench fails to load, while another one does load, and I cannot seem to find the difference
I am coding a Minecraft 1.21.1 Java mod for Fabric, and I made two custom 3D textures in blockbench. One of them, labelled Pure_mace does load, and the other Great_nail, fails, I cannot find anything ...
Score of 2
1 answer
211 views
How do you upscale DirectX 11 textures?
I have sample code that creates a 320x180 texture and displays it in a resizable window that starts off at 320x180 inner-size.
But as I resize the window upwards, the texture is blurry. I thought that ...
Score of -1
1 answer
126 views
Why reading from a storage texture 2d array always returns the same value in webGPU?
What i'm trying to do is write to a storage texture in one render pass, and then read from this texture in a second pass, but value i get in the second pass is always the same, regardless of what i ...
Score of 3
2 answers
201 views
Texture is blurred in Apple Metal / GLFW / C++
I'm working on macOS app with Metal-based rendering.
App is entirely in C++ and uses metal-cpp + GLFW.
Trying to implement pixel-perfect quality of rendered content I experienced a problem with ...
Score of 1
2 answers
151 views
How to tile a texture vertically only?
In my app, I need to display images (textures).
Some are tiled, and some are stretched.
At the time, I have this code working:
Image(frame.image)
.resizable(resizingMode: (frame.repeatTexture == true) ...
Score of 0
0 answers
147 views
PixiJS - play multiple instances of the same video file separately
I have several instances of PIXI.Sprite sharing the same video element as a source for their textures.
My problem it that I need them not to be synced, so I should be able to control each animation ...
Score of 0
0 answers
149 views
why is this animation texture baker shader not compiling?
ok so I'm trying to bake an animation into a texture so I can use that in a material to run later. I currently trying to use the following code I found on GitHub to do the job for me:
the_code
I don't ...
Score of 0
0 answers
29 views
SwiftUI layout depends unexpectedly on Metal texture2DDescriptor [duplicate]
I have a SwiftUI view that should display two views in an HStack with equal width.
My ContentView is:
struct ContentView: View {
var body: some View {
HStack {
Group {
...
Score of 1
1 answer
94 views
Using Processing P3D (OpenGL) texture is not drawing, no error is reported
The following program correctly renders a textured quad in processing using the underlying OpenGL.
The texture is here
PShape s;
void setup() {
size(800, 800, P3D);
PImage ringtexture = loadImage(&...
Score of 1
1 answer
423 views
SDL3 Texture Create returns always NULL
I have a problem in my c++ SDL3 android project:
Every time I try to create a texture it returns NULL, and if I call SDL_GetError() it says absolutely nothing. And I tried everything:
// ATTEMPT 1
...
Score of -1
1 answer
59 views
Snapshot testing for texture nodes - Swift
I am writing UI tests for a view that was implemented in textures. We are using swift-snapshot-testing module by pointfreeco. This is my first time writing tests as well.
The issue is that when I ...
Score of 0
2 answers
158 views
Unity URP set decal Base Map via script
private void GenerateBrushTexture()
{
int textureSize = Mathf.CeilToInt(radius * 2);
brushTexture = new Texture2D(textureSize, textureSize);
for (int x = 0; x < textureSize; x++)
{
...
Score of 1
1 answer
123 views
Texture objects for doubles on a cuArray
I have a similar need for this question. The only difference is, I need to do this on a cuArray (because I want to use cudaAddressModeWrap), instead of a normal device storage.
So, I tried this:
$ cat ...
Score of 1
0 answers
172 views
Godot 4: Textures embedded in a scene that are changed programmatically are not exported with the game
Using Godot 4.4.dev1, I have created two scenes that I use for my HUD. One for abilities and one for keyboard keys. Both have exported variables that contain information about textures that I load in ...
Score of 0
1 answer
191 views
How to convert BC7 to ASTC directly and fastly?
I have prepared-well BC7 tetxure, how to convert it to astc format (e.g., ASTC_12x12) directly? Not decompress BC7 -> compress ASTC, It's too slow.
Is there any algorithm or tool that can convert ...
Score of 0
1 answer
121 views
How do I rotate a uv texture on a sphere without tilting it?
I'm trying to change the direction of the front face of the uv texture on a sphere, but in the process I'm somehow "tilting" the textures, and I don't know why. I'd like them to not be ...
Score of 1
1 answer
161 views
How do I fix mapping when exporting from Blender to Unity?
When I export from Blender to Unity via FBX, my tiled texture mapping is lost. Not only it is lost, but also mapping is planar from the top of the model in Unity and I cannot figure out how to fix it.
...
Score of -1
1 answer
712 views
How to Create a Vulkan VkImage from an Android SurfaceTexture Bound to ExoPlayer? [closed]
I'm working on an Android app where I have a SurfaceTexture that's bound to an ExoPlayer for video playback. The texture uses the GL_TEXTURE_EXTERNAL_OES target. I need to create a Vulkan VkImage from ...
Score of 0
0 answers
88 views
Read PCX file byte by byte and apply it to a texture in Unity C#
I'm trying to as a challenge to myself read a pcx file byte by byte and convert it to a texture in Unity. I am reading the data just fine, however actually applying it to be a proper texture never ...
Score of 1
0 answers
55 views
Interpolation of vertex attributes during rasterization
RENDER
There is a set of vertices:
new Vector(-0.5,-0.5,-0.5),
new Vector(-0.5, 0.5,-0.5),
new Vector( 0.5, 0.5,-0.5),
new Vector( 0.5,-0.5,-0.5),
new Vector(-0....
Score of 1
0 answers
71 views
Inconsistent Texture Rendering in Raycasting Due to Intersection Calculations
I'm working on a raycasting engine where I'm encountering an issue with inconsistent texture rendering. When rays hit consecutive walls of the same texture (e.g., 1 1 1 in the map), some rays ...
Score of 1
0 answers
76 views
How to Reduce Pixelation in Texture Mapping for Raycasting Engine in C
I am working on a raycasting engine in C, similar to the one used in classic games like Wolfenstein 3D. I have implemented basic texture mapping, but the rendered walls appear very pixelated. I would ...
Score of 0
1 answer
56 views
Fetch Textures From a Collection
Hello everyone who's reading.
I'm trying to create a website where I can mouse scroll through "cards" that are all in a single line, seen with a iso view from the side.
I've set up the scene ...
Score of 3
0 answers
378 views
Make a Texture3D writeable on the GPU in Unity
I have a Texture3D that I've defined:
tex = new Texture3D(8, 8, 8, TextureFormat.RFloat, false);
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
for (int z = 0; z < 8;...
Score of -1
1 answer
59 views
Threejs adding 1080p textures is rendered blurry
I am trying to render a sphere with a texture wrapped on it, i am using a png texture with 1920px1080p resolution but the resulted texture is always very blurry,
here is my sample code :
var ...
Score of 0
1 answer
156 views
webgl2 trouble rendering float texture to canvas
If I use webgl2 to render something (e.g. a triangle) to an RGBA UNSIGNED_BYTE texture, then render that texture to the canvas, everything works fine. But I'm having trouble getting my example to work ...
Score of 0
1 answer
78 views
How to efficiently upload transposed data to GL_TEXTURE_2D_ARRAY
I want to use a GL_TEXTURE_2D_ARRAY to hold a texture in OpenGL ES 3.0. I'm reading the OpenGL wiki for Array Textures and it has an example for data that is ordered by all pixels of the first image, ...
Score of 0
1 answer
168 views
C/SDL2 : How to quickly get pixel color
I'm programming a flood_fill() func for triangles. To do this i have to recover the pixel color at a certain position. I use a SDL_Texture in SDL_ACCESSTARGET to blit on and used for the final ...
Score of 2
2 answers
3193 views
What is the difference between BeginTextureMode() and DrawTexture in raylib?
Beginner here. I've noticed two approaches to drawing new textures to the screen in raylib, firstly using DrawTexture directly in the drawing stage:
BeginDrawing();
DrawTexture(texture, posX, posY, ...
Score of 0
0 answers
125 views
Reading from GLSL image and then rendering to framebuffer
I have a GLSL fragment shader that should render pixels into a texture, and blend the value at each pixel with the one that has been in the texture before.
Instead of using GL blending operations, it ...
Score of 0
1 answer
257 views
How can i make Textures with code in Godot4?
I am making my own Tetris in Godot (it does not matter), I am new and I still don't understand how to use textures. I wanted to have personalizabled color brick and because I did not know how to do ...
Score of 1
1 answer
265 views
DirectX 12 texture binding causes memcpy error
I have tried long and hard to solve this. So... I am contacting all of you guys! The issue is that each frame, I try and bind my texture:
Texture.hpp
class Texture : public Component
{
public:
...
Score of 0
0 answers
483 views
Converting draw calls to Texture2D in raylib
I want to apply some shader effects to a couple of draw calls using raylib, but I haven't found ways of implementing shaders without a texture.
I was wondering if I could refactor the function below ...
Score of 0
1 answer
185 views
Godot4 polygon2d stretches texture
I am trying to add a texture to a polygon2d, when I draw the polygon and it is not pixel perfect, it adds these unwated pixels to the image:
Score of 0
0 answers
261 views
unreal engine mobile HDR off results in a reverse(flipped vertically) camera feed in AR template
As summarized in the title there is a problem with the unreal engine when trying to turn off the mobile HDR rendering for android devices. there are a few things messing with the me right now first is ...
Score of 1
1 answer
394 views
Why is my .blend file in Godot transparent at a side view
I used MineWay to export a part of my minecraft world into blender. From there I used MCPrep for textures, and exported the blend file to godot. The textures look fine as long as i dont look at the ...
Score of 1
2 answers
159 views
Texture (QTexture2D) from image file applied to Qt3D mesh appears as plain gray - Python
I am trying to apply a texture from a jpg file to a mesh (.obj file).
Both files originate from a 3D scanner and can be open in 3D tools, showing correctly.
How can I get a Qt3D mesh object to ...
Score of 1
1 answer
412 views
How to Use A Texture With ItemList In Godot 4?
I'm creating a quiz game in Godot 4.2 and wanted to use a texture with an itemlist, similar to texture buttons. All I've seen so far is how to use a picture as an Icon, not as a texture. I want each ...
Score of 0
0 answers
154 views
OpenGl to Visualize images
I am trying to use opengl to visualize a image with 16 bits depth because with GTK i was limited to 8 bits. GdkPixbuf has limitations and i need represent the image with all values without changes. I ...
Score of 0
0 answers
111 views
With glTexStorage3D why cant i allocate more than 2048 2D texures and what do I do if i need more?
While using glTexStorage3D(GL_TEXTURE_2D_ARRAY, 1, GL_RGBA8, width, height, depth); I can't set depth more than 2048 (otherwise OpenGL drops 1281 error which is GL_INVALID_VALUE), but I didn't found ...
Score of 0
1 answer
287 views
Texture2D type not as expected with raylib Rust
I have the following code block in which I am trying to create a new Texture2D:
let texture: Texture2D = *handle
.load_texture(&thread, &path)
.expect(&format!("Failed ...
Score of 0
0 answers
218 views
A way to warp an image based on a map
I'm looking for a method where, given an two images (A and B, with A being an RGB image and B being a greyscale image storing the warping information) I can warp A relative to B.
To give you some ...