Skip to content

Conversation

@JackDra
Copy link

@JackDra JackDra commented Dec 26, 2021

Re-added from #23, merging from branch of fork instead of main

Summary

Similar to the svelthree addition made vatro/svelthree#47, I have added the threejs Points. Its basically just copy and paste of Mesh, since they work very similarly.

Changes/Additions

  • Created src/lib/components/objects/Points.svelte component
  • Added Points to src/lib/index.js so its exportable
  • Created points example in src/routes/examples/_content/03-points/
  • Added static static/example-thumbnails/points.jpg image for points example thumbnail
  • Updated docs to include reference for Points

Notes

I had a local example I got working for svelthree which demonstrated mouse interactivity which would morph local points towards the cursor as it moved through the points.
Maybe after looking into #20, I can update the points demo to do this.

Mostly coppied from Mesh
Simple example with randomly generated points within
cube area.
@vercel
Copy link

vercel bot commented Dec 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/svelte/svelte-cubed/H41i8ywhKgmgq5XsXWqCoLp749Um
✅ Preview: https://svelte-cubed-git-fork-jackdra-feat-pointsmodel-svelte.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant