Questions tagged [rendertexture]
A texture to which content can be rendered.
88 questions
0
votes
0
answers
38
views
How to implement a bilateral filter in a shader?
I want to implement a bilateral filter because I have read the it preserves the edges. The equation is given as:
$$ BF\left[I\right]_p =
\frac{1}{W_p}\sum_{q\in S}
G_{\sigma_s}\left( \left\Vert p-q \...
0
votes
1
answer
405
views
RenderTexture doesn’t work in build
A Gameobject sprite, a Texture2D which is written into using "Texture2D.ReadPixels" works/is visible in the Editor/Play Mode but is not/is invisible when built.
The Texture2D is written to ...
1
vote
0
answers
94
views
How to pass two RenderBuffers into one RenderTexture?
I have a Unity URP project and in the Scriptable Render Pipeline, I would like to create a RenderTexture and pass the depth and color buffer of the camera object as ...
0
votes
1
answer
138
views
How to render a portion of a texture (upscaled) without affecting the border with SDL2?
I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
1
vote
0
answers
1k
views
`Graphics.Blit` into a render texture using a custom material outputs black
Context
I am writing a ScriptableImporter for a specialised image format (the specifics are not relevant). To do so, I need to semi-procedurally generate a ...
0
votes
0
answers
1k
views
How to make background of render texture transparent in Unity
I am using render texture to display a model of a 3D character on a menu. I would like the background of the render texture to be made transparent. I have tried to make it transparent by editing the ...
0
votes
1
answer
3k
views
Render texture not rendering camera output correctly
I have a strange problem that I am not sure if it is a bug from Unity or not. I have render texture that renders camera output to a raw image. Camera looks at a object that consists of 2 parts: the ...
0
votes
1
answer
115
views
correct matrix to draw mesh as flat object
I need to draw a tilemap for a 2d game. For that I created vertices with their relative positions already hard baked. The coordinates start top-left with (0f, 0f) and z is always 0.
I rendered them to ...
2
votes
1
answer
1k
views
Sprite created with RenderTexture and ReadPixels() has multiplied colors
I'm working on a character generator that creates thumbnail sprites for each character. I'm using a separate camera that renders to a RenderTexture, which is used ...
0
votes
1
answer
303
views
Hiding objects from the player when working with RenderTextures
I am currently working on a game that has monitors showing the player different elements such as texts, images and numbers. My plan for this is to use Unity's ...
1
vote
1
answer
2k
views
How to control post processing effects per-pixel with a render texture?
My game's protagonist is after a specific resource on the map, its concentration stored in a field on the CPU-side, and I would like to provide a subtle hint as to where it is so that the player can &...
1
vote
0
answers
556
views
Cleaning effect with progress counter
I'm working on object cleaning in unity. This effect actually works.
What I still need is the progress, do you have any idea how can I count the progress of the cleaning?
(my code is below)
Thank you ...
0
votes
1
answer
1k
views
Why is the Unity pixel color read from RenderTexture bigger than 1?
The pixel color component read from the Unity renderTexture is bigger than 1.0 without HDR environment map.
I'm writing a mini program to test the reflectance of Unity PBS. I use six pure white (1,1,1,...
1
vote
0
answers
59
views
I have a problem with updating a RenderTexture being used in combination with a shader
I just can't seem to figure out why I can't save the image I've drawn onto an orthographic RenderTexture.
Here's how my scene works: https://i.sstatic.net/6XkRo.gif
Basically, it's a painting effect ...
1
vote
1
answer
9k
views
Issue with Texture2D memory leak in Unity
I have a simple method that converts RenderTexture data into Texture2D
...
0
votes
1
answer
443
views
Bake a heightmap from Editor
I want to implement a heightmap-based water simulation algorithm in Unity. I know exactly how I would approach this in pure low-level C++ and OpenGL (and also Shadertoy), and most of it is ...
0
votes
1
answer
133
views
XNA configuration on legacy code
Background:
Our biomechanics and Advanced Surgical Technologies Lab wrote a surgery navigation system desktop application in C# around ten years ago. One of its major functions uses XNA Game Studio 4....
0
votes
0
answers
75
views
Per-component Shader Blend in Unity
Context :
I'm writing a 2D mobile game in Unity where the graphics are essentially black lines drawn on a background image plus some lighting. Running full RGB calculations for every step seems like a ...
2
votes
0
answers
66
views
How to generate a star onto a render texture with spherical warping
How would one proceduraly generate a star in a compute shader that looks like one of thes two at any size needed. Also any way transfer this into a spherical map, would be appreciated.
Goal is to ...
1
vote
1
answer
171
views
How to use WorldToScreenPoint function in a texture context?
I am rendering a scene into a RenderTexture and I have a set of 3D points. I want to convert these points from 3D to texture coordinate frame. It worked, when I rendered into screen and used ...
0
votes
1
answer
2k
views
How to capture image from camera with post effects? Mysteriously only get emission(?) pass
I have a separate camera from my main camera, whose purpose is to take screenshots, or render a "live feed" of the action, at different angles. Hierarchy as such:
The game object labeled as ...
0
votes
0
answers
870
views
Unity: Dimensions of color surface does not match dimensions of depth surface
I am receiving the error, "Dimensions of color surface does not match dimensions of depth surface" whenever I attempt to use my screenshot code, without any callstack or anything further insight of ...
0
votes
0
answers
52
views
Low resolution RenderTexture with gradients
I have a small RenderTexture that stretched on large object, so texels is near 0.3 of unit. Source for this texture has much more resolution and with gradients.
If source little bit changes its ...
1
vote
1
answer
739
views
Video feedback effect with recursive RenderTextures in Unity 2018.3
I have a project where I'm playing with a video feedback effect by rendering a camera to a RenderTexture and pointing the camera at a quad displaying that RenderTexture.
This works great normally, ...
1
vote
0
answers
644
views
Unity blit() not writing to RenderTexture
I found a nice Gaussian Blur shader online and am attempting to use it to blur a render texture using blit(). However, the render texture remains unblurred. I know for a fact the blur shader works as ...