question

Mikkel Sandner avatar image
Mikkel Sandner asked ·

X-particles multishader

Hi,

I am new to X-Particles so hope anyone can give me a helping hand using Arnold to render it.

I have set up my x-particles animation which is a bunch of planes(xpGenerator) on a floor that gradually covers a character.
Would anyone know how I can use Arnold render in Cinema 4D to render this?

What I am after is to add different images to my plane objects in the xpGenerator. But I can't see any texture on my xpGenerator object when using Arnold render.

Any suggestions how to do this?

Thanks,

Mikkel

x-particles
2 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Do you need a random texture per plane or something more specific?

0 Likes 0 · ·

Yes a random texture per plane would be great. I know how to create a multishader when using a cloner, but I have no clue how to do it when rendering x-particles.

0 Likes 0 · ·

1 Answer

· Write an Answer
Peter Horvath avatar image
Peter Horvath answered ·

If you need random textures the workflow is not much different than with a Cloner. You can use a utility shader with the object id to drive a switch shader which selects from a range of textures. Check out this scene, just connect your textures to the switch shader inputs.

xpgenerator.zip


xpgenerator.zip (138.8 KiB)
3 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Hi Peter,

Thanks that seem to work. However, its not using the all the inputs in the switch node.

When I do this using a cloner I usually follow this method:
https://inlifethrill.com/c4dtoa-1-recreating-mograph-multi-shader/
Only difference is that I add a color correct node after the utility with gamma 2.2.
That way most of inputs are shown.

Would you know how to display all the inputs when using x-particles?

Thanks,
Mikkel

0 Likes 0 · ·

Made some changes here, hopefully this will now work as you expect: xpgenerator_v02.zip

You don't need a gamma. Basically what's happening is, that the utility produces a random color per object, I added a random shader to make the distribution better and make the output grayscale, then this is scaled up to the number of inputs via the range shader (5 in this eample). I also added an float_to_int shader to do rounding instead of floor and this drives the switch shader to select an input.

1 Like 1 · ·
xpgenerator-v02.zip (123.7 KiB)

Thanks, Peter!
This works great.

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.