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.

Code Snippets / 3d Wave

Author
Message
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Nov 2004 08:19 Edited at: 5th Jan 2005 07:46
A dynamic 3d wave generator for making things like moving water.

<edit> revised version 6/12/04, now uses a matrix.



p.s. feeling seasick yet? :-


FoxBlitzz
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location: United States
Posted: 29th Nov 2004 08:31 Edited at: 29th Nov 2004 08:31
Yikes, that is a lot of spheres. Maybe a matrix would be better for this than creating huge polygon counts from an overusage of primitives.

UNVIDIA GeFartFX 5600 Crud Edition
Featuring an unbeatable 0-1 FPS in 3DMark05!
If Return to Proxycon were a game, I would die before I saw my dead body!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Nov 2004 12:29 Edited at: 29th Nov 2004 12:36
I'm sure that's true! Infact, just turning spheres into cubes will probably help a bit. When I coded it I was thinking purely about physics, and not speed.


JerBil
20
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 29th Nov 2004 13:49
Yep, cubes and flatten 'em. Also make the size 40 by 40 helps speed.

make object cube ob,1
scale object ob,100,0.1,100

-JerBil
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 29th Nov 2004 14:35
Very neat effect.

Got 21 FPS consistantly.

I even played around with it a bit. Couldn't really get it any more optimized though.

Still very nice.





A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 30th Nov 2004 09:39
Nice!

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro (SP2)
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Nov 2004 11:42
I stayed around 23-24. I changed it to cubes with no speed increase.
Use a memblock matrix and DmitryK's plugin to move verts and it should be pretty fast.

"eureka" - Archimedes
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Dec 2004 07:01
Now adapted original code to use a matrix instead of objects. Increases fps by about a factor of 10!!!


Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 7th Dec 2004 10:12
Very nice effect ! might have to have a read up on this kind of physics, time to dig up the textbooks.
Baggers
DarkSin
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: Under your bed
Posted: 8th Dec 2004 15:00
VERY nice.. kept a constant 150 FPS


Frozen Flame
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location:
Posted: 22nd Dec 2004 12:52
Nicely done Ric!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Dec 2004 14:30
Indeed great job. 181 FPS here

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 22nd Dec 2004 19:28
That is really cool.
By editing slightly I made it so you could drop balls into the water which made ripples.

Realms Of Tutopia: Rise Of Evil
http://www.freewebs.com/elbsoftware/index.htm
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Dec 2004 23:09
Thanks for the comments.


Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 23rd Dec 2004 00:22
AWESOME!!!!!!
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 23rd Dec 2004 05:57
woooooow nice !!

need help with programming?
Add me to your msn
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 23rd Dec 2004 06:40
woooooow cool! thats a great job uve done!

"Well, if he dies, it'll teach him not to do it again." - Me
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 24th Dec 2004 07:18
hello

good samples

wooooowooow very professional samples.

plese post the hother samples with media fx, automatic.

hello , tanks !!!

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Dec 2004 06:22
Quote: "wooooowooow very professional samples.

plese post the hother samples with media fx, automatic"


Sorry, I don't understand quite what you mean This is a no-media engine, in other words, you can use the code to add your own media and make it into whatever you want.


Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 28th Dec 2004 01:14
Doesn't work in DBC

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 28th Dec 2004 01:21
hello Ric

post the samples , automatic move the wave.

include the media.

end other special fx.

post other samples.

continue the post new version of this samples.
hello Ric ,merry christmas and happy new year.

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Calevra
20
Years of Service
User Offline
Joined: 9th Mar 2004
Location: Netherlands
Posted: 2nd Jan 2005 01:39
wow nice effect..could be use for water so when the player walks on/in it the waves act realistic..just like in prince of persia..
p.s
Darkdomy sounds like an robot:
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 5th Jan 2005 13:07
i was hoping for a screenshot because my pc with dbp is thousands of miles away.

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
BadMonkey91
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 6th Jan 2005 05:14 Edited at: 6th Jan 2005 05:16
That's crazy good!

I can post a screen of it for em

oh, so smooth

Badmonkey91@hotmail.com

Attachments

Login to view attachments
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 6th Jan 2005 13:42
wow that code is too complex for my head

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
The Samurai
20
Years of Service
User Offline
Joined: 28th Jul 2004
Location: San Angelo, Tx
Posted: 10th Jan 2005 05:00
i got a constant 30-31 fps

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 10th Jan 2005 05:10
Quote: "i got a constant 30-31 fps"


That's because I recently added the line sync rate 30, just to make sure it was running the same on all computers. You can take it out to make it run faster, but you'll have to readjust the values of elasticity and damping for good results.


Login to post a reply

Server time is: 2024-11-23 16:54:40
Your offset time is: 2024-11-23 16:54:40