Horde3D

Next-Generation Graphics Engine
It is currently 22.10.2020, 15:26

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Water scene node
PostPosted: 17.04.2009, 01:44 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
I've written a projected grid water scene node, and, while it's far away from being finished, it begins to look usable.

Image

The shader used currently only features very simple skybox reflection (I am not that good at writing shaders :D), but should be easy to adapt to anything else. For the geometry, in the screenshot I used a 64x64 projected grid (http://graphics.cs.lth.se/theses/projects/projgrid/), the waves use simple perlin-noise like noise, with the normals being computed on the gpu.

The code is structured in such a way that geometry and noise generator are separated and exchangeable with little work needed.

The code is available in my git repository, it depends on some changes not in the Horde3D repository:

http://github.com/mgottschlag/horde3d/c ... -scenenode

Thanks to Dark_Kilauea for his bugfixes! There is still one really visible bug left, there are artifacts whenever the viewer moves quickly relative to the water (missing mipmapping for the heightmap), also there are still some performance problems left.


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 18.04.2009, 08:45 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Very interesting!

I will check it out in the next days...


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 19.04.2009, 10:03 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Very cool. I'd like to see a wire-frame screenshot... :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 19.04.2009, 11:44 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 19.04.2009, 15:24 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
This is a little offtopic but I cant see the images !? I'm using FireFox 3.08 and it shows "image" instead of an image.


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 19.04.2009, 18:53 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
Maybe your country blocks access to img411.imageshack.us ? Don't know


Top
 Profile  
Reply with quote  
 Post subject: Re: Water scene node
PostPosted: 19.04.2009, 18:59 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Now I can see them using PhProxy, nice screen shot :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group