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

In-world text editor #40

Open
deathcap opened this issue Feb 8, 2015 · 1 comment
Open

In-world text editor #40

deathcap opened this issue Feb 8, 2015 · 1 comment

Comments

@deathcap
Copy link
Member

deathcap commented Feb 8, 2015

A text editor that runs within a voxel.js world

This was sort of possible with voxel-webview, embedding an ordinary HTML textarea, but this is better — a text editor built to render to the WebGL canvas:

https://www.primroseeditor.com/

https://github.com/capnmidnight/Primrose

for several reasons (especially for voxel-vr):

Much more importantly, in the WegGL context, the HTML Element will not be a part the scene and will not work with any depth buffering. Your text will always be a 2D element masquerading in a 3D world, never overlapping properly with other objects in the scene. You will have to duplicate all of your world and camera transformations from the WebGL context to CSS3 3D transforms[4]. And any form of stereo rendering will require you to keep a secondary HTML element in sync with the edits made in the primary element.

potential use cases include #27 signs, books, and in-world software development (even better with voxel/voxel-plugins#1)

Also intriguing, as an oldschool Unix hacker I like this better:

https://github.com/coolwanglu/vim.js Vim.js : JavaScript port of Vim

renders to an HTML5 canvas (2d context) — can it be reworked to render to a WebGL texture for 3d?

@capnmidnight
Copy link

Hi there. If you need any help, let me know.

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

No branches or pull requests

2 participants