Frictional Games Forum (read-only)
Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Frictional Games (https://www.frictionalgames.com/forum/forum-3.html)
+--- Forum: Blog (https://www.frictionalgames.com/forum/forum-23.html)
+--- Thread: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) (/thread-1611.html)

Pages: 1 2


Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Thomas - 02-13-2008

Hi again all!

One of the things that I am planning to do in this work log is to release a demo showing off a new feature whenever I can. That way I can see how well the engine works on various machines and you readers will also be able to follow the development in a more hands-on fashion!

First out is a render to texture test. In HPL1 I never used any direct rendering to texture, but instead I copied data from the screen to a texture. This was good for the time being, but it also had a bunch of drawback most notably it could be quite slow on certain instances. For HPL2 I will have full render to texture support though and I just finished the implemenation.

Attached is a screenshot showing how it should look. If you get any strangenes while running please post a reply and report it along with a copy of hpl.log and a screenshot (taken using F8)

DEMO DETAILS
---------------
Download Link:
http://www.unbirthgame.com/files/RenderToTexture.zip
Minimum Requirements:
Radeon 9600 / Geforce FX
Controls:
W, A, S and D: Move around
Mouse: Look around
F8: Screenshot
Comments:
If anyone wants to mess around with the pattern generated feel free to fiddle around with "texture_render_test_fp.cg" in the programs folder. If you get anything working please attach a screen! Smile


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - WindexGlow - 02-13-2008

Texture appears completely white at all angles.

ATI x1550 (latest drivers as of september)
1.5 gigs of ram
Unknown processor


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Thomas - 02-13-2008

Please attach hpl.log.


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - WindexGlow - 02-13-2008

done, txt added.


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Thomas - 02-13-2008

Please try the attached exe and see if that helps. I turned off mip map generation for the render texture.


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - burbble - 02-13-2008

This is interesting. With an ATI Radeon X1650XT and latest driver (8.1), the original EXE renders it all white and the NoMipMaps EXE renders it properly. With the 7.11 driver, both work perfectly (maybe related to problems with ATI drivers and Penumbra in this thread http://frictionalgames.com/forum/showthread.php?tid=1683 ?).


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Thomas - 02-13-2008

burbble:
Just love ATI drivers Tongue I am gonna make a change tomorrow or tonight and see if that helps. Right now I generate mipmaps while the texture is still set as render target. Perhaps that is what is causing it.

Please check by and test when I have an update


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - Thomas - 02-13-2008

Attached is another update exe. Please try and say what the results are.


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - burbble - 02-13-2008

Same results as with the original. With newest 8.1 drivers, texture is all white, but with older 7.11 driver, looks perfect.

They sure heat up my graphics card quickly! Smile


RE: Thomas, 2008-02-13, "Render To Texture" (includes demoapp) - WindexGlow - 02-13-2008

Second test worked; third didn't. Here is the attached HPL log for third test.