I’ve been struggling with getting the clipping planes stencil example to work on the obj I load into it. What I’m looking for is a seamless, responsive user interactive, adjustable (through GUI sliders) SOLID cross section process for my objects.
While clipping plane stencil hasn’t panned out insofar, I’m tending more towards feeling the need for the opposite, a generative process like lathing a profile… Yet all examples seem to never have the ability to “CAP” the insides or ends.
Think complex object, being revealed a-la 3D pie chart, with the inside of the Pac-man mouth seamlessly SOLID, and that area preferably able to have a unique material.
I’ve accomplished this with blender shape keys fine, but there are MANY objects I need to do this with, and the process to hand animate them isn’t realistic now. Plus all my spline paths that would be the sources of the lathe operations are all ready to be accessed as svg paths/shapes etc.
I’ve seen some great things like Constructive Solid Geometry and Prisoners’ fish bowl w the cloud (and that other one with the wood block using materials.) And ThreeP.js
Just wondering if there’s a Three.js native method I haven’t come across yet, because I don’t want this project (which needs to keep evolving with its software) to be handicapped by orphaned add ons down the road, unable to update to new versions without them etc.
Hope I described what I mean well.
Frustrated as to how difficult such an important and useful method wouldn’t be available by now. (Nothing personal devs! )
In the sandbox you would only have to make the appropriate adjustment in the control using sliders. This is surely only useful, if otherwise only a few parameters for the geometry are left variable and the others are made constant.
The drawing of only a part of the total defined values:
" .setDrawRange ( start : Integer, count : Integer ) : null Set the .drawRange property. For non-indexed BufferGeometry, count is the number of vertices to render. For indexed BufferGeometry, count is the number of indices to render. https://threejs.org/docs/index.html#api/en/core/BufferGeometry
This allows you to define a BufferGeometry with maximum size, but only draws the existing part."
Is exactly what I’m talking about, if I could smoothly animate that “amount of competition until a full sphere” with a slider.
I use verge 3D and am learning three.js now.
Could you possibly give me a VERY BASIC, simple sample file with JUST the sphere there, and the “amount of competion” as a variable? (Wedges vs used wedges)…
…Then I can go from there and set up a slider and make it interactive. (The source is just too much for me to not make lots of mistakes right now)
I have threeG.js /threeP.js etc already.
I’d be greatly appreciated!!
Thanks hofk!
Ps I see you have an admirer in the other thread haha
Ok. I understand.
Great work on your add ons tough.
I’m sure in time I’ll learn a lot from picking through their code.
On a different note, a friend helped me with the Clipping Planes issue I was having.
It was the glb file, which I hadn’t done
getObjectByName() to the object in the scene to be clipped.
Now it’s working!
This may be obvious, but does anyone know if clipping planes can be user-“rotated” as opposed to translated on the different axes?
Thnx
EDIT: got them rotating with the GUI, got the object animated being sliced like a cake.
A top down pie-chart / Pac man style… Just how I needed.
Need to research radians and degrees now because the rotation either slows then quickly flips as it passes “0”… Or is very slow and limited
.