jagenjo / webglstudio.js

A full open source 3D graphics editor in the browser, with scene editor, coding pad, graph editor, virtual file system, and many features more.
MIT License
5.22k stars 606 forks source link

How to add additional interaction with 3d object #27

Open RYG81 opened 7 years ago

RYG81 commented 7 years ago

Hi, May be I am stupid to ask this without actually trying your library, but this is something I need to know before I jump in and explore it. Can we add interaction with 3D objects? for example moving object with mouse or tap, drag-drop, snapping etc? Please if not add these feature to this fantastic library to make it more fantastic. Rahul

RYG81 commented 7 years ago

Forget one more thing, :-). How would you publish something as webGL or HTML?

jagenjo commented 7 years ago

Hi:

Well, you could do all those things, but you would have to implement them by yourself. Think of WebGLStudio as a frontend for a 3D engine. You can code any behaviour you want.

However, if you really need those features, I have code them for the editor itself (not for the core engine), so I could create a component that allows to manipulate objects.

To publish things, once finished you can get the URL of your project (to play it) or you can export it as a ZIP that contains all the project data and the player itself (HTML and JS).

Just let me know if you have any more questions.