Itoo Software Forum

Author Topic: Forest pack on RailClone  (Read 542 times)

VIZIOEN

  • Newbie
  • *
  • Posts: 24
Forest pack on RailClone
« on: April 30, 2016, 09:53:43 PM »
Is it possible to use a forest pack distribution on a rail clone object. I tried it but it doesn't work, my max freezes. What I'm trying to do is distribute grass on patches between tiles that are created with railclone. See attached.

VIZIOEN

  • Newbie
  • *
  • Posts: 24
Re: Forest pack on RailClone
« Reply #1 on: April 30, 2016, 10:05:13 PM »
I tried distributing on a plane and using railclone as an exclude object but it fails.

VIZIOEN

  • Newbie
  • *
  • Posts: 24
Re: Forest pack on RailClone
« Reply #2 on: May 01, 2016, 12:48:53 PM »
I managed to get the exclude way a bit better, by adjusting the resolution and such, but now I get strange lines.


iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3158
    • iToo Software
Re: Forest pack on RailClone
« Reply #3 on: May 02, 2016, 11:27:22 AM »
No, a FP object cannot used directly as a RC segment. RailClone expects that segments are standard objects (with a mesh), but FP by default generates instances at render, not meshes.

The technique you use with RailClone as exclude object may work, but it's not very precise. There are two better alternatives:

Method 1) Create a mesh piece with the tile and grass attached, and use it in RailClone as segment. It can be done generating the sample grass with FP, but setting Display->Viewport to Mesh and collapsing the object. Then, attach it to the tile (this step it's necessary to create the multi-sub material with all elements).

The problem with this method, is that all grass patches will be the same. You will get a non-desirable pattern effect.

Method 2)

a) Generate the tile as usual in RailClone, but without the grass. Set a specific material ID to the ground area, which will use to scatter the grass over it.
b) Set Display->Viewport to Mesh and turn off Display->Render->Use Instancing engine. In this way, the RC object will be generated as a standard mesh.
c) Create the grass with FP, using the RC object as scattering area and set Areas->Surf.Mat.ID to the ID used for ground between tiles, defined in step a).

This procedure lets you to adjust the grass once generated, and visually will look better.

Please note that if you use high-poly tiles and large areas, the RC object may be huge because doesn't use instances. To avoid that, you would create two RC objects, one for the tiles with instancing on, and other for the ground as a mesh.

I hope that helps.
Carlos Quintero
iToo Software