Digistruct Posted April 28, 2017 Share Posted April 28, 2017 Hey guys! I've recently started dabbling a bit in procedural modeling and making tools for creating assets. I just decided that I wanted to make a procedural railway as much from scratch as possible with looking as little as possible at tutorials and such, to test my way forward. But I have run into a problem I feel is slightly too big for me to try and find and the feature is far too important to just leave flawed. When I draw out the curve that is supposed to be the guideline for the railway I just figured I'd have a transform&merge to offset the other one, not thinking of the very obvious problem that this won't work if the railway starts bending. Any suggestions on what I could do? Thanks and have a great weekend! Jack Quote Link to comment Share on other sites More sharing options...
Atom Posted April 28, 2017 Share Posted April 28, 2017 There is an existing railway digital asset on Orbolt. Quote Link to comment Share on other sites More sharing options...
Ryuji Posted April 28, 2017 Share Posted April 28, 2017 Add a Polyframe SOP after resampling your curve. Set Entity to Points, and tick the Bitangent Name Box. Add a PointWrangle SOP: float amount = ch("Amount"); @P += -v@tangentv * amount; Click on the Create Sparse Parameters icon, and offset your curve with the newly created "Amount" parameter. Merge with original curve. Quote Link to comment Share on other sites More sharing options...
Digistruct Posted May 2, 2017 Author Share Posted May 2, 2017 Thanks, Atom - I had a look at it but the asset is locked and since I wanted to do this mainly as a learning experience that defeats the purpose... Ryuji , that worked great! Huge thanks for the help! Quote Link to comment Share on other sites More sharing options...
Ryuji Posted May 2, 2017 Share Posted May 2, 2017 You're welcome. Glad that was what you were looking for. Quote Link to comment Share on other sites More sharing options...
Digistruct Posted May 2, 2017 Author Share Posted May 2, 2017 Since I've already got this going I figure I might ask about the next issue that popped up! I used the same curves and a skin for base for he planks under the actual rails. It works fine except for when bending the curve since the facet -> primitive that drives them seem to work from a world orientation rather than per normal and therefore the planks melt together when the curve bends 90 degrees. Also, if any of you know of any good sources to learn about procedural modeling then I'd love to know about them. Thanks again! Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 2, 2017 Share Posted May 2, 2017 Hi Jack, some really useful free tutorials on procedural modeling are: Kim Goossens series on Youtube and the ones on Gametutor.com http://www.gametutor.com/live/tutorials/houdini/ Quote Link to comment Share on other sites More sharing options...
Ryuji Posted May 2, 2017 Share Posted May 2, 2017 (edited) After the Polyframe, add an AttributeWrangle: @N = v@tangentv; And use this to copy your planks on with a Copy To Points SOP. You can use a resample before copying to control how many planks you want (with the maximum segments parameter). Make sure your planks (a box, I assume) are facing the Z axis (the long side should be parallel to the Z axis). EDIT: Add a normal SOP after the copy, to get your normals back. Edited May 2, 2017 by Ryuji Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.