Horde3D http://horde3d.org/forums/ |
|
Render-to-texture problem http://horde3d.org/forums/viewtopic.php?f=2&t=322 |
Page 1 of 1 |
Author: | wizardofoz [ 02.05.2008, 21:11 ] |
Post subject: | Render-to-texture problem |
I was trying to render the entire scene to a texture and then render that texture in a quad of the same scene. The problem is that, when I render to a texture, Horde3D doesn't render the geomery context but only the light contexts ("AMBIENT" and "SHADOWMAP"). So I tried to use two cams instead of one or to create two separate rendering pipelines for those two cams but the problem still persist. I can't figure out how this happens, any suggestion? Thanks to all! Claudio |
Author: | wizardofoz [ 02.05.2008, 21:28 ] |
Post subject: | Re: Render-to-texture problem |
Update: I just discovered the problem reason: I cannot render the geometry and the light contexts together in a texture.. I cannot do multi-pass rendering in texture targets.. ![]() |
Author: | wizardofoz [ 02.05.2008, 22:42 ] |
Post subject: | Re: Render-to-texture problem |
![]() When setting a render-to-texture target multi-pass operations like blendMode="ADD" are not currently possible. The solution to this problem is to create a temporary buffer: Code: <RenderTarget id="TEMPBUF" depthBuf="true" numColBufs="1" format="RGBA16F" scale="1.0" maxSamples="16" /> where to render all the multi-pass passages and then copy this buffer to the initial texture target.I was wondering if there could be smarter solutions than mine or if the engine could be modified in order to be able of multi-pass rendering to texture targets.. Good night! |
Author: | AcidFaucet [ 02.05.2008, 23:01 ] |
Post subject: | Re: Render-to-texture problem |
Quote: I was wondering if there could be smarter solutions than mine or if the engine could be modified in order to be able of multi-pass rendering to texture targets.. Do you mind stating in what manner you're copying that buffer? Can you post the XML for the pipeline you're using to render to the texture? All of those could be helpful. |
Author: | swiftcoder [ 03.05.2008, 02:02 ] |
Post subject: | Re: Render-to-texture problem |
wizardofoz wrote: When setting a render-to-texture target multi-pass operations like blendMode="ADD" are not currently possible. I do this by default, so it is certainly possible.Have you made sure that your shaders contain a 'Geometry' pass? Other than that, post your pipeline.xml, and maybe we can figure it out. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |