Author Topic: Volumetric shader rotation  (Read 2540 times)

2019-07-06, 00:29:59

renascent

  • Users
  • *
  • Posts: 4
    • View Profile
Hi there!

Finally have a question to ask playing with the volumetric shader... i've noticed the effect only takes place in world position, not object position.
Simple example would be applying the shader to a Box and spinning it the shader volume doesn't spin with it as expected.
« Last Edit: 2019-07-11, 11:28:49 by maru »

2019-07-08, 15:43:42
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6164
    • View Profile
That would depend on the projection of the noise being fed into the volumetric shader (usually this can be set to things like UV mapping, object space, world space etc.). That is, assuming you are using noise into one of the volumetric channels, you don't give any info on what the shader set up is :)
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-07-08, 22:54:04
Reply #2

renascent

  • Users
  • *
  • Posts: 4
    • View Profile
I attached the setup.
So imagine i rotate the pyramid the volume does not rotate with it even tho its set to object

2019-07-09, 14:52:06
Reply #3

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6164
    • View Profile
Would likely need to see the scene (the red suggests the parameters of the Perlin are animated? how does the pyramid have a solid outside surface, must be two overlapping objects maybe?). Works here, scene attached, just using Emission as the quick and easy version, didn't animate anything but you can rotate the cube in realtime and see it working, so there must be something different about the scene set up that you have in some way.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-07-09, 21:19:20
Reply #4

renascent

  • Users
  • *
  • Posts: 4
    • View Profile
i've attached the Max file, i started from the Sponge file in the hader examples. Max 2017

2019-07-09, 22:17:38
Reply #5

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6164
    • View Profile
It works for me. Some notes

- There was no actual animation of the pyramid, though it had keyframes of some sort. The Curve editor showed a lot of bizarre entries, so I started a new scene and imported the objects to get rid of whatever those were. I deleted whatever the keyframes were on the pyramid (they weren't making it rotate, at any rate)
- The perlin did seem to have some keyframes recorded for it, so I deleted those
- I used autokey to create a simple rotation, grabbing both pyramid objects when creating the rotation

Attaching the scene I ended up with, in Max 2017 format. Maybe you can show renders or video grabs of the result you are getting?



Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-07-09, 23:19:28
Reply #6

renascent

  • Users
  • *
  • Posts: 4
    • View Profile
hmm, im starting to think i just messed up animating it...!

https://www.instagram.com/p/BzgE0tfn0nm/ and https://www.instagram.com/p/Bza3fgmHPEb/
are what ive been working on. (these dont rotate)

but like you said, i just deleted all keyframes rotated the pyramid and it worked fine.
It must have been the motion i added to the perlin noise that made it feel like it wasnt rotating with the object.


2019-07-10, 13:58:38
Reply #7

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6164
    • View Profile
Those are super cool! To be honest, it should work with animated parameters in the perlin, and rotating object, I can't see why it wouldn't. Maybe building the rotation first, then adding in the animated parameters?
Tom Grimes | chaos-corona.com
Product Manager | contact us