Itoo Software Forum

Author Topic: trouble / double elements in my pavement  (Read 833 times)

BL_zoomvp

  • Newbie
  • *
  • Posts: 9
trouble / double elements in my pavement
« on: June 15, 2015, 05:38:11 PM »
Dear Team, dear users!

I 've got a problem using Railclone.
My pavement got some double Elements in some spline area.
I'm using a surface and a spline as clipping area.





There is only a single spline, not 2 or more.
I think I've done a mistake in my Railclone-node-tree.

Scene is attached.
I'm looking forward for some help.
Thanks in advance.
Best regards
Bernhard

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: trouble / double elements in my pavement
« Reply #1 on: June 15, 2015, 07:12:44 PM »
Hi,

Thanks for the question. This is a limitation of the way in which the arrays are calculated when using Clipping paths with Extend X/Y Size to area. To create the final geometry, RailClone creates a new array for each spline area, and then all the clipping operations are applied as the final step. So for your pavements RailClone is creating two arrays as shown below.



But as you can see, unfortunately in this case Array 2 is inside Array 1, which explains why you get the doubling of geometry in that area. If you look at the splines being used by the other generator, you can see why this doesn't share the same problem:



There are more individual areas in this example, but none overlap so there's no doubling of geometry.

To fix the pavement you have two options. You can either detach the spline that's causing the problem, clone the RailClone object and apply it to the detached spline separately; or alternatively you could turn off Extend X/Y Size to Area, create an array that covers the entire area and just use the spline as a clipping path. You can see the second solution in the attached file.

I hope that helps, please let me know if you have further questions.

Many thanks,

Paul
Paul Roberts
iToo Software

BL_zoomvp

  • Newbie
  • *
  • Posts: 9
Re: trouble / double elements in my pavement
« Reply #2 on: June 15, 2015, 07:47:37 PM »
Thank you very much Paul.
Now I understand why it didn't worked.

Have a nice evening. :)



TL1895

  • Sr. Member
  • ****
  • Posts: 296
Re: trouble / double elements in my pavement
« Reply #3 on: June 30, 2015, 04:48:50 PM »
Nice post BL_zoomvp.

I wanted to make a similar style recently, so downloaded Paul's scene to look it over.
It opened up, and has some wonky stuff happening I'm wondering how to fix.

Thanks,
TL1895

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: trouble / double elements in my pavement
« Reply #4 on: June 30, 2015, 04:56:58 PM »
Hi!

That issue occurs when perimeter of the the surface is too close to or coincident with the clipping spline. This is a known limitation, to fix it just enlarge the surface area slightly so that it is bigger than the clipping spline and the problem should disappear.

I hope that helps, but please let me know if there's anything else I can do.

Many thanks,

Paul
Paul Roberts
iToo Software

TL1895

  • Sr. Member
  • ****
  • Posts: 296
Re: trouble / double elements in my pavement
« Reply #5 on: June 30, 2015, 04:59:50 PM »
Hi Paul,

Great info, thank you!  I've had this happen before, too, so it's good to know why it happens :)

Thanks again,
TL1895

edit:  Your instruction fixed the problem immediately
« Last Edit: June 30, 2015, 05:01:26 PM by TL1895 »

TL1895

  • Sr. Member
  • ****
  • Posts: 296
Re: trouble / double elements in my pavement
« Reply #6 on: July 03, 2015, 03:09:34 AM »
Just wondering how to get one bitmap applied to each segment with/or varying shades of grey?
Like...

Rokas

  • Sr. Member
  • ****
  • Posts: 406
Re: trouble / double elements in my pavement
« Reply #7 on: July 03, 2015, 06:01:54 AM »
Just wondering how to get one bitmap applied to each segment with/or varying shades of grey?
Like...
use mulitexture map
https://cg-source.com/multitexture.php

TL1895

  • Sr. Member
  • ****
  • Posts: 296
Re: trouble / double elements in my pavement
« Reply #8 on: July 03, 2015, 06:28:50 AM »
haha, I completely forgot about that!?  :-[ :-[
Thanks!

TL1895

  • Sr. Member
  • ****
  • Posts: 296
Re: trouble / double elements in my pavement
« Reply #9 on: July 03, 2015, 03:55:33 PM »
Ended up having easier time with Crossmap, FWIW...
Thanks again!