Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGKv1] - Infinite water [snippet]

Author
Message
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 4th Dec 2014 13:18 Edited at: 4th Dec 2014 13:34
Hello Folks Currently I work on the Insel Simulator infinite water code. My aim is to create an infinite water terrain by some kind of tile mapping.
A current demo is added in V1 code down here




The idea
Create an infinite 3d water map by using some type of tile-mapping





Image 1: The player stands in the corner, only the grey
water_tiles will be rendered.





Image 2: The player moves. All tiles will be
refreshed.


The demo code looks like this:



There are two main settings in the demo here, first, you may comment the "setobjectcolor" function for the water creation out, so it will be an full instance of the water terrain.

The Size of the water tiles is given by water_planesize=1000
If you dont want the water tiles to overlap, set the scale of the orginal object "wam" to water_planesize/10, without the +10

Here is the code:
(media+stuff attached)




[/url]

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-03 08:43:42
Your offset time is: 2024-05-03 08:43:42