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.

Newcomers DBPro Corner / Watar Particles

Author
Message
Jbolts1
19
Years of Service
User Offline
Joined: 1st Jan 2005
Location:
Posted: 11th Mar 2005 08:35 Edited at: 11th Mar 2005 08:36
can some one help me figure out a code to make water dropletts (particles) that splash up when u hit the water matrix

Jbolt
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 11th Mar 2005 09:45
Just a point on ediquette: You could have kept to your original post, or moved over to the programmer discussion forums since water is a pretty advanced topic.

Are you using DBPro? If so: there are particle commands. You'd have to play with them to get just the right look you are looking for (even if someone provided you with water particle code). I can help with any specific questions you have about particles.

Alternately, you could get the object's screen x/y position and draw about 50-100 randomly placed blueish-white dots in the general area. Something like this:



"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
RalphY
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: 404 (UK)
Posted: 11th Mar 2005 22:00
Another method you could try is create a collection of textures with water particles at different stages of their movement (e.g. just rising up, in the air, falling back down etc...) then load these textures and create a plain to texture these too. If the player is within the area containing water and below the level of the water then just place the plain at the players feet, rotate it to point at the camera and then change the texture applied to it in sequence each game loop.

Hope this is of use and you get the effect you’re looking for
Jbolts1
19
Years of Service
User Offline
Joined: 1st Jan 2005
Location:
Posted: 12th Mar 2005 01:05 Edited at: 12th Mar 2005 01:17
RiiDii do i put this code inside the main loop or out side

Jbolt
Jbolts1
19
Years of Service
User Offline
Joined: 1st Jan 2005
Location:
Posted: 12th Mar 2005 01:18
i cant get this commcand to work


Jbolt
Jbolts1
19
Years of Service
User Offline
Joined: 1st Jan 2005
Location:
Posted: 12th Mar 2005 01:20 Edited at: 12th Mar 2005 01:21
i was thinking more along the lines of creating particles and using an if command give my water matrix collision and say if the object hits it to hide the object and reset after 5 secouends but my problem is actually makeing the particles

Jbolt
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 12th Mar 2005 03:10
Quote: "do i put this code inside the main loop or out side"

Inside - if your character is in the water of course.

Quote: "i cant get this commcand to work"

Sorry, should be Ink Rgb(150,160,255),0

Quote: "i was thinking more along the lines of creating particles"

Quote: "but my problem is actually makeing the particles"

Start with the particle basics. Using the help files, make a stand-alone program that is just some particles. Then play with the different particle commands to see if you can get it to look like water splashing (or other effects too).

Here's a very basic start:


"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Jbolts1
19
Years of Service
User Offline
Joined: 1st Jan 2005
Location:
Posted: 12th Mar 2005 20:51
ok ill try it out thanks ill post if i need more help

Jbolt

Login to post a reply

Server time is: 2024-11-13 19:48:28
Your offset time is: 2024-11-13 19:48:28