Map Database  •  FAQ  •  RSS  •  Login

Water rotation

<<

JBSnorro

Barbarian

Posts: 106

Joined: 20 Nov 2007, 23:00

Post 21 Jun 2009, 00:50

Water rotation

The algorithm responsible for the watertilerotation is still unknown to us, but with the most simple idea in mind I created this(rename to exe, .NET 2.0 required). I cannot judge whether it is any good, but the waves seem to move in the expected direction.
The simple idea is to get an array of colors used in the texture, order them from lightblue to darkblue. Then foreach timestep foreach pixel set the pixel to the color at the incremented pixelindex in that array(and of course use mod).

I don't know whether this is the same as the original, I suspect it isn't, but it does look similar
<<

Thunderwolf

User avatar

Crossbowman

Posts: 233

Joined: 22 Jan 2008, 23:00

Website: http://thunderwolf.freehost10.com/KaMMissionBuilder/index.php

Location: Netherlands

Post 22 Jun 2009, 12:05

Hey, it looks like kam for as far as I can see.
~old sig
MissionBuilder v0.9f2 UPDATED!!
Defend The Outer Colony. fight for your king and uncover the secrets of this land.
Temporary version at
http://thunderwolf.x10hosting.com/index.php
"You can't defeat me, I've played Knights and Merchants"
<<

merchant_992

Pikeman

Posts: 162

Joined: 11 Nov 2006, 23:00

Location: Rinsumageest, Nederland

Post 22 Jun 2009, 13:46

It looks like it. But I think it isn't really KaM.
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 22 Jun 2009, 21:42

Thats not KaM at all... :(

EDIT: I took a second look.. still it's a good estimation you've done :)

I did solved the case by printscreening ~100 screens from KaM and got all animation data KaM has for water, waterfalls and swamps.. I'm willing to share the whole thing, just have no free time for it yet.

KaM Remake will feature it in upcoming demo.
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

JBSnorro

Barbarian

Posts: 106

Joined: 20 Nov 2007, 23:00

Post 23 Jun 2009, 17:04

I did solved the case
You solved it? :|
In that case I won't bother looking at more screenshots and wait untill you've got time to explain it. Whenever it suits you
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 23 Jun 2009, 17:32

See this topic: http://www.atfreeforum.com/knights/viewtopic.php?t=458&highlight=&mforum=knights

I wish I could make neat waterdemo exe as you did..
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de

Return to “Other Creations”

Who is online

Users browsing this forum: No registered users and 6 guests