Problem rendering branching splines

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  05 May 2008
Problem rendering branching splines

I have been very frustrated dealing with branching spline shapes. When they are rendered, the point of intersection is rendered as overlapping cylinders, rather than a single object branching apart. I need something that can take splines sharing a common "knot", and create an effect similar to that of "rendering/enable in viewport" but with the point of intersection as either a "V" or "T" for 3 spline segments coming together (preferably with the ability to select which one for each branch), or a "+" for 4 segments coming togehter.

As I see it, this would involve 1) creating lofts from the spline segments that stop short of the actual intersections, and 2) connecting the appropriate edges together using new polygons, possibly also createing new polygons for the intersection area.
Other helpful features would be 1) the ability to control the number of sides, as with enabled rendered splines, 2) The ability to control the width of each spline separately, and 3) The ability to control the size of each of the intersections.

I think there are similar features in some of the tree and/or ivy generating scripts out there, I just want one that will apply it to a manually created set of splines, rather than one that is generated by the script.

Any help on this would be great!
 
  05 May 2008
1. Add a Sweep Modifier to your Editable Spline (the branches MUST be splines inside the same object)
2. Set the Build-in Section to Cylinder (or any other you want)
3. Un the Sweep Parameters rollout, check "Union Intersections"

RESULT: The branches will be booleaned together.
__________________
Bobo
 
  05 May 2008
Hm, I will give that a try to see what it gives me, but in my experience booleans tend to give pretty messy results. I was hoping for something more along the lines of the connections shown in this thread: http://forums.cgsociety.org/showthr...ighlight=branch

The first and second examples shown are actually pretty good examples of what I meant by the "V" and "T" connections.
 
  05 May 2008
Originally Posted by Malkalypse: Hm, I will give that a try to see what it gives me, but in my experience booleans tend to give pretty messy results. I was hoping for something more along the lines of the connections shown in this thread: http://forums.cgsociety.org/showthr...ighlight=branch

The first and second examples shown are actually pretty good examples of what I meant by the "V" and "T" connections.


I did not tell you to use booleans. I said to check the intersection option in Sweep which takes care of combining the sweep meshes together.
__________________
Bobo
 
  05 May 2008
Malkalypse,

I got your email from ScriptSpot.

global WERSplinesArray = $Line* as array
 
global WERNumSplines = WERSplinesArray.count 
 
withundooff
 
(
 
for i = 1 to WERNumSplines do
 
(
 
try
 
addAndWeld $Line01 WERSplinesArray[i+1] 0.01 -- # is Threshold
 
catch()
 
)
 
)
 
select $Line01
 
modPanel.addModToSelection (sweep ()) ui:on
 
$Line01.modifiers[#Sweep].CurrentBuiltInShape = 4
 
$Line01.modifiers[#Sweep].UnionIntersections = on
 


Thanks for the direction Bobo
__________________
WilliamRickert.com

Last edited by supremepizza : 05 May 2008 at 10:58 PM.
 
  05 May 2008
Originally Posted by Malkalypse: I have been very frustrated dealing with branching spline shapes. When they are rendered, the point of intersection is rendered as overlapping cylinders, rather than a single object branching apart. I need something that can take splines sharing a common "knot", and create an effect similar to that of "rendering/enable in viewport" but with the point of intersection as either a "V" or "T" for 3 spline segments coming together (preferably with the ability to select which one for each branch), or a "+" for 4 segments coming togehter.

Done

Originally Posted by Malkalypse: Other helpful features would be
1) the ability to control the number of sides, as with enabled rendered splines

Adjustable in the Sweep modifier Interpolation rollout at Steps:
Originally Posted by Malkalypse: 2) The ability to control the width of each spline separately

Not available.
You can however adjust the object(s) width in the Sweep modifier Parameters rollout at Radius:
You can also create other named sets to run the script on and run the sphere script I mention below.
Originally Posted by Malkalypse: 3) The ability to control the size of each of the intersections.

Could write a seperate script to draw spheres,boxes,whatever at the verts.
__________________
WilliamRickert.com
 
  05 May 2008
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:32 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.