Making a Shape with Vertices #940
TimothyRoberts
started this conversation in
General
Replies: 1 comment 3 replies
-
it seems crazy to do this by code, instead of 1043 LOC this would be a 15 LOC app if the model was made in blender. but if you want to, the above translates into r3f either just like that 1:1 using primitive, or make it declarative. const vertices = useMemo(() => points.map(point => new THREE.Vector3(...point)), [points])
return (
<line>
<geometry vertices={vertices} />
<lineBasicMaterial color="red" />
</line>
) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I'm new to r3f/threejs. I was wondering how to make a more intricate shape than a box or sphere using vertices? For example there is a tail on a character made here in three js (https://codepen.io/Yakudoo/pen/yNjRRL), can anyone help me to reproduce something like this in r3f?
Beta Was this translation helpful? Give feedback.
All reactions