Game Development Community

Texture files in PostFX

by Tobyn Manthorpe · in Torque 3D Professional · 05/30/2009 (3:32 pm) · 2 replies

I'm loving the new organization of PostFx in T3D! Awesome. But I do have a small problem. When I try to reference an external texture file for my "PostEffect" in the cs file, the engine decides to find a random texture from the scene and use that instead.

I can't find any other postfx shaders that use external files nor can I find any other shaders that don't use a material to supply a texture file. Can this actually happen?

Thanks

About the author

Tobyn has started Cedar Hill Games, a small dev studio in beautiful Victoria, B.C.


#1
05/30/2009 (4:02 pm)
I had this problem when doing the caustics shader. Check the thread about it here: www.garagegames.com/community/forums/viewthread/93255/2#comment-629361

Just move your textures to the same folder as the script where you have your postFX script or a folder inside it and use a relative path.
#2
05/30/2009 (4:16 pm)
Wow, that was it. And you got back to me so quickly! Thanks so much, I never would have figured that out.