-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Pen tool #524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pen tool #524
Conversation
…up and reorganized code; light optimization pass
…erial for the drawing looks
# Conflicts: # src/hub.html # src/network-schemas.js
Added activatable component, which allows a button to cause secondary activations to occur while an object is grabbed. Also made the pen "sticky" so it stays attached to your hand when you grab it. It can then only be dropped by using the "primary" grab button (e.g. grip buttons). The triggers now are "secondary_action" buttons, which work like normal except in the case that you are holding a sticky object, in which case they will not cause the object to be dropped.
… odd segments. Added timed delete per line. Fixed networking bug where line data could be sent before remote clients were fully initialized. Adding drawing manager that prevents multiple pens from drawing on the same drawing at the same time.
…hen using standard shader
…; disable space-bubble as default
…en-hover icon; enable spawning pen from in-world-hud; re-enable personal space bubble as default
…e media loader objects loaded for the first time lose their physics shape
… other; various enhancements
# Conflicts: # package-lock.json # src/components/super-spawner.js # src/hub.js # src/react-components/2d-hud.js
|
…onnections when that is not always true (client B can't assume it can message client A even if it has received a message from client A already)
…ce, especially when first loading into a room that has existing drawings.
@@ -1,5 +1,6 @@ | |||
import "./components/gltf-model-plus"; | |||
|
|||
AFRAME.GLTFModelPlus.registerComponent("duck", "duck"); | |||
AFRAME.GLTFModelPlus.registerComponent("quack", "quack"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most important part of this PR
src/components/tools/pen.js
Outdated
"#FF6600", | ||
"#FFFFFF", | ||
"#AAAAAA", | ||
"#777777", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably due to the unlit shader but to actually get a gradient of greys I bet it has to be something like #000000
, #111111
, #222222
or something
also we need brown so i can draw a proper goomba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, we might want to include one or more flesh tones too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you can draw faces
truly amazing work! having it be a workable sculpting tool was a great surprise too. media tools + pen tool = something magical is happening |
… fix issue where media-loader wasn't setting the bounding box corrrectly in certain cases
Adds a pen interactable that allows for 3d spatial drawing.
Generates procedural geometry using (modified) @fernandojsg's
sharedbuffergeometry.js
andsharedbuffergeometrymanager.js
from A-Painter.Adds a concept of "toggleable" for interactables. Objects that have a "toggle" class defined will not be dropped from your hand/cursor after initial grab. Only subsequent releases using the "primary" button will cause the object to be dropped. E.g. if grip is considered primary and trigger is secondary, grip or trigger will pick up the object, but after initial release, only the grip can cause the object to be dropped. (
grabbable-toggle
was added which is 90% the same assuper-hands
grabbable
but has some additional logic to handle this concept.)Relies on a new component
activatable
insuper-hands
: c-frame/aframe-super-hands-component#148 which allows secondary activations on grabbed/hovered objects.TODO:
super-spawner
to have hard-coded duck src (maybe part of a different PR)