Tip:
Highlight text to annotate it
X
everyone this is Rodrigo Silveira
with http://www.easylearntutorial.com and his videos just a simple
demonstration
love Sosa the that I wrote the
sexually been a long time since our growth is but I was just talking to a
friend of mine today
he was gonna wonder how it did
this and this is a what I call that a 3d particle effect
for particle system I guess this is something I wrote
in class when I was in college is while the professor was lecturing
the I was curious and wanted to do something this is what it did
so here's the demo I don't know if the frame rate on the video
will help you see against the same effect
you can go to the website I have a link posted and see the real thing
in real time over basically and
you know this kinda looks like 3d appears that is that cool 3d particle
system
a madagascar the thing about this
demonstration or this particular thing it looks like there's a lotta
circles things little spheres going around as some sort a circle
as looks like a blender you know I guess at the time it looked like they were
blood cells to me
well as surprising I guess to my friend
is that although this thing looks a 3d looks a
web-dl or something like that this is nothing him
words what this ill be in a campus
but looking at the code resources
here's a pic code
this from set up stuff it did and I always keep the cameras in the same
ratio
but looking at the code whoops
the
can appear this is just said to *** Ambrose there's no web DL it's not a
hard
back as it could be hardware accelerated based on depending on how
chrome is rendering Studi campus but that's all it is
and the way that I actually make this thing work is actually pretty simple
though
bank is this the way all over render together
one going one way faster than the ones on the back
behind a going slower it looks like it's going in the circular path
but in all reality all they do is they have an array
up this *** is just a regular
array appear I define a couple love
values like cash developer
lives that have two axes this property in the math object
and then define the max with it and I thought this campus
and I hear have them the Maxima circles o'hare
a one-time and the MIA what up
do a purses initialize and what to do which is go from zero to max
and they fill up this array with little objects to
vets have is s I don't remember what this stance
were I just keep me from between 07
and then a random X NY position
to start with is some random
a QP within the campus I guess the first the
by then the next day they do the reason I have this
this property is so I give the circle is a different
a range for their size and color
base so what this comes up so I guess if it's less is six
so it's very likely is going to be lesson 6 then I give it a brighter red
and then the radius is within this range review is the smallest
circles are going to see and depending on
what is read a number comes up then the color is
the kinda more opaque and the radius is larger
and you can see this is less likely to have it and this is at least likely
thing that will happen
so that's why that is almost by ones are not
they're not as many of them as they are the bright Redman's
and they want to do this is other is I don't even use a
repressed animation frame it's been so long I don't think
it was even a vocal back then but I just keep calling driver
and they said in time I'll every 10 milliseconds
at what I do i jus go a clear the campus and then go through all the circles
and that day the position know what to do
is if the thing is going I guess s represents the speed
now that I think about it it if you click the campus of course it will
generate
10 percent more whatever and then every said the animation little bit
so kinda cool effect but what I do
the this speed if the depending on the size
up the circle it will go faster like the ones in the middle that are really small
the movie a little slower than the larger ones are moving faster
when they're moving to the raid then they go
professor them when they're go-ahead from
right to left know what to do just go back to the code
if the circle because of the screen then I just changed the
that direction update the y position
so the circles were from top left and then it goes down
a some speed that it actually goes in a straight line
pro looks like the curving but it circles is going in a straight line
the slope is aside
inside here rendering and there was a circle comes
of the screen either to the right or to the left maybe just two
the it when it comes up to the rates
then every said the y position and then says the direction so it goes that way
and it goes half the speed or something like that was a little slower
so I just wanted to make this video so this cool effect better road in a long
time ago maybe I have the date somewhere
for the two thousand Tanner so 2011
that I have a date as to bed
the yeah and that's how it did
if you have a better solution to achieve a similar effect
let me know I'll be curious to see what you can come up with
like this video if this was something cool share with your friends
if you think it's worth sharing and I will see you next time