Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Dynamically assigning Materials to particles
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leo Quensel  
View profile  
 More options Jul 5 2012, 11:11 am
From: "Leo Quensel" <le...@gmx.de>
Date: Thu, 05 Jul 2012 17:11:23 +0200
Local: Thurs, Jul 5 2012 11:11 am
Subject: Dynamically assigning Materials to particles
Hey guys,

I think this is not possible with ICE in the current state, but as we
are now able to assign materials to polygon meshes via ICE, why not implement
the same for particles and/or instances?

In my case I have a big simulation containing thousands of planes with a different texture for each one.
At the moment I have a hundred textures and therefore a hundred polygon planes in my scene which I randomly instance.
The perfect idea would be to have just one plane to be instanced and dynamically assign a material via ICE per instance.
I know I can pull a value to the rendertree and perform some texture switching based on that, but with a hundred different materials this becomes too big.
I need a hundred materials that way or another, but it would greatly help
in reducing the object count in the scene.

A side note:
I have to repeat this as often as possible:
The viewport does not display instances as instances properly.
Set the particle shape to rectangle: Perfect speed even with thousands of particles
Instance a single-polygon grid instead: Massive performance drop

Cheers,
Leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mathieu Leclaire  
View profile  
 More options Jul 5 2012, 11:42 am
From: Mathieu Leclaire <mlecl...@hybride.com>
Date: Thu, 05 Jul 2012 11:42:31 -0400
Local: Thurs, Jul 5 2012 11:42 am
Subject: Re: Dynamically assigning Materials to particles
If it's just textures, why don't you simply convert your textures as an
image sequence (image.01.exr, image.02.exr, etc...), load it as a image
sequence in your 1 material and use Self.ShapeInstanceTime to determine
which texture gets assigned to which particle?

-Mathieu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Gabe  
View profile  
 More options Jul 5 2012, 11:43 am
From: Bradley Gabe <witha...@gmail.com>
Date: Thu, 5 Jul 2012 10:43:52 -0500
Local: Thurs, Jul 5 2012 11:43 am
Subject: Re: Dynamically assigning Materials to particles

Why not follow the process used by the new crowd system and generate a
single mesh with thousands of clones (rather than instances)? You should be
able to control material assignment per clone, and we've seen demos of huge
crowds with thousands of elements.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Gabe  
View profile  
 More options Jul 5 2012, 11:47 am
From: Bradley Gabe <witha...@gmail.com>
Date: Thu, 5 Jul 2012 10:47:06 -0500
Local: Thurs, Jul 5 2012 11:47 am
Subject: Re: Dynamically assigning Materials to particles

I like this idea better than crowd clones :)

But at least it answers your suspicion, not only is it possible but there
are likely multiple viable solutions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Ullmann  
View profile  
 More options Jul 5 2012, 11:56 am
From: Vincent Ullmann <vincent.ullm...@googlemail.com>
Date: Thu, 5 Jul 2012 17:56:51 +0200
Local: Thurs, Jul 5 2012 11:56 am
Subject: Re: Dynamically assigning Materials to particles

I think there is a Sample Szene wich assigns Materials Dynamicly....
"...\XSI_SAMPLES\Scenes\ICE\MaterialIDs.scn"
You should have a look there....

Anonther Solution:

- Give every particle a Random Integer Value
- Use this Integer in the Rendertree with a Color-Switch-Node

  Unbenannt-1.jpg
578K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leo Quensel  
View profile  
 More options Jul 5 2012, 12:15 pm
From: "Leo Quensel" <le...@gmx.de>
Date: Thu, 05 Jul 2012 18:15:26 +0200
Local: Thurs, Jul 5 2012 12:15 pm
Subject: Re: Dynamically assigning Materials to particles
@Bradley

I don't have 2013 yet. It would be nice to simply convert the pointcloud
to a polymesh, but it would have to be exact.
Every de-instanced polymesh would have to be exactly aligned with its instance and have the same materialID as the original point.
And I think the problem here might be getting the data over from a single
particle to a per-polygon ID per instance.

@Mathieu

That seems to be a pretty good idea - will probably work for this
case as it is just textures.
It would be nicer to completely switch the material though.

@Vincent

Unfortunately that only works for polymeshes.

-------- Original-Nachricht --------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leo Quensel  
View profile  
 More options Jul 5 2012, 12:17 pm
From: "Leo Quensel" <le...@gmx.de>
Date: Thu, 05 Jul 2012 18:17:51 +0200
Local: Thurs, Jul 5 2012 12:17 pm
Subject: Re: Dynamically assigning Materials to particles
I tried pulling a random integer into the rendertree and use a
texture_array_switch node. For that I scripted the connection of
the 100 textures to the array node, but no matter what I did, the node
always returned an empty value (the indices were correct and the IDs got
pulled over to the rendertree just fine).

-------- Original-Nachricht --------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »