Questions tagged [rendertexture]

A texture to which content can be rendered.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

How to use WorldToScreenPoint-function in a texture context?

I am writing a simulation environment for robotics and tasks I have are sometimes are quite peculiar. I am rendering a scene into a RenderTexture and I have a set of 3D points. I want these points to ...
0
votes
1answer
24 views

How to convert depth values into Unity's distance

I am new in Unity and now only studying for my work project. I need help with computing real distances from depth values. Can't figure it out. My shader is: ...
0
votes
1answer
40 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 ...
1
vote
1answer
8 views

Unity: Render 1st Texture to 2nd Texture

I want to pass the first texture through a shader and render it to a second texture. The actual task is bit more complicated, as I then want to render the second texture back to the first texture ...
0
votes
0answers
81 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
0answers
26 views

How to display other cameras on HUD UE4

I've been stuck on this for a while. My goal is to show a camera feed in the HUD so you could see a what it sees and what you see. I am working in blueprints since i don't have much C++ knowledge. I ...
1
vote
1answer
433 views

dx11 Rendering to target texture shows only clearcolor(ImGUI-Custom Game Engine)

Im trying to create a game view for my game engine using ImGui framework,however when i try to render texture,there is only clear color displayed on the screen. My plan Creating Render Target ...
0
votes
0answers
16 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 ...
0
votes
0answers
38 views

Dynamic cube mapping with a single draw call

currently i am following the book '3d_game_programming_with_DirectX11' and now i am in 'Dynamic cube mapping using Geometry shader' chapter. This is where i am stuck now. The sample code it's showing ...
0
votes
1answer
140 views

Rendering to Texture with Transparency in Monogame?

Please forgive me if I'm asking a question that has been answered before, but for the life of me, search as I might, I couldn't find a problem exactly like this anywhere. I'm trying to render a ...
1
vote
1answer
192 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, ...
2
votes
1answer
137 views

Dr.Strange's door in Unity3D, how to put a projected void on a plane?

My question is about a visual trick I would like to perform in Unity3D. I want the player to walk outside a door and see no walls of the room behind them, just the door. They should still be able to ...
1
vote
0answers
265 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 ...
0
votes
1answer
86 views

How can I pack repeated textures into one texture efficiently?

I have an obj mesh with some textures, several of them are repeated(uvs are not within [0,1]). I'd like to merge all those textures into one texture and transform the uvs of obj.
1
vote
0answers
412 views

Is it possible to crop a render texture in unity?

Basically what I want to do is, take the source render texture from OnRenderImage and crop it (continuously). I've already achieved this by using ...
1
vote
2answers
194 views

Combining multiple diffuse textures into one leaves strange distortions?

I made 3 models, each has own material. And after texture painting, I combined each their texture to single textures for optimization. Currently making Mobile Game with Unity 2018 and using Mobile/...
0
votes
1answer
392 views

Screen Capture rendered on a RenderTexture in Unity

I have a pretty wild idea for a unity application that would work on a multi-display setup. The app would be running in full screen mode on one of my displays, and the contents of the remaining two ...
0
votes
2answers
2k views

How Do I 'Reset' my Render Texture When I Stop a Video Player?

I have a Unity VideoPlayer where I use a render texture with an audio source to play the video. VideoPlayer.Stop pauses the video and resets the time to 0. I want ...
0
votes
1answer
2k views

Using a Compute Shader in Unity to convert a texture to a float array

I have a fairly simple requirement for a compute shader (DirectCompute through Unity). I have a 128x128 texture and I'd like to turn the red channel of that texture into a 1d array of floats. I need ...
0
votes
1answer
206 views

How can I Fade Paint over time?

I want to fading my paint over time like this: but currently It's gray! what Is the problem? Code: ...
0
votes
1answer
1k views

Noticeable quality loss on texture captured using Graphics.Blit vs Shader output directly to a mesh

I'm currently using a GPU shader to generate a texture. I want to be able to capture the output of this out I'm using Graphics.Blit to output the shaders result to a ...
0
votes
1answer
575 views

How to draw geometric shapes to a texture?

How can I create a texture containing a geometric figure using SDL2? I saw there is a way to convert Surface to Texture, and I also saw that there is a way to draw directly to the screen using ...
3
votes
1answer
2k views

Achieving 2D Lighting for Terraria-Like Game

I'm trying to achieve the fog-of-war lighting style that Terraria and Starbound have. Terraria's lighting system seems to be more blocky/tile based, but Starbound's is a lot more smooth. The Desired ...
1
vote
1answer
241 views

Render 2D texture on the cube texture at given location

I would like to simulate a moving sun on the sky. What I have managed to do so far is calculating the exact location of the sun, that is the 3D direction vector from the camera's position in the world ...
1
vote
0answers
447 views

Creating Saving and Loading Materials in Runtime

I'm trying to create a material during runtime like this: In my Assets I have a Render Texture and one Material I created an Script where I attach the Render Texture to Material I save in my project ...
6
votes
4answers
18k views

How can I make my Camera's RenderTexture output have a transparent background?

I'm writing a 3D game using Unity 2017.1.0b1. I have a disabled Camera that takes a "snapshot" of the current scene and stores it in a RenderTexture when a button is clicked. I then display the ...
1
vote
0answers
438 views

get position of GameObject on rendertexture from camera

I'm rendering the camera output to an rendertexture on a plane. This works fine. But I want to put GameObjects on the rendertexture on positions of world objects that are visible on the camera. <...
1
vote
1answer
119 views

Weird streching of a texture in OpenGL

Here is the problem: I'm rendering a red triangle in an offscreen Frame Buffer Object. I have a texture of that Buffer, and i'm applying this texture to a Simple rectangle(at runtime). I get This ...
0
votes
1answer
307 views

SDL2 Draw scene to texture. SDL2 RenderTexture like SFML

I've been developing a 2D Engine using SFML + ImGui. The editor is rendered using ImGui and the scene window is a sf::RenderTexture where I draw the GameObjects ...
0
votes
1answer
38 views

problem in texturing

the first picture is the texture I'm using. and the second is result. problem! the model file it self is no problem. I think the mode is problem. I saw uv coordinates is more than 1. what kind of ...
1
vote
0answers
4k views

How to clear the content of a Rendertexture?

I want to clear the content of a RenderTexture in runtime. Basically I have this script: ...
1
vote
1answer
1k views

Why is my Canvas/RawImage not included in my Camera's RenderTexture output?

In my Unity2D game, I'm using a second camera to "screenshot" the current view. I then display this screenshot within the game. This works the first time I take a screenshot. When taking the second ...
3
votes
2answers
219 views

Why does rendering to a texture cause transparency here?

As a quick background, this is in the context of a custom game engine I'm writing in C# on top of the SharpDX framework. In the engine, when I render UI, I do so by creating a canvas object with its ...
3
votes
0answers
1k views

Run Unity standalone in Headless Mode whilst capturing screenshots

I need to create a unity project which runs in Headless mode (using the -batchmode command), but it must capture screenshots e.g. every one second and write them out to a file. I understand that in ...
0
votes
1answer
871 views

Default mipmap level & elements to use for CopyTexture in Unity Scripting?

I want to make a tiled map. I want to use the function CopyTexture to copy from a Texture2D (where is stored my tileset) to a RenderTexture. I want to use the third overloading (with all the ...
0
votes
1answer
260 views

ScreenToWorldPoint problems in otherwise awesome Unity demo

I am using this neat Unity demo I found on Stack Overflow, which demonstrates texture masking via RenderTexture: Can you erase a texture in real time in Unity But the mapping from mouse position to ...
-1
votes
1answer
181 views

XNA draw a rectangle 3D perpendicular to camera

I need some ideas how to implement the Draw method. Need to draw a rectangle (actually a million of them, all same texture) that is in 3D, starts at point ...
0
votes
1answer
522 views

Unity swapping textures not working, weird?

I made two textures for my 3D game character. I can use both of them by dragging them on my player but I want to do the same through code. I searched and found that people are either using: 1) ...
0
votes
1answer
1k views

Unity, Does camera ALWAYS render to RenderTexture?

I have a camera that renders a simple model to a RenderTexture. I then use that RenderTexture as a texture for my UI with a RawImage component. However, sometimes I disable my UI and therefore you can ...
4
votes
0answers
116 views

Flicker when drawing multiple shapes over image based texture

I'm rendering video frames with multiple color filled shapes over it using SharpDx and D3D11. Rendering seems to be fine when just rendering the video frame and is as expected. Now if i draw a ...
4
votes
0answers
748 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 ...
8
votes
1answer
2k views

Learning how to make imposters manually in Unity - how to render an object to a texture not what camera sees?

I am trying to learn the most performant way to make an imposter in Unity manually - not using pre-fabricated solutions. My first guess is that it should be achieved by using RenderTexture and a ...
0
votes
0answers
335 views

Faster ways of rendering to a texture what is viewed by a camera in a given specific moment (Unity)

What I want to achieve is to render to a texture what is viewed by a camera in a given specific time or frame, and then stop rendering to the texture, delete the camera and stay with that texture for ...
0
votes
1answer
209 views

cocos2d-x Label Load Image like Sticker-Smile..(by html or …)

hi and sorry for my english... i am using cocos2d-x (c++)... can i load sticker (smile) in my Label(a text mixed by image)? i know that we can load bitmap fonts by: ...
4
votes
1answer
1k views

I want to render a texture2d on to the screen in unity, how do I do this?

So I have modified a texture in C# by removing all of its white pixels, now I want to render it on the screen in unity so that later I can use it as a terrain where I can make my sprite walk. So far, ...
1
vote
1answer
27 views

Is render to texture available in blender? [closed]

I don't know is render to texture available in blender like in 3dsmax if it is available please tell me step by step method to do that thanks in advance.
2
votes
1answer
441 views

How can I read the smallest mipmap back to the CPU after calling generateMips?

I'm implementing an adaptive tonemapper based on the standard "scale down the luminance map to a 1x1 texture" approach. This is my code following the rendering of the luminance map: ...
2
votes
1answer
937 views

Render scene depth to texture via FBO?

I'm trying to render my scene's depth via FBO and Render To Texture. I have a scene that I'm rendering to a texture, then render that texture to a fullscreen quad in a second pass using a fragment ...
0
votes
2answers
64 views

What mistake did I make? Source engine reskin issues

Here is a reskin of the Half Life 2 Wallace Breen model that I made for a mod I am developing, but the checkerboard on the suit is very odd. All my other skins have no issue, but this skin has ...
4
votes
1answer
1k views

How to attach a framebuffer to a whole cube map from a GL_TEXTURE_CUBE_MAP_ARRAY?

I'm trying to make shadow cube maps in an array. I want to draw each shadow map with a single pass using a geometry shader, which I read about here: https://stackoverflow.com/questions/462721/...