Skip to content
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

A way to "talk" to 3D objects #137

Open
bromagosa opened this issue Apr 30, 2015 · 3 comments
Open

A way to "talk" to 3D objects #137

bromagosa opened this issue Apr 30, 2015 · 3 comments

Comments

@bromagosa
Copy link
Collaborator

It may not meet Beetleblock's original purpose, but it would be great for animations and other applications.

Imagine being able to do something like this (we should really think about a proper syntax here):

image

Anyway, this is something to discuss, the syntax is not trivial, and I'm not sure you guys want to have something like this in the system either.

@ericrosenbaum
Copy link
Owner

wow! hmmmmm. I guess the [object {sphere}] construction both runs the sphere block (putting a sphere mesh into the world) and returns a kind of "pointer" to that particular mesh. maybe it should be called "mesh object," even though that's a bit obscure.

I guess we would need a beetleblocks class that wraps the three.js internal mesh class, so we could both set and get the mesh's position, rotation and color.

One weird thing is- what would a mesh object look like in a monitor? maybe it can just have a string representation that shows the properties.

I suppose it would be possible to access the list of vertices of the mesh too? maybe even modify them??

@jmoenig
Copy link
Collaborator

jmoenig commented May 1, 2015

Okay, this really calls for an object model that's somewhat similar to what sprites are to Scratch, except that Beetleblocks creates the programmatically. Thinking about it some more this could totally drop out of my current work on the new OOP system for Snap, where we'll get first-class sprites and slot-wise inheritance (prototypes). This is exciting to think about!

@gitduks
Copy link
Collaborator

gitduks commented May 1, 2015

wow, very interesting - I may not exactly understand the object in this case. How would we have access to the mesh object? Is the pointer something that a user could see, rename or put into a list?

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

No branches or pull requests

4 participants