Rose Petal Formula?

Blitz3D Forums/Blitz3D Beginners Area/Rose Petal Formula?

Guy Fawkes(Posted 2009) [#1]
Hi all, can someone show me a 3D algorithm for rose petals flying around randomly in the wind?


WERDNA(Posted 2009) [#2]
Depends on whether the rose petals are create in blitz itself, or are
a mesh you've already made with a 3D modeler. Also define randomly.
Can they go up and down, and if so, how far up and down?

You would probably first create wind, and then determine their direction
and movement by wind speed and what direction the wind is blowing in.


Guy Fawkes(Posted 2009) [#3]
they're neither =D

they're a sprite ^^


AJ00200(Posted 2009) [#4]
What I would do is create zones of varying wind speeds.
The zones effect is divided by the distance from the zone center.
So if it is near 2 zones with the values:
Zone 1: windXYZ=(0,1,0) Up
Zone 2: windXYZ=(0,-1,0) Down
and it is directly on top of zone 1 divide by 1 (distance (0) + 1)
then it is 3 units away from Zone 2, so divide -1 by (3+1) and add the two results together
-1/4+1=3/4 so move it up 3/4 of a unit each <insert time>.

If it is affected by more wind zones, just add more together.


Guy Fawkes(Posted 2009) [#5]
well. im going to do the wind speeds inbetween 5 to 10 mph, and since i have particle candy, if that day contains a severe thunderstorm, im going to make it spawn a tornado if all the weather variables are correct, then thats the ONLY time it will exceed 5 - 10 mph is if it's a windy day, a storm / rain / snow is approaching, as 5 - 10 mph is what it is typically where i live. and im going to randomize it depending on what day it is.