Giter Club home page Giter Club logo

Comments (6)

stephomi avatar stephomi commented on August 19, 2024

It's here : https://github.com/stephomi/sculptgl/blob/master/src/mesh/Selection.js

It only displays the circle while we are picking the mesh. And if we sculpt, I only show the small dot.

from sculptgl.

irisred avatar irisred commented on August 19, 2024

I saw that, what about the sketchfab? where is the circle of it defined? https://github.com/sketchfab/sculptgl

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

Ah... it was different back then.
It was in the shader :
https://github.com/sketchfab/sculptgl/blob/master/shaders/reflection.frag#L17-L20

from sculptgl.

irisred avatar irisred commented on August 19, 2024

is the js function called "picking", or just loadshaders function load the .frag file?
like here:https://github.com/sketchfab/sculptgl/blob/master/sculptgl.js#L186-L209
if I use another controller just like touch pen or Leap Motion, can the circle also be displayed?

from sculptgl.

stephomi avatar stephomi commented on August 19, 2024

It's the shader that draw the circle...
It uses the center of the circle here
And its radius here

The picking is the stuffs that check what is under your cursor by casting a ray.
It's done here in the mousemove event.

Keep in mind that the sculptfab version is almost 2 years old and that I don't maintain it.
You should probably use the latest verson :).

from sculptgl.

irisred avatar irisred commented on August 19, 2024

okay, thanks for your reply and patience, I will try the latest version,
anyway, thank you

from sculptgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.