Create "Saturn" asteroids in the cleanest way?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
PeterCGS
Posts: 23
Joined: 21 Nov 2011, 23:00

Create "Saturn" asteroids in the cleanest way?

Post by PeterCGS » 06 Aug 2012, 09:23

Im stumbled on what I think must be a super simple setup, I do seem to make it way more complicated than I think it need to be. What I want to create is a saturn ring with asteroid particles. The ones closest to the middle I want to rotate faster (easy by scale it by distance). Thats basically all I want to do. However I thought that aligning the direction to the centre, and just do a velocity on the X would to the trick, so the particles keeps poiting towards the middle and just moves on X in their local axis, however everything moves as on unit, just in one direction when Im doing that. This is what I've done now. Its messy, and the particles tends to move away from the center as I increase the velocity, and I have a null to drag them back.. Simply not a nice solution. Anyone know of a "cleaner" way to achieve the same thing?

Image

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 08:59
Location: Close to The Hague, Netherlands
Contact:

Re: Create "Saturn" asteroids in the cleanest way?

Post by Rork » 06 Aug 2012, 09:47

SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

PeterCGS
Posts: 23
Joined: 21 Nov 2011, 23:00

Re: Create "Saturn" asteroids in the cleanest way?

Post by PeterCGS » 06 Aug 2012, 10:05

Yes.. I've looked at Newton, but that is even more complicated than my needs just now.

I thought emitting particles, set a billboard Orientation compound towards the null in the centre, and then move the particles in their local X-axis would do the trick. But they doesnt move at all in a circle. So the problem is.. How do I move a particle in their local X?

ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

Re: Create "Saturn" asteroids in the cleanest way?

Post by ChrB » 06 Aug 2012, 10:10

PeterCGS wrote:Yes.. I've looked at Newton, but that is even more complicated than my needs just now.

I thought emitting particles, set a billboard Orientation compound towards the null in the centre, and then move the particles in their local X-axis would do the trick. But they doesnt move at all in a circle. So the problem is.. How do I move a particle in their local X?
Take a look here for a compound that moves a particle in its local axis:

http://dot3d.blogspot.com/2009/10/softi ... ep-by.html
Arnold for the masses!

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: Create "Saturn" asteroids in the cleanest way?

Post by owei » 06 Aug 2012, 10:17

Hi!

Don´t use forces for this, just set the velocity directions and speed of your particles depending on the distance to the center...

Edit: just did a test an noticed, that it leads to the same problem..of course, the tangents alone can´t solve the problem. There has always to be a force/velocity directing to the center of the rotation to keep the particles on track...

Well, but increasing the subsampling helps to dampen this problem...I´ve set it to 20 an the sim keeps "stable" for 1000 frames..

cheers,
oli

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: Create "Saturn" asteroids in the cleanest way?

Post by owei » 06 Aug 2012, 10:51

Here is the setup. The more you increase the subsampling, the better it works ;)

Cheers,
oli
Attachments
orbit.JPG

PeterCGS
Posts: 23
Joined: 21 Nov 2011, 23:00

Re: Create "Saturn" asteroids in the cleanest way?

Post by PeterCGS » 06 Aug 2012, 10:56

Thank you Oli! I will test your setup! It looks cleaner by far :)

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: Create "Saturn" asteroids in the cleanest way?

Post by owei » 06 Aug 2012, 11:51

...or just use the "Orbit Around Controller" compound...that works precise because it does not rely on tangents which are always approximations and therefor not precise ...

cheers,
oli

PeterCGS
Posts: 23
Joined: 21 Nov 2011, 23:00

Re: Create "Saturn" asteroids in the cleanest way?

Post by PeterCGS » 06 Aug 2012, 12:48

The Orbit place everything in the same distance from the centre. Thus not making any "Saturn" rings :/

ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

Re: Create "Saturn" asteroids in the cleanest way?

Post by ChrB » 06 Aug 2012, 12:52

Here is another version. It is a bit more complicated, but twice as fast:

Image

Image

It uses a parametrical circle for each point (offset with a random number) and then selects the position from this array.
Arnold for the masses!

ChrB
Posts: 55
Joined: 10 Jun 2009, 13:26

Re: Create "Saturn" asteroids in the cleanest way?

Post by ChrB » 06 Aug 2012, 13:46

ps. If you want to adjust the radius of the belt dynamically, just add a |multiply by scalar| between |select in Array| and |self.pointPosition| of the second port.
Arnold for the masses!

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: Create "Saturn" asteroids in the cleanest way?

Post by owei » 06 Aug 2012, 14:08

...nice and smart approach, ChrB!!

@PeterCGS

...does it?? You have to use an input axis and don´t set the altitude for you particles...that´s what I´m getting ;)
Attachments
orbit_1.JPG

PeterCGS
Posts: 23
Joined: 21 Nov 2011, 23:00

Re: Create "Saturn" asteroids in the cleanest way?

Post by PeterCGS » 06 Aug 2012, 18:49

Thanks guys for all the help! I will try them to see which performs best :)

User avatar
dwigfor
Posts: 395
Joined: 17 Nov 2009, 17:46

Re: Create "Saturn" asteroids in the cleanest way?

Post by dwigfor » 07 Aug 2012, 09:45

Here's my first attempt at this; thought my mistake looked kinda cool:



Image

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests