Hey guys I need some help, I just made a project where a Three.Shape
is made using multiple different points. I wanted to make a roof with a extrusion somewhat like this:
A better version of this, thanks in advance for everyone
Hey guys I need some help, I just made a project where a Three.Shape
is made using multiple different points. I wanted to make a roof with a extrusion somewhat like this:
A better version of this, thanks in advance for everyone
Like in tiny glade?
Oh no right now, more like the box extrusion icon in blender.
like this but just from the top, I have somewhat done that but its not perfect, my main goal as to make a roof that just like done in tiny glade elevates but depending on the user input which is way to complex.After having a talk with manthrax I abondened that idea.
just simple extrusion type like that will do it
With the goal of a flat roof? If so I think you can “walk” around the points of the shape, finding the abs() difference in direction between previous, current and next points, stepping inwards and upwards with the normalized abs() cross product of prev, next at current… I do have a demo I can dig up but may take a while
Oh if you can dig the example that will help a lot, thanks for the help man.
I did tried everything from my end, but just dont want others to do the coding for me.
To illustrate in a visualization, you’d find the normalized directions from A to B and from B to C, where B is your current point, and then find the inward normalized abs
product of these two directional vectors (45 degrees) then multiply them on the y axis as needed for each “triad” of points around the shape…
it may take a while to find the relative demo my side but hopefully the above serves as a route to concept for you for now…
You can use THREE.ExtrudeGeometry
. When I try it, it works fine. Here is a house (based on THREE.Shape
) and its roof:
Oh, well.
Hi @AshhadDevLab …
Please see the link:
https://jrlazz.eu5.org/anim/roof.html
I tried two forms of using ExtrudeGeometry.
Hi @AshhadDevLab and @manthrax …
Thank You for the likes…
And because I’m afraid of high places, I put up a guardrail in case they want me to walk on the roof…
… please se another link:
Thanks everyone for the help especially @jrlazz and @PavelBoytchev. I was able to utilize extrude geometry to make it work, did some tweaking at the results are amazing.