[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5150: file_get_contents(https://freedomsponsors.org/api/project/294): failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway
How to render to texture? - Forums | Torque 3D

How to render to texture?

There are no stupid questions, just stupid answers.
2 posts Page 1 of 1
Posts: 9
Joined: Wed Mar 22, 2017 10:20 pm
by Jmac » Wed Mar 29, 2017 8:41 pm
I want to do some calculations on the gpu using shaders and save the results in a texture is this possible with the engine atm and if not where can I look to start implementing this?
Posts: 66
Joined: Fri Feb 27, 2015 5:13 pm
by irei1as » Thu Mar 30, 2017 4:19 pm
I use a postFX as a tool to update a texture manipulated inside a shader.

You can see what I tried in this resource:

You see that in the PostFX MapTest I chooose the target to be a named texture "#maptexture".
Also check the functions related to MapTest like the function MapTest::setShaderConsts(%this).

But named textures are "special" "named" textures in the engine. I'm not sure if it'll help you in your particular case.
Maybe the c++ code I mention at the start can help you to change a named texture into a generic texture if you need that.
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest