[x3d-public] Extrusions, take 3, Replacement with Cylinders, Cobweb needs to be updated in X3D Edit.

Leonard Daly Leonard.Daly at realism.com
Thu Feb 18 19:58:37 PST 2016


On 2/14/2016 9:03 PM, John Carlson wrote:
> 1.  I am beginning to see the wisdom of this approach.  What happens 
> when one’s points get large with scripts? I took a slightly different 
> approach and got good results.  Note that I had to double instance the 
> points to get the spheres to appear at all. 
> http://coderextreme.net/arc.x3d
>
>
> I am not sure why?  Anyone?
>
>
> 2.  Don, Cobweb needs to be updated in X3D-Edit.
>
>
> 3.  Leonard, can you render this in X3DOM?  I’m curious to know how to 
> do this with Inline’s and not Proto’s.

Simple answer is No. The PROTOs use Scripts. There are no scripts in X3DOM.

That does not mean it cannot be done. You have 4 sphere's randomly 
moving in a region. You have connected three of them to a "central" hub. 
The most difficult part is maintaining the connection between the 
spheres. Using a transform on a cylinder is really messy because you 
need to scale, rotate, and translation the center of each cylinder for 
each animation frame.

A better way to go might be to modify the existing IndexedLineSet node 
to produce a line with a width. Then you are just transforming the end 
points of a 2-point line. Note that if you arrange the Transforms 
properly the "hub" sphere is always at the origin of the hierarchy that 
contains the 4 spheres and cylinders.


<all of the old messages clipped out...>

-- 
*Leonard Daly*
3D Systems & Cloud Consultant
X3D Co-Chair on Sabbatical
LA ACM SIGGRAPH Chair
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160218/e1b71ecb/attachment.html>


More information about the x3d-public mailing list