Jump to content

 

Photo

Animated materials on growing instanced geo?


  • Please log in to reply
5 replies to this topic

#1 SamBoyd

SamBoyd

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 27 April 2012 - 11:02 AM

Is it possible to have animated materials on my instanced geo?

I have growing strawberrys and i would like to change the shader as they grow larger.

I noticed you can control the blend between colors with the vertex color option but i couldn't figure out how to apply this to my strawberry shader?

If this is possible it would be usefull but ideally i would like to have full control over the blend, ie. using noise maps to control tranistion between shaders and so on.

At the moment i just animated the material on my strawberry master but obviously they all change at the same time.

Thanks for any suggestions

Sam

#2 Eduard

Eduard

    Developer

  • Moderators
  • 862 posts

Posted 27 April 2012 - 02:28 PM

Hi Sam,

Your task is very interesting, but for this we need to create an affect to the current time of the material (when rendering). At the moment GrowFX doesn't allow this.
I think we should try to develop their own material plugin, which will allow change the current time, providing the material of different ages.

Cheers

Eduard Danilov

www.exlevel.com


#3 ptrain03

ptrain03

    Advanced Member

  • Moderators
  • 142 posts

Posted 28 April 2012 - 03:11 AM

could you animate the mix amount parameter of a standard mix map ? oh, wait, just read eduards reply more thouroughly, i guess not.

#4 ptrain03

ptrain03

    Advanced Member

  • Moderators
  • 142 posts

Posted 28 April 2012 - 03:38 AM

ok, I just tested this and it worked for me, hopefully it helps.

I made a material with a mix map in the diffuse then animated the mix percentage. After that I made a sphere and applied the material to it. then I created a grow fx object and used the sphere as an instance. Then I checked generate multisub in the grow fx instance geometry dialog and it worked. The only drawback would be that the growth of the growfx object wouldn't affect the material change so I guess you would just have to syncronize manually, however, if growth of the plant can affect the vertex color slider then you could use a mix map with a vertex color map for the mix amount, not sure about that though. I dont have 1.8 on my home machine.

good luck :)

#5 ptrain03

ptrain03

    Advanced Member

  • Moderators
  • 142 posts

Posted 30 April 2012 - 02:34 AM

I think this is doing what you want. The vertex position spinner is affected by the length of the distributor path and it is switching between two different maps. I just added a vertex map to the mix amount. It may not be exactly what your looking for, but I hope it helps.

Attached Files



#6 Eduard

Eduard

    Developer

  • Moderators
  • 862 posts

Posted 30 April 2012 - 09:35 AM

Thanks a lot!
Yes, you did the right thing, it's still the only way to create a transition between two textures. Also you can use the Blend material, it will allow to create transition between two materials.

Cheers

Eduard Danilov

www.exlevel.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Copyright © 2014 Exlevel