Jump to content
Sign in to follow this  
Zachary

Question regarding custom water, change water flow direction?

Recommended Posts

Hi Guys,

I'm trying to find some information online regarding the setup of the rvmat files for a water texture. What i seem to notice is that in the following..

 class uvTransform
{
 aside[] = {1.0,0.0,0.0};
 up[] = {0.0,1.0,0.0};
 dir[] = {0.0,0.0,0.0};
 pos[] = {0.0,0.0,0.0};
};

It looks as if some of these values may be responsible for changing the direction the water flows in. AT the moment it looks like they all flow in one direction and i need to have a few variants for differently angled rivers in the map. The textures used are flat non moving objects so i suspect as with other engines some other file is giving it a 'scrolling' texture effect.

However I have read people having to edit the CFGMaterials.hpp file to do this too? Can someone tell me if i was to edit this file and say create a new Water class, such as RiverWater or something, that i could edit the direction of the texture and also remove the foam effect that is generated when the water meets terrain (there is no coastline on my map)

If this was edited and packed into the PBO, would it work online for when people join the map?

EDIT

I put this in modeling because i thought perhaps the RVMAt would be the main culprit, should it have been in scripting instead? Sorry

Share this post


Link to post
Share on other sites

OK, since no one seems to know if it is possible, anyone know if a material can be animated in any shape or form? Can it for example have its X / Y values set to move across a face and repeat back on itself (im struggling to remember what this is called)

Share this post


Link to post
Share on other sites

My bad. I suppose it is more scripting than anything else so my apologies for that, but thank you for the information I shall definatley give it a look.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×