Workspace Particles

User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Workspace Particles

Post by clintonman »



Experimental particle system based on mesh geometry. System is adapted from a 3dBuzz OpenGL class.
Uses the first uv channel to display the texture map and the second uv, u value is used to control the transparency over time.

The plan is to develop this for use in the 3DBuzz Maya Fundamentals 3rd project which has falling snow and an explosion.

Controls can be adjusted while the particle is running.
Saturation doesn't do anything.
WindX,Y,Z don't do anything.
Vortex is somewhat broken.
The particles don't turn to face the camera.
Spinning along the face normal is not implemented yet.

Next step is to look at other/real particle systems to see what can be adapted to this.
Attachments
ParticleDev.RsScn
(1.65 MiB) Downloaded 200 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

WOW!
This may be YOUR best trueSpace creation! :bananathumb:

If you get an error about the emitter not being defined.
Just Reset the Current iteration attribute on the ActvLoop
v3rd3
Lieutenant Commander
Posts: 1177
Joined: 21 May 2009, 20:04

Re: Workspace Particles

Post by v3rd3 »

Wow ,,,, just Wow
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

It's Snowing in trueSpace :D
Can not really tell from the screen shot, but the cube is inside the particles.
So it is snowing in front and behind the particles.
The particles have a Billboard transform object connected to a Camera, so the particles always face the camera.
Way to cool!
Thanks Clinton!
Attachments
Screenshot (50).png
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Particles

Post by clintonman »

trueBlue wrote: 22 Feb 2020, 18:37 It's Snowing in trueSpace :D
Can not really tell from the screen shot, but the cube is inside the particles.
So it is snowing in front and behind the particles.
The particles have a Billboard transform object connected to a Camera, so the particles always face the camera.
Way to cool!
Thanks Clinton!
You're welcome.
I think the billboard only works if the camera doesn't move. If the camera moves the whole particle system will rotate, not the individual particles.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

Yep. As long as you navigate around the particle object, the individual particles face the camera.
But if you navigate to the top or bottom, the individual particles do not face the camera

I see in your code where you are rotating the angle x, y, & z
What if you used Degrees to Radicans
As an example from my Manipulator project

Code: Select all

	DEGTORAD = 0.01745329251994;
	rotdeg = Space.NodeMatrixElement(OBJ,'yaw');
	tmp = Space.NodeMatrixElement(OBJ,'ty');
	Space.NodeMatrixElement(OBJ,'ty') = tmp - 0.1 * Math.cos(DEGTORAD * rotdeg);
	tmp = Space.NodeMatrixElement(OBJ,'tx');
	Space.NodeMatrixElement(OBJ,'tx') = tmp - 0.1 * Math.sin(DEGTORAD * rotdeg);
	
There is a gimbal lock in, if I remember correctly, roll?

Or turn into a widget? That would combat the destructed behavior of right it, clicking and entering into Point Editing
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

Got a random particle flare effect with Bloom Intensity set at 50.000
ColorKey set @ 233 233 233
Flares.PNG
Attachments
SnowParticlesPostprocessFlare.RsRcd
(1.63 MiB) Downloaded 194 times
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

So how is one able to animate your Workspace Particles?
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Particles

Post by clintonman »

trueBlue wrote: 26 Feb 2020, 01:59 So how is one able to animate your Workspace Particles?
"Experimental particle system"
You're on your own until it gets at least a little bit out of the experimental stage.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Particles

Post by trueBlue »

Here is what I have come up with for animating your awesome Particle System.
Fall in trueSpace.PNG
System
Start - Stop - Reset

Animation
time = Animation Time
Animate / System = Preview Animation
Render / System = D3D Render to File

Note: This is a different version of your original object. 'Leaves fall down from above'
I also have a version that has the Leaves face up.
If you are okay with this, I would like to include a Particle System library in the unofficial update.

Particle System - Author Clinton Reese
Particle System Up.RsObj
Particle System Down.RsObj
Particle System Face Up.RsObj
Attachments
Particle System Down.RsObj
(545.33 KiB) Downloaded 211 times
Post Reply