Itoo Software Forum

Author Topic: Objects loose their Material  (Read 3710 times)

M55

  • Newbie
  • *
  • Posts: 42
Objects loose their Material
« on: December 15, 2017, 11:41:34 AM »
when i create a railclone object
i open up the editor
create a array 2S
put a slpine in the clipping area
put a segment in default ... for example a red box
array 2S ... extend size ...
the array shows up
but the red boxes loose their material
any idea
« Last Edit: December 15, 2017, 11:46:37 AM by M55 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Objects loose their Material
« Reply #1 on: December 15, 2017, 12:42:36 PM »
Hi,

This happens because unlike Forest Pack, RailClone does not consolidate materials and reassign IDs automatically.  At present you need to create a Multi-Sub object material that uses the same material IDs as set on the source geometry, so the same material applied to both RailClone object and the individual components yields the same results.

In our original design for RailClone we expected material creation to be a part of the preparation to create a style. For example Forest includes the ability to consolidate materials because it's much more dependent on using multiple plants from different sources. But in RailClone each segment is usually designed uniquely for a specific style, so part of the design includes preparing the materials.

However we've had a few requests for this feature so it's now on our to-do list. Initially we would implement the same method used in Forest (create a multi-sub material on the fly), but we must evaluate carefully what side effects may be.
In any case, we want to provide a solution for this issue in the next updates.

Until we release this feature you might find this quick tip useful. If you don't want to create a multi-sub object shader and re-assign IDs manually, an easy way to consolidate materials is as follows:

-    Attach all the objects into a single mesh. Use the default options, so Max creates the multi-sub object.
-    Detach each object back into separate objects.
-    Re-adjust the pivots if necessary.

You may find there are some scripts that can make a multi-sub object for you. For example I use RappaTools which has a Multi-Material from Selection option. This creates a multi-sub object material and automatically re=assigns the IDs. I believe the free version may have the same functionality, but we haven't tried it

I hope that helps,

Paul
Paul Roberts
iToo Software

M55

  • Newbie
  • *
  • Posts: 42
Re: Objects loose their Material
« Reply #2 on: December 15, 2017, 01:12:28 PM »
Hi Paul,

thanks a lot for clarification.

i normally use existing presets in RC and just started to digg a little deaper ...  was confused because ForestPro acts different.

Anyway the more i get into RailClone the more i love the endless posibilities. I´ll use Rappa ...

And as you said you better check all side effects before doing any changes ... :)

thanks

Klaus