std::string resourcePath()
{
NSString* path = [[NSBundle mainBundle]resourcePath];
return [path cStringUsingEncoding:NSASCIIStringEncoding];
}
water = new RealisticWaterSceneNode(SceneManager, width, height, resourcePath().c_str());
Future plans:
Support fog in HLSL
Tessellated look
Caustics
Light support
Optimization in render count
License
Realistic water scene node is released under BSD license. It means that you can use Realistic water scene node in any commercial or noncommercial product, but you (the licensee) must mention my name in the credits of your product and the credits must stay in the source code of the Realistic water scene node.
Last edited by elvman on Tue Aug 20, 2013 5:49 pm, edited 28 times in total.
I think that's the most beautiful irrlicht project i've ever seen! Well done! I think i'll have to take a sneaky peak at your code as the water in my project isn't working quite right.. the reflections and refractions are a bit messed up probably due to me having limited shader knowledge and having nicked the shaders from PS3 tutorials
Added OpenGL support (at least tried) and made some minor changes.
There is a problem with OpenGL render targets: it logs the following string to a log: "FBO has one or several image attachments with different dimensions
FBO error", I looked up for this error and found out, that this is OpenGL's GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT error. I tried changing the dimensions of the render target, but had no success. Can anybody test this on your computer and post the results here, please?
Hey wait a second, is DDS already supported in irrlicht? Thats good to hear (Seems to me I keep learning of new features in your threads )
PS: Have you thought about moving all the update() stuff over to onprerender() (I think thats what its called they may have changed the name) considering that you are already inheriting the scene node interface? This will help it integrate more smoothly with Irrlicht if need be.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Damn this looks beautiful! Elvman I'm going to try to implement this into my game. Thanks a bunch for the code!
There are some problems though. Firstly, we dont have a "setClipPlane()" function in irrlicht 1.3.1. Also, reflection in the water shows the borders between the skybox planes. Any plans on fixing these errors?