OgreWater
-
- Gnoblar
- Posts: 22
- Joined: Mon Jul 21, 2008 4:35 am
- x 7
Re: OgreWater
Very nice. A good start on realistic underwater rendering. Can't wait to see underwater caustics. Add god rays and suspended particles and you'll really have something. Hope you have time for those after you work out the issues with the surface. Looking forward to the code release. Kudos granted.
DM
DM
-
- Greenskin
- Posts: 142
- Joined: Sat Nov 07, 2009 1:51 pm
- Location: Gainesville, FL
- x 2
Re: OgreWater
This looks fantastic. Been about a month since the last reply from the author. Still plans on releasing it?
**Certified Ogre Professional Amateur
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: OgreWater
Yes. But after I implemented true water geometry, and it turned out to look like s**t, I haven't really worked that much on it... Also, I have a lot of school work right now.Brutal wrote:This looks fantastic. Been about a month since the last reply from the author. Still plans on releasing it?
-
- Ogre Magi
- Posts: 1235
- Joined: Fri Oct 26, 2007 12:36 am
- Location: Mountain View, CA
- x 10
Re: OgreWater
In your first video the water looks awesome.lingfors wrote:Yes. But after I implemented true water geometry, and it turned out to look like s**t, I haven't really worked that much on it... Also, I have a lot of school work right now.
Are you sure it's necessary to add water geometry? I mean, the ogre community has Hydrax for that. What we don't have is a nice solution for plane water for lakes and such.
-
- Gremlin
- Posts: 170
- Joined: Tue Apr 05, 2011 1:55 am
- x 10
Re: OgreWater
I too, would be interested in seeing your solution for plane water. My game currently implements a very early design for geometry water, but with my limited knowledge of shaders, it is taking me a while to build each step (where's a shader artist when you need one ). I am quite interested in seeing how your plane water works to hopefully get a better solution for the smaller bodies of water that my game currently uses.
During the code inspection, a couple of minor points were noticed: -
Function inlining was critical to performance.
For MSVC, at least, a "delete 0" caused execution of 11 assembly instructions, including a function call. So in cases where performance is at an absolute premium it can be worth inserting the extra manual test.
-
- Bugbear
- Posts: 833
- Joined: Thu Apr 15, 2010 7:42 am
- Location: Poznan, Poland
- x 33
Re: OgreWater
+1 for plane water!
Guys are right, Hydrax is a tough business, be yours a lightweight counterpart!
Guys are right, Hydrax is a tough business, be yours a lightweight counterpart!
Sos Sosowski
http://www.sos.gd
http://www.sos.gd
-
- Halfling
- Posts: 40
- Joined: Tue Jan 25, 2011 9:12 pm
Re: OgreWater
If the problem is that you just don't have time to clean up the code, why don't you just throw the relevant files in a zip and be done with it, even if it doesn't run? I volunteer to clean it up.
-
- Halfling
- Posts: 40
- Joined: Tue Jan 25, 2011 9:12 pm
Re: OgreWater
OK, since it's obvious OP doesn't want to share the code (which I respect) does anybody know of anything similar or articles on how to achieve the same effect?
-
- Halfling
- Posts: 56
- Joined: Thu Nov 19, 2009 9:39 am
- x 12
Re: OgreWater
hold your horses buddy, lingfors did clearly state that the code will (probably) be released after the project is done for.SamJ wrote:OK, since it's obvious OP doesn't want to share the code (which I respect) does anybody know of anything similar or articles on how to achieve the same effect?
so pm him, i'll try to get an official answer in msn from him.
Meanwhile, do not hijack the topic please
-
- Halfling
- Posts: 40
- Joined: Tue Jan 25, 2011 9:12 pm
Re: OgreWater
Hey, it's been 7 days, did you get an answer from him? As I said I really respect his decision, some courses in college may be competitive and he has a legitimate reason to not share.dragutux wrote:hold your horses buddy, lingfors did clearly state that the code will (probably) be released after the project is done for.SamJ wrote:OK, since it's obvious OP doesn't want to share the code (which I respect) does anybody know of anything similar or articles on how to achieve the same effect?
so pm him, i'll try to get an official answer in msn from him.
Meanwhile, do not hijack the topic please
I just thought it was silly to create another thread just to ask: "hey, how do you do lingfors water?" and then link to this thread.
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: OgreWater
SamJ wrote:Hey, it's been 7 days, did you get an answer from him? As I said I really respect his decision, some courses in college may be competitive and he has a legitimate reason to not share.dragutux wrote:hold your horses buddy, lingfors did clearly state that the code will (probably) be released after the project is done for.SamJ wrote:OK, since it's obvious OP doesn't want to share the code (which I respect) does anybody know of anything similar or articles on how to achieve the same effect?
so pm him, i'll try to get an official answer in msn from him.
Meanwhile, do not hijack the topic please
I just thought it was silly to create another thread just to ask: "hey, how do you do lingfors water?" and then link to this thread.
At the moment, the water is just a simple plane. No real geometry yet, in other words, although I plan to try to implement that too.
For each frame, I render 4 textures: A refraction texture (everything underneath the water plane), a refraction depth texture (distance from camera for everything underneath the water plane), a reflection texture (everything above the water plane rendered from a camera that is placed at the "reflected" camera position) and a reflection depth texture.
Then it's simply a matter of doing texture lookups using the screen coordinates as texture coordinates. Combine this with some normal map magic, and you get specular highlights and "distorted" reflections/refractions.
-
- Halfling
- Posts: 40
- Joined: Tue Jan 25, 2011 9:12 pm
Re: OgreWater
I had read that. My original request was for something more detailed, i.e: another example that actually has code available or some article. None of what you described there tells me how to get started to do it in Ogre.lingfors wrote:SamJ wrote:Hey, it's been 7 days, did you get an answer from him? As I said I really respect his decision, some courses in college may be competitive and he has a legitimate reason to not share.dragutux wrote:
hold your horses buddy, lingfors did clearly state that the code will (probably) be released after the project is done for.
so pm him, i'll try to get an official answer in msn from him.
Meanwhile, do not hijack the topic please
I just thought it was silly to create another thread just to ask: "hey, how do you do lingfors water?" and then link to this thread.At the moment, the water is just a simple plane. No real geometry yet, in other words, although I plan to try to implement that too.
For each frame, I render 4 textures: A refraction texture (everything underneath the water plane), a refraction depth texture (distance from camera for everything underneath the water plane), a reflection texture (everything above the water plane rendered from a camera that is placed at the "reflected" camera position) and a reflection depth texture.
Then it's simply a matter of doing texture lookups using the screen coordinates as texture coordinates. Combine this with some normal map magic, and you get specular highlights and "distorted" reflections/refractions.
But never mind.SamJ wrote:OK, since it's obvious OP doesn't want to share the code (which I respect) does anybody know of anything similar or articles on how to achieve the same effect? none of what you
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: OgreWater
It's more info than I had before I did it...SamJ wrote: I had read that. My original request was for something more detailed, i.e: another example that actually has code available or some article. None of what you described there tells me how to get started to do it in Ogre.
-
- Halfling
- Posts: 56
- Joined: Thu Nov 19, 2009 9:39 am
- x 12
Re: OgreWater
SamJ wrote: snipp of the whole thing.
I specifically asked you to not hijack !
If i didn't post there was reasons! can't you wait ?
Some moderator please come and clean the thread out of Samj massive hijacking please.
And sam : WAIT DAMNIT!
code will be released eventually making an ass out of yourself isn't going to help
the coder feels like to want it; it's not something he promised and you can wait a little.
Hell he even worked his ass to give me an original version of OgrePlanet code which was lost !
and i do not have access to the water code even if i am speaking to him directly on a regular basis.
so SERIOUSLY: WAIT !
-
- OGRE Moderator
- Posts: 2819
- Joined: Mon Mar 05, 2007 11:17 pm
- Location: Canada
- x 218
Re: OgreWater
About the skirt graphical artifact problem, you can set the length of the skirts, so they're as short as possible to help minimize the problem. Of course, if you go too short, you'll start seeing cracks in your terrain. This will also be affected by the max pixel error setting on the terrain.
----
Regarding SamJ - I think people are being a little hard on him. Here's the situation: he needs good water for his project. He sees a post where somebody shows off some cool water tech, which would solve all his problems. Even better, the original post suggests the code will be shared. So SamJ, while attempting to be patient, still must eventually make a decision whether to wait or not, because otherwise he must pursue another solution. He may have personal or professional deadlines, and in either case waiting indefinitely isn't an option.
SamJ is not demanding that lingfors release the code. He has been quite polite, respecting lingfor's decision not to release the code if that's what he chooses to do. He is just hoping for some clarification on when or if the code will be released at all. Even if the answer was "I plan to release this tech, but not for a really long time", or "I may never release this tech", that would help him make a decision on whether to wait or not.
Even though lingfors has, in a very general way, been kind enough to describe how he achieved this tech, it's still using some pretty complex graphical techniques that are beyond most people's skill level with Ogre.
When people want to use your cool tech, especially tech you say you will share, it should really be a compliment. SamJ's question, especially as polite as it was, should not have been met with hostility.
----
Regarding SamJ - I think people are being a little hard on him. Here's the situation: he needs good water for his project. He sees a post where somebody shows off some cool water tech, which would solve all his problems. Even better, the original post suggests the code will be shared. So SamJ, while attempting to be patient, still must eventually make a decision whether to wait or not, because otherwise he must pursue another solution. He may have personal or professional deadlines, and in either case waiting indefinitely isn't an option.
SamJ is not demanding that lingfors release the code. He has been quite polite, respecting lingfor's decision not to release the code if that's what he chooses to do. He is just hoping for some clarification on when or if the code will be released at all. Even if the answer was "I plan to release this tech, but not for a really long time", or "I may never release this tech", that would help him make a decision on whether to wait or not.
Even though lingfors has, in a very general way, been kind enough to describe how he achieved this tech, it's still using some pretty complex graphical techniques that are beyond most people's skill level with Ogre.
When people want to use your cool tech, especially tech you say you will share, it should really be a compliment. SamJ's question, especially as polite as it was, should not have been met with hostility.
-
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: OgreWater
Can't agree with Jabberwocky more.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Gremlin
- Posts: 170
- Joined: Tue Apr 05, 2011 1:55 am
- x 10
Re: OgreWater
SamJ, I do believe the effects he uses is used in Hydrax as well, you should be able to figure out how to achieve the same effect if you dig around there.
Not to hijack the thread or anything, but I am working on my own plane water implementation due to Hydrax being a performance hog. Hopefully we'll see a release before I make any breakthroughs, the original result looks beautiful
Not to hijack the thread or anything, but I am working on my own plane water implementation due to Hydrax being a performance hog. Hopefully we'll see a release before I make any breakthroughs, the original result looks beautiful
During the code inspection, a couple of minor points were noticed: -
Function inlining was critical to performance.
For MSVC, at least, a "delete 0" caused execution of 11 assembly instructions, including a function call. So in cases where performance is at an absolute premium it can be worth inserting the extra manual test.
-
- Greenskin
- Posts: 120
- Joined: Thu Sep 20, 2007 10:13 am
Re: OgreWater
Yeah, when I think of Hydrax I picture one of those bloated little fat kids walking out of McDonalds munching on a Big Mac. This could very well be the hot chick eating a salad
-
- Halfling
- Posts: 40
- Joined: Tue Jan 25, 2011 9:12 pm
Re: OgreWater
Hi again guys. May I ask (politely) if there are any plans to release this after all? I ended up using the ogre ocean shader in my project and it looks OK, I'm curious if this will be released because I would still like to use it. I know in 6 months I could have just done it myself, but there's always something more important to do than water
It's cool if you don't release it, I just would like to know your intentions if you are still around, I'm sure others do too.
It's cool if you don't release it, I just would like to know your intentions if you are still around, I'm sure others do too.
-
- Kobold
- Posts: 36
- Joined: Mon Mar 15, 2010 9:19 am
Re: OgreWater
hi guys
i'm also looking at creating water simulation but i need to know where to begin
i mean simply hello world of water simulation.I'm trying to implement it using ogre
(Hydrax is too complicated to begin with)
i'm also looking at creating water simulation but i need to know where to begin
i mean simply hello world of water simulation.I'm trying to implement it using ogre
(Hydrax is too complicated to begin with)
-
- Kobold
- Posts: 27
- Joined: Tue Sep 27, 2011 3:06 pm
- x 2
Re: OgreWater
The first video was kind of generic to me but the second...wow. Kudos to you Jabberwocky, it's insanely beautiful.
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: OgreWater
Are you posting in the wrong thread, or just praising the wrong person?Tytanis wrote:The first video was kind of generic to me but the second...wow. Kudos to you Jabberwocky, it's insanely beautiful.
-
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Re: OgreWater
I actually deactivated him for that, but he asked us to be reactivated..lingfors wrote:Are you posting in the wrong thread, or just praising the wrong person?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Kobold
- Posts: 27
- Joined: Tue Sep 27, 2011 3:06 pm
- x 2
Re: OgreWater
Oh, I'm so sorry lingfors. I was very, very tired when I came across this post. My three toddlers had me up all night because they were sick. Sending kudos your way!lingfors wrote:Are you posting in the wrong thread, or just praising the wrong person?Tytanis wrote:The first video was kind of generic to me but the second...wow. Kudos to you Jabberwocky, it's insanely beautiful.
And also, may we see a fish in the water that rolls with the wave? Would be neat!
Tyler
-
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
Re: OgreWater
Haha, no worries.Tytanis wrote: Oh, I'm so sorry lingfors. I was very, very tired when I came across this post. My three toddlers had me up all night because they were sick. Sending kudos your way!
And also, may we see a fish in the water that rolls with the wave? Would be neat!
Tyler
I'll see what I can do about the fishes when I have time to work on this.