Questions tagged [texture]

For questions related to textures: procedural generation, encodings, aspect characterisation, filtering, mapping, storage...

Filter by
Sorted by
Tagged with
3
votes
1answer
29 views

Why does UV tiling affect performance in volumetric ray marching?

I am building a volumetric ray marching shader in HLSL in Unreal Engine, based on Ryan Brucks’ work: https://shaderbits.com/blog/creating-volumetric-ray-marcher I am trying to add some additional ...
3
votes
0answers
45 views

Graphics APIs: read/write the same texture

I know we can't bind the same texture as an input resource to a shader and as a render target within a single draw call, Direct3D just forces unbinding of such a texture SRV, OpenGL says it's ...
2
votes
1answer
55 views

Deriving formula for perspective correct interpolation

I am trying to derive the formula for perspective correct texture interpolation on my own while implementing my own software rasterizer (projecting an arbitrarily rotated triangle in camera space on ...
0
votes
0answers
39 views

glTexImage2d from bytebuffer

I want to create a single-channel 2d texture with bytebuffer which contain each float for each pixel (let say it is an alpha value) to use further in shader Btw, I've tried this ...
0
votes
0answers
13 views

How to get the surface alignment

How can I get the surface alignment of a 3D object in screen space? I found this example which, I believe, is aligning the UV coordinates to the 3D vectors (which are determined by their current ...
1
vote
1answer
53 views

How to map texture pixels to the corresponding 3D positions?

I have a mesh stored in .obj format with a texture image in .png format. For any "defined" pixel in the texture image, I'd like to compute the corresponding 3D coordinates when the texture ...
2
votes
1answer
42 views

Why do some texture data formats only have the red channel?

While programming something in Rust with the BevyEngine, I came across TextureFormats. My understanding is that those are used to define how the pixel data is handled. So Rgba8Unorm means that there ...
0
votes
0answers
41 views

Blending 2 or more Textures based on depth (Unity)

Ive been trying my hand at blending between 2 or more textures, so far I found I can lerp between Colors quite easily, but this lacks the detail im looking for. So Im trying to blend 2 or 4 textures ...
0
votes
0answers
34 views

Character Creation. Cartoon look, Eyes and Extra Parts. What advantages are the combining to one mesh?

I am fairly new to CG and 3d art. I'm trying to learn to make good game assets (ie. Low poly count, clean looking) in a cartoon style. I'm making this character as pictured. But his eye is a separate ...
0
votes
0answers
44 views

How to add spectral texture to an object? (Mitsuba renderer)

Summary I'm looking for a possibility to use spectral texture data in Mitsuba renderer. The texture is saved as a tiff image stack and is to be added to the surface of an arbitrary object. Software ...
0
votes
0answers
11 views

Viewing or importing Collada files with textures

I'm trying to view a Collada file with separate texture image file, e.g. https://app.ignitionrobotics.org/mjcarroll/fuel/models/Banana%20for%20Scale, which includes ...
0
votes
1answer
63 views

How to render and store a color gradient in a ramp texture for 16bit dataset?

I'm working on a scientific visualization project and need to create a transfer function widget. The volume data is either in range 0-255 or it can be 16 bit i.e. <...
0
votes
1answer
43 views

How can I bind my texture in the correct orientation?

I have successfully completed a working program that draw a rotating sphere with a map of the world as the texture, simulating the earth in space. However, the texture is bound on it's side, i.e. all ...
0
votes
0answers
48 views

Compute UV Normals and World Position from a given texture coordinate

I'm turning to you as a newbie in CG, with a question that might easily be answerable for pros. What I need to do is the following: I have a (rather simple) quad mesh in a 3D modelling software, say, ...
0
votes
0answers
65 views

Have any Pixar movie use 'Pixar 128' textures from 1993?

In 1993, Pixar publish Pixar 128 repeating textures (now CC BY 4.0): https://renderman.pixar.com/pixar-one-twenty-eight Have Pixar use any textures from this set in their movies like Toy Story, Bug's ...
0
votes
0answers
19 views

How to create interior Mapping textures or Cubemaps? UNITY 3D

im looking for ways and ideas to create my own interior mapping textures for my open World Game. Im unsure how to create them. Are there free sources available? best regards J
0
votes
0answers
145 views

Using multiple textures in a shader

Background: I am extracting the textures for a model with Assimp and sampling those textures in the fragment shader. I have multiple uniform sampler2D textureN ...
0
votes
1answer
49 views

Calculating Material/Texture Placement from Bitmap to 3D Model

everyone! I am currently developing a program that converts a 3D model to 2D isometric pixel art. Part of my program extracts the texture from an FBX file (as FBX files can have textures built in), ...
1
vote
1answer
145 views

PNG textures render correctly in Blender, but not in OpenGL program

I've been following the OpenGL tutorials from ThinMatrix and I've been able to load and render his stall.obj model along with his stall.png texture just fine. But when I try with my own models and ...
0
votes
0answers
30 views

Possible approach to drawing with a texture brush

I would like to draw onto a plane with a 2d texture when pressing down the mouse. Similar to drawing on a canvas with a texture brush with continuous stroke in painting applications. I was thinking ...
2
votes
1answer
68 views

How are obj files textured?

I am a new learner in 3d graphics. So forgive me if I seem to ask something very basic. I am confused how obj files are textured. So far I have seen: obj + jpg obj + mtl + jpg When I look online, ...
1
vote
1answer
182 views

How does the GPU know whether to magnify/minify?

Let me first state what I think I know and please correct me if I'm too inaccurate or plainly wrong. When you use a function like texture, you're requesting a texel value given a pair (u,v) of texture ...
1
vote
1answer
138 views

Why is the image from the CUDA version not as sharp as the CPU version?

I am extending Roger Allen's Ray Tracing in One Weekend in CUDA (and also here) by following Peter Shirley's Ray Tracing: The Next Week; specifically Image Texture Mapping. The image I obtain from ...
0
votes
0answers
28 views

Packing a GL_RGB from three separate buffers?

I'm decoding an .mp4 to use as a texture on a tristrip. It's easy enough to use an unsigned byte array of RGB triplets to create this texture, but frames come out ...
0
votes
2answers
135 views

Is there a tool capable of drawing a triangular linear gradient fill?

I need to draw some shapes filled with linear gradients starting from every point and blending smoothly between points, like an OpenGL standard shading (I guess it is called ...
2
votes
1answer
143 views

How do I efficiently calculate the distance to the edge of a shape?

I'm trying to implement something like an "inner glow". That is, I have an image which defines the shape of an object, and then I want to create overlay that is a gradient that goes from the ...
2
votes
3answers
79 views

How to paint onto 3d models

I have searched this topic for very long time and have found basically no information on it. If we have a 3d model with a uv layout. What is the basic technique for 3d painting on said model with a ...
1
vote
1answer
68 views

Worsening sampling quality of raytracing with increasing distance from world origin

I am using RT shader (DXR) to generate g-buffers with code below. There was no problems with smaller scene (pink room from cwyman tutorial - http://cwyman.org/code/dxrTutors/tutors/Tutor5/tutorial05....
3
votes
0answers
86 views

How should the texture file look like?

I am wondering why the texture of the following 3D model https://app.ignitionrobotics.org/GoogleResearch/fuel/models/Transformers_Age_of_Extinction_Mega_1Step_Bumblebee_Figure Looks like the ...
3
votes
2answers
350 views

Using array of textures in DX12

I managed to create code, working correctly as Texture2DArray in hlsl by using single ID3D12Resource and binding it as D3D12_SRV_DIMENSION_TEXTURE2DARRAY with constant array size. ...
1
vote
1answer
51 views

Texture value clamped to 1

I am working on ray/path-tracer using DXR and I'm starting with simple AO. In first pass, I am storing normal value and RayTCurrent(): ...
1
vote
1answer
65 views

How 3D painting software works

I am new to graphics programming and i'm learning opengl. I managed to make a really simple renderer where i can import models display theirs textures with all lighting. My goal is to make a simple ...
1
vote
1answer
127 views

Transfer the texture between two different sets of uv

Say I have a mesh with two sets of uvs. And I have a texture made for the first set of uvs. I would like to create a second texture that has the same relationship between its pixels and the second set ...
0
votes
1answer
235 views

What method is used for baking grayscale curvature maps

I'm looking for a way to generate curvature maps like this: The map stores the Convexity and Concavity of each pixel as a value from 0 to 1, where .5 is no curvature and 1 and 0 are the extremes. I ...
2
votes
0answers
167 views

Corrupt values when writing and reading from the same RWTexture2D in HLSL/DirectX?

I'm playing around with DirectX 12 ray tracing, and I'm trying to read and write data to a 32-bit RGBA floating point RWTexture2DArray within a DirectX 12 HLSL shader. I'm getting weird corruption/...
2
votes
2answers
597 views

BC7 texture with alpha has the same size as BC7 without alpha

So i've a made a texture. I've saved the RGB one with BC7 compression, then added alpha channel[specular map] with varying levels of grayscale, and saved the file again as RGBA with BC7 compression. ...
1
vote
2answers
102 views

What's more optimal - sampling one channel at a time or all channels at once?

I'm going through and optimizing some of my glsl code for a project, and have come across a scenario several times that I am not sure how best to optimize. In summary - Is it faster to sample a ...
0
votes
0answers
18 views

Custom Create Maps in OpenGL

I am trying to create some procedurally created terrains for which i need to create noise maps. How do I create a texture of noise map in OpenGL and then pass that in my vertex shader as a heightMap? ...
0
votes
0answers
182 views

Generate hardcoded texture data to pass to shaders

I'm trying to manually create a color data to load as a texture with OpenGl for learning purposes. I created an unsigned char array consisting of 4 pixels with 3 ...
2
votes
1answer
205 views

Texture loading- erratic working

I'm a noob to the OpenGL world and am picking up ideas through practice. I've been writing some code to build retro-arcade games recently and need to load textures to provide the graphic interface. I'...
0
votes
0answers
62 views

Is linear interpolation in a 2D texture possible (not quadratic like bilinear interpolation)?

I am currently studying for a computer graphics exam and on the slides about bilinear interpolation it is said that it is in reality quadratic interpolation. An (on the slides) unanswered question ...
1
vote
0answers
212 views

Sampling the depth component of a packed depth-stencil texture while rendering to its stencil component

I need to frequently perform depth testing for any given fragment at a different fragment location than the one rendered to. Since this isn't possible with normal builtin OpenGL depth testing ...
2
votes
1answer
75 views

2D array texture with different filtering setting per texture?

Currently I have textures which need GL_NEAREST and some other need GL_LINEAR in the same texture2dArray. In the shader I perform a manual GL_NEAREST lookup via textureFetch(). To avoid this my ...
1
vote
0answers
38 views

Optimizing texture fetches with higher mip levels

Let's say I have some shader program in DirectX or OpenGL rendering a full screen quad. And in a pixel/fragment shader I sample some huge textures at random texture coordinates. That is one same ...
1
vote
1answer
702 views

convert image pixel dimensions to UV

Hi i am rather new to computergraphics but i am trying to map an equirectangular image (360 video) to the inside of a sphere now i found the following formula to do this. ...
3
votes
2answers
564 views

What does texture resolve mean?

In the context of render targets or textures, what does "resolve" mean? For example: To resolve a color texture. From my understanding, it seems to mean, "copy but process/convert at the same time", ...
1
vote
0answers
249 views

Why is glUniform1i() returning GL_INVALID_VALUE?

I have a sampler variable in a shader: uniform sampler2DArray tiles; Which I am trying to bind to a texture unit in GL: ...
2
votes
1answer
328 views

Zero-copy texture reading from CPU memory

The Intel 740 AGP graphics card read textures directly from system RAM, using VRAM exclusively for depth buffers and the framebuffer. This has the effect of saving video RAM, and it could be ...
1
vote
0answers
33 views

How can I detect if an edge has flipped during the UV unfold process?

I'm writing my own UV Unfold operation (similar to Maya's Optimize UV tool or 3DS Max's Relax Tool). My code works great 90% of the time but in some instances, I'm getting faces and edges that flip ...
0
votes
0answers
282 views

Inverse texture mapping

I have a textured 3D object and looking for ways to transform back the texture. Effectively, I think this is an inverse texture mapping task. Do you know of anything close to this? Some papers or ...

1
2 3 4 5