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.

DarkBASIC Discussion / Ocean Waves

Author
Message
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 27th Sep 2003 08:16
How can I make large ocean waves? (not just the ones in Jetski but actual rolling waves.

Am I an Idiot...or is everyone else just really smart?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Sep 2003 08:31 Edited at: 27th Sep 2003 08:33
hmmm, i dont know too much about this, but my suggestion is to make it out of .x models and just have it looping an animation, like have a single .x for a wave, then duplicate that and string em all together in-game so it looks like the wave passes from one .x to the adjacent... cant say that it is perfect... but thats my two cents.

If Quizz's Are Quizzical, Then What Are Test's?
Remlap Neb
21
Years of Service
User Offline
Joined: 18th Sep 2003
Location: United Kingdom
Posted: 27th Sep 2003 09:06
im not to sure if its still there but theres some code on that at www.darkbasiccodebase.co.uk
if not then i dont know where cause i got it off the real game tools forum and i dont hav it anymore!
soz bout that hope it helps

Ben Palmer(Guitarest, Drummer and Bassist)
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Sep 2003 11:26
do you mean like this


just play around with the numbers


Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 27th Sep 2003 19:09
Every time I change the numbers it says matrix cooridinate does not exist!

Am I an Idiot...or is everyone else just really smart?
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Sep 2003 19:10
i meant the sin(x*50+m)! if you want to change other numbers, you have to check the matrix is big enough.


Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 27th Sep 2003 19:18
I am enlightened. However, now the game runs so slow you can't do anything. Even with the sync on 0

Am I an Idiot...or is everyone else just really smart?
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 27th Sep 2003 21:36
no idea how to fix that then , i've never used that snippet in a game/program before, its only ever been a snippet to me


John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 28th Sep 2003 02:33
Ya that snippet runs very slow lol. Best idea would be to make a .x object and animate it for waves.

RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 28th Sep 2003 03:16
Thanks

Am I an Idiot...or is everyone else just really smart?
Compiuser458
22
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Germany
Posted: 28th Sep 2003 03:59
Look at Red_eye's code! The 'update matrix' is inside the for-next loop.
So it updates 100 TIMES. If you write it before sync it will update only once.
That's WAY faster.

Better and faster version:
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Sep 2003 12:42
ah cool, it was taken dirtect from dbp(which is much faster) so i didn't notice any slow down when i ran it thanks Compiuser458!


Login to post a reply

Server time is: 2025-05-20 14:10:12
Your offset time is: 2025-05-20 14:10:12