RailClone > RailClone Pro (*)

Building generator with specific height and colour constraints.

(1/3) > >>

Rio:
I did this previously with a spline at each floor level and a 2SArray set to 1 floor height, these splines were segmented and given ID for specific facade units, the seperate colours were controlled by 3 seperate Railclone objects with different materials assigned. The different building height were controlled just by copying up the splines by the number of floors required for each block.

I'm sure there must be a neater way to do this, need to be able to control the heights to specific value, and the colours. Can someone give me a nudge as to a better way of doing it? Can the height of 2SArrays be controlled by some parameter on the base object? Either that or I think maybe I could at least link each RCobject to a master style, so I'm only editing one object?

Any thoughts on best practice appreciated.

Thanks.

Paul Roberts:
Hi,
Thanks for the question. There are several ways of doing this. Attached is a technique that uses RailClone Spline Markers instead of Vertices to divide up the facade. It works using a few interesting techniques, including:

- Uses a Selector node set to X Spline Marker ID to choose facade elements. RC Spline Marker is added to the base spline and you can change the ID property to choose where to place new facade elements without having to add additional vertices to the base spline.
 - Also uses Markers to set colour In this example I've also used the first User Data property to set the colour. To change the material I'm using a Material node which allows you to change a segment's material IDs.
 - Height is set by multiplying the height of a facade element by the number of floors and wiring the result to the Generator's Y Size property. I've set the number of floors using the Spline's Material ID value.

I hope that helps,

Paul

Rio:
Thanks so much for that, I knew there was probably a better way. I'll have a look later today. Building height by Spline ID sounds ideal.

Rio:
Thanks again for your great file, I've transfered it across to my scene/ geo and it's working great so far. One question I still have: is there any way of just randomising the selection of the facade components on the X spline direction rather than using the markers to select them (I'm just being lazy here, I've a lot of splines to get around).

The closest I've got is plugging a random interger in to the selector index. However whilst it's possible to do in the Y Row, there isn't an option to generate the random index on the X row

Paul Roberts:
No problem at all,

You can randomise segments on the X-Axis either using a Randomise node, or using a Random Integer wire to a selector with Generate on set to Segment.



I hope that helps.

Paul

Navigation

[0] Message Index

[#] Next page

Go to full version