Open GoogleCodeExporter opened 9 years ago
I think that as part of this change, some refactoring of
OceanSurface/FFTOceanSurface
should be done. The generator function and the meshing should be separated.
That way, if I want to create the mesh using screen-space meshes, but still use
the
FFT generator to generate the height field, I can. Likewise, if I want to use
geomipmapping as now, but generate the height field using Perlin noise or sums
of
sines or whatever, I can. I could even create a trivial generator that would
just
make a flat surface, and then use the existing meshing with it, and it would be
easy.
Decoupling these two things seems natural and would ease extension.
Original comment by jean.sebastien.guay13@gmail.com
on 12 Jun 2009 at 7:19
[deleted comment]
Also: http://graphics.cs.lth.se/theses/projects/projgrid/
And that's what I mean, if we separated the meshing and the generator, we'd be
able
to implement many meshing schemes and many generators and use them with each
other
interchangeably.
Original comment by jean.sebastien.guay13@gmail.com
on 16 Jun 2009 at 7:56
I've seen that paper before it's a nice demo, very similar to Hydrax, infact I
think
it's the method they use. However, you can't use the projected grid approach
with the
FFT simulation.
I do agree with the decoupling though.
Original comment by kcb...@googlemail.com
on 17 Jun 2009 at 8:39
Robert mentioned that it might be good to support shallow water rendering a
while
back (rivers etc). The current FFT approach, with the style of shader that is
used is
only really respresentive of water in the open sea.
An alternative shader implementation which takes into account the depth of the
terrain underneath might be a nice addition for the future. The shader wouldn't
be
such a problem, the colouring is roughly the same equation as I've used for the
underwater light scattering. But it would also allow for a transparent water
surface,
which is important where water meets terrain edges.
I also think Gerstner waves might be more suitable for rivers and shallow
waters.
http://citeseer.ist.psu.edu/cache/papers/cs/26265/http:zSzzSzwww.cs.sunysb.eduzS
z~ash
zSzwaterCGF.pdf/
Original comment by kcb...@googlemail.com
on 17 Jun 2009 at 8:49
Original issue reported on code.google.com by
kcb...@googlemail.com
on 12 Jun 2009 at 5:42