Baking texture color in to a Stoke sim

Discussion of the Stoke MX Particle Reflow Tools for 3ds Max
lostpixels
Posts: 17
Joined: Tue Mar 21, 2017 1:56 pm

Baking texture color in to a Stoke sim

Postby lostpixels » Fri Jun 09, 2017 4:26 pm

I know this is probably an easy operation, but I cant seem to figure it out.

Let's say I have a sphere as my distribution source and a fumefx sim as my velocity field.

When the smoke carries the particles off of the sphere, I want those particles to have their color "baked" in right then and there. So if the texture is animated, it will not effect any particles post-birth. An example of this in action can be found here: https://www.youtube.com/watch?v=fpViZkhpPHk

Note how the particle emission is not changing on the particles as they float up... It's set at the time of their birth.

User avatar
Bobo
Posts: 5939
Joined: Tue Nov 15, 2005 10:26 am
Location: Vancouver, Canada
Contact:

Re: Baking texture color in to a Stoke sim

Postby Bobo » Fri Jun 09, 2017 8:31 pm

Actually it is rather easy in Stoke MX 2.3, but it has not been released yet :(
There, we have a Birth Magma and Per-Step Magma, so all you need to do is evaluate the Color in the Birth Magma (e.g. TexmapEval using the same texture as the emitter's diffuse map) and it will persist for the duration of the particle's life.

However, you could work around the lack of Birth Magma in Stoke MX 2.2 and earlier by using the Birth Channel Generator of Krakatoa MX (both commercial and in evaluation mode).
  • The PRT saved by Stoke 2.2. will not have a Color channel with the desired color value, but you could assign the same material as on the emitter, make sure you have the TextureCoord channel checked if the texture is 2D, and resave using Krakatoa to a new PRT sequence with Color channel saved - this should bake the material diffuse color into the new PRT sequence.
  • Now use the Birth Channel Generator to create a BirthColor from the Color channel of this new sequence - this will give you a new PRT sequence with a BirthColor channel which will contain the Color of the particle at birth throughout the life of the particle.
  • You can then copy the BirthColor into Color using a Magma if you need it displayed.
Borislav "Bobo" Petrov
Product Specialist
Thinkbox Software Inc.


Return to “Thinkbox Software - Stoke MX”

Who is online

Users browsing this forum: No registered users and 2 guests