Feature request: putting/converting widgets to a 2d plane in a 3d world
-
It would be pretty cool if there were blocks to attach widgets onto a 2d plane, and all their properties would remain the same. This would be useful for making screen features interactive in 3d projects and experiences, like making a realistic and interactive computer screen:
3D already has interactivity blocks like when something is clicked then perform an action, but as an alternative option, putting widgets would also be awesome, especially because widgets have the ability to do things like play YouTube videos, which the current block for playing videos from a URL on a 2d plane doesn’t allow.
-
Tyller_ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa last edited by
@jeffreyrb03-gmail well widgets are definitely html stuff cus they act different from sprites and other stuff, so it could be a bit difficult to draw and rotate it
-
@tyller_ said in Feature request: putting/converting widgets to a 2d plane in a 3d world:
so it could be a bit difficult to draw and rotate it
Not exactly, I don’t know what 3d engine/library that CC uses like three.js or babylonJS, but I do know that such libraries have a way or method to put HTML on a 2d plane, I mean I just showed examples of exactly that in the pictures above.
heres another example:
this was like the only image I could find on the internet that’s a good example of this scenario -
That’s an interesting idea. It should be possible technically, but not with our existing widget blocks. We will have to create a new set of blocks for attaching widgets to 3D planes.
-
@info-creaticode Ah, I understand, thank you for the explanation
-
@info-creaticode Could it be made instead that you can put HTML on a 2d plane? That is possible, doesn’t require widgets,and the only thing that could be exploited is the script tag, but you guys can easily just fix that by deleting the script tags so javascript doesnt run.
But I have an idea, what if it’s made so that you can use JavaScript in your blocks in your projects but certain features are blocked? Basically, blocks that already accept HTML code but don’t accept script tags (like rich textboxes and chat windows) will now allow scripts to run, however, stuff like
window.close
won’t run (because that closes the window) and localstorage, indexedDB, and cookie access (to prevent login sessions from being hacked, read, or tampered with), and loading scripts from other sites will be blocked too. -
Tyller_ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa last edited by
@jeffreyrb03-gmail I almost said “why local storage” but then I remembered I found that the refresh token is one of the first things in local storage
-
We did some further research. It appears currently we can only show an HTML page as a texture on a 3D plane, so you can not interact with it the same way as a normal HTML page. So this would be quite limited in use cases.
-
@info-creaticode Ohh, ok. Thank you for taking the time to research it.