Spiral Galaxy using CC Particle World

In this After Effects tutorial I use only included effects to build a galaxy. This tutorial builds on previous knowledge to distribute the particles using the Fibonacci or Golden Spiral code I shared in that tutorial.

First I show how to spread the stars out in the correction formation, then duplicate the particle layer to create interstellar gas and copy it again to create the dark dust. The galaxy is 3D and able to be flown through with a virtual camera.


Expressions

Fibonacci position
Y = 0; 
X = Math.sin(Math.PI*galaxySize)*Math.exp(galaxySize)*direction; 
Z = Math.cos(Math.PI*galaxySize)*Math.exp(galaxySize)*direction; 
[X,Y,Z]
Dan Ebbert’s toWorld Expression
L = thisComp.layer("Spiral Null");
L.toWorld(L.anchorPoint);
Expression to fade particles based on the camera’s distance from the centre
distanceToCentre = length(thisComp.layer("Camera 1").transform.position, thisComp.layer("Galaxy NULL").transform.position); 
linear(distanceToCentre, 0, 2000, 0, 1.5);

Other tutorials mentioned:


Download

Published by ShiveringCactus

Tutorials and videos, mainly After Effects, but with some 3D and puppetry stuff too.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: