Here's the puzzel..

I have a street of length x.

I have three models I can randomly select from to insert on that street, the models are of known length (units of 25m).

100, 50 and 25.

I would like to effectively iterate along the road and fill it with assets(inserted at realworld size s(0,0,0)) until the road is full.

Additionally the intention is to have randomly sized gaps between each model.

Here's the bit I'm struggling with..

I would like after each asset placement to the randomly choose from the three models again before the next insert.

How would I do this?

I have a street of length x.

I have three models I can randomly select from to insert on that street, the models are of known length (units of 25m).

100, 50 and 25.

I would like to effectively iterate along the road and fill it with assets(inserted at realworld size s(0,0,0)) until the road is full.

Additionally the intention is to have randomly sized gaps between each model.

Here's the bit I'm struggling with..

I would like after each asset placement to the randomly choose from the three models again before the next insert.

How would I do this?

Placing assets on a street is done easily like that :

Since street shapes have nicely layouted UVs already, use UV-splits to split them along the length and across. Since CGA always must have geometry to work on, the best thing for placement is to cut a thin stripe (give it some room to work on, don't go below 1 cm) on which the assets are supposed to be placed.

Then split this stripe again along it's length, e.g. :

Of course, you want to place the assets in certain distances, so you could come up with a rule ( even recursive ) which uses 'geometry.du' or 'geometry.dv' ( arclength, check docs ).

Let me know if there's questions.

2]

Concerning asset rotation along the curvature, get back to me. That's done fast.

matt