Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Alex.S on March 13, 2017, 11:15:37 AM

Title: Request - Params for Spline section with current Material
Post by: Alex.S on March 13, 2017, 11:15:37 AM
In arithmetic nodes we have options for spline length, percentage along the spline, and also for the section too.

It'd be really useful to add a further submode for 'Material Sub-Spline'. So for example this would allow us to scale mapping appropriately along a spline sub material for example. For example I construct a wall along a spline, and I want to put advertising on segments with spline mat id 2. But the default segments are only a quarter of the length mapping I want for the advertisement. This way I could scale things correctly easily.

That said knowing how many segments will be in that section (another others) too could be super useful, as even though a line is say 10m long, if the section is 2.5m long, there could be 4 or 5 segments depending on where the spline starts. I guess I'm coming round to it'd be nice to have a post 'geometry' pass for uvw?

Sorry a bit rambling, unsure as to what the best way to approach the situation is...

(At present I modify the uvw afterwards to fix UVW issues)
Title: Re: Request - Params for Spline section with current Material
Post by: Michal Karmazín on March 13, 2017, 12:11:31 PM
Hi,

Thanks for your suggestion, we'll evaluate it. Currently, for these purposes you can use the UVW XForm (http://UVW) Operator in combination with the Conditional (http://docs.itoosoft.com/display/RAILCLONE/Operators#Operators-Conditional) Operator (in the sample scene set to Spline - Material ID - Equal to 2). Attaching the sample scene, hope you'll find useful.

Best regards,
Title: Re: Request - Params for Spline section with current Material
Post by: Alex.S on March 14, 2017, 11:27:08 AM
Increasing the tiling it is already possible yes, the issue is if I wish to stretch it.

Imagine I am building a wall. And I wish to put advertising on it. Each segment only uses 1/2 of a UVW tile for the advert for example. And there are 5 segments in total with the length of spline we are working with, I would want to scale it so there are 2 complete tiles there, rather than 2.5 tiles (0.5 x 5). I am already able to figure it out over the length of the entire spline, but not over a section with a spline material id. As usually I would want to use the spline mat id to signify which parts should show advertisements.

So at present things end up with half a tile in places and I have to fix these with uvw unwrap modifiers afterwards.
Title: Re: Request - Params for Spline section with current Material
Post by: Michal Karmazín on March 14, 2017, 03:55:58 PM
Hi,

In such case, the Apply Box Mapping feature might be an option. Attaching a sample scene. Hope that helps.

Best regards,
Title: Re: Request - Params for Spline section with current Material
Post by: Alex.S on March 17, 2017, 03:22:54 PM
There are issues with that feature at present creating strange mapping with more than basic objects. I already have the logic to do these things over an entire spline anyway, The issue is just not being able to do it on a subsection by Spline ID because the appropriate variables are not present.

Also using the limit by spline and having separate generators isn't viable due to these issues http://forum.itoosoft.com/index.php?topic=4353.0

Also if I have many options based on spline id, then multiple generators is incredibly inefficient.