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 »

Feel free.
Clinton Reese

http://clintons3d.com
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 »

ReactiveParticles01.jpg
Image shows each of the particles turning to face the camera.

Converted to what I call a "Reactive" particle system, using a script object instead of a command script. The script reacts to changes from outside the script, where command scripts are run directly. In this case the script is basically reacting to changes in the time line. Being reactive makes it much easier to render.
Also changed to a world coordinate system which will make it easier/possible for the particles to originate from objects in the scene and be able to move independently of those objects.
Clinton Reese

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

Re: Workspace Particles

Post by trueBlue »

Sounds like your Particle System is getting some awesome upgrades!
Salivating :mrgreen:
Noticed something and not sure what is going on.
I added a modified Sequence Image Player to your Particle System's Material to see if I could get an animated material working. It works but the images are showing Backwards or Mirrored and upside down.
The included Sequence Image Player has an Animation aspect with a Time attribute that can be Keyframed.
You would need to create and load 40 images.
Can you take a peak at this?
Annotation 2020-04-10 173553.png
I created a simple 40 frame animation (not included) of a Cube traveling from the left of the screen to the right.
With the Animation playing while running the Particles System, you can see the images playing Backwards.
Attachments
Item.RsScn
(1.28 MiB) Downloaded 186 times
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: 11 Apr 2020, 00:12 .... It works but the images are showing Backwards or Mirrored and upside down.
...
ReverseUV.jpg

Try reversing the UV mapping with negative values.
Clinton Reese

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

Re: Workspace Particles

Post by trueBlue »

That corrects it. Thanks.
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 »

ParticleFlipbook.jpg
image shows UV based flip book animation material


Final update before cleanup and release.
Fixed the horrible trueSpace crash bug
Emit from vertices or face in order or randomly.
Enable or disable ground collision checkbox
flipbook animation material
inherit velocity - particle initial speed can match the emitter motion

Side note for trueBlue - I changed the UVs for the cards because they were upside down, so this would undo the scale UV by -1 advice from before.
Clinton Reese

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

Re: Workspace Particles

Post by trueBlue »

Awesome!
Is this something that would be useful for your flip book images?
Glen Gordon made this Contact Sheet Generator
Contact Sheet Generator.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: 14 Apr 2020, 02:07 Awesome!
Is this something that would be useful for your flip book images?
Glen Gordon made this Contact Sheet Generator
Contact Sheet Generator.png
Could be, as a tool that's run to generate the flip book image used in the material. The particle system is limited to square image, #rows = #columns.
Clinton Reese

http://clintons3d.com
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 »

ConstantTextureBug.jpg
left side is reading the Color_shader black value, ignoring the Constant_shader values
trueSpace BUG

This really caused me a lot of trouble. The ConstantTexture node's InputBitmap node has it's usage set to "DIFFUSEMAP". It usually works but when I tried to use it with the flip book constant texture it failed and only read the Color_shader value. Changing the usage to "CONSTANTMAP" fixed the problem.
Clinton Reese

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

Re: Workspace Particles

Post by trueBlue »

Is this something I should update or add to in the Updates?
C:\trueSpace761\tS\Rs Main Libraries\Shaders - Constant Shaders
ConstantTexture.RsObj
How do you find the solution by changing it to CONSTANTMAP?
Post Reply