preview of past text and commands already sent #83

Closed
opened 1 year ago by utopiah · 10 comments
utopiah commented 1 year ago
Owner

cf https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/assymetric-collaboration/submit.html to faciliate all the pair programming, or support at least, aspect

cf https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/assymetric-collaboration/submit.html to faciliate all the pair programming, or support at least, aspect
Poster
Owner

could also prevent from sending a line already present

could also prevent from sending a line already present
Poster
Owner

add the matching link to open on the device, possibly via https://hmd.link/?URL or https://www.oculus.com/open_url/?url=URL

add the matching link to open on the device, possibly via https://hmd.link/?URL or https://www.oculus.com/open_url/?url=URL
Poster
Owner

consider also mixing text with code, e.g jxr ... // does this

consider also mixing text with code, e.g `jxr ... // does this`
Poster
Owner

fixed with c9f3e9c3ec

fixed with https://git.benetou.fr/utopiah/text-code-xr-engine/commit/c9f3e9c3ec49a1cb54e5960c4c3c7b64f1957f6e
utopiah closed this issue 1 year ago
Poster
Owner

Could also add

Could also add * syntax highlighting, cf https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/syntax-highlighting * code generation https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/code-generation * block based programming, cf `addBlockCodeExample()` in https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/primitives_as_set * screenshot https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/screenshot to provide a window of feedback but should provide server-side saving capabilities first
Poster
Owner

Direct blob content as wiki attachment, here PmWiki, could be done via


document.querySelector('a-scene').components.screenshot.getCanvas('perspective').toBlob( blob => { 
  let img = new File([blob], "foo.jpg", { type: "image/jpeg"});

  form = new FormData();
  form.append('authpw', 'mypasswordexample');
  form.append('n', 'PIMVRdata.TestFormUpoad');
  form.append('action', 'postupload');
  form.append('uploadfile', img);

  fetch('https://fabien.benetou.fr/PIMVRdata/TestFormUpoad', {
    method: 'POST',
    body: form
  });
}, "image/jpeg", 0.8);

and the result checked at https://fabien.benetou.fr/uploads/PIMVRdata/foo.jpg

Note also that png generated are not light and thus, in addition to cause framedrop on the HMD will populate the server disk fast. Lossy JPGs with 0.8 quality are about 1Mb.

Wiki settings have been updated accordingly, following https://www.pmwiki.org/wiki/PmWiki/UploadsAdmin#restrictinguploadedfiles , with a max filesize for JPGs and PNGs of 5Mb.

Direct blob content as wiki attachment, here PmWiki, could be done via ```javascript document.querySelector('a-scene').components.screenshot.getCanvas('perspective').toBlob( blob => { let img = new File([blob], "foo.jpg", { type: "image/jpeg"}); form = new FormData(); form.append('authpw', 'mypasswordexample'); form.append('n', 'PIMVRdata.TestFormUpoad'); form.append('action', 'postupload'); form.append('uploadfile', img); fetch('https://fabien.benetou.fr/PIMVRdata/TestFormUpoad', { method: 'POST', body: form }); }, "image/jpeg", 0.8); ``` and the result checked at https://fabien.benetou.fr/uploads/PIMVRdata/foo.jpg Note also that png generated are not light and thus, in addition to cause framedrop on the HMD will populate the server disk fast. Lossy JPGs with 0.8 quality are about 1Mb. Wiki settings have been updated accordingly, following https://www.pmwiki.org/wiki/PmWiki/UploadsAdmin#restrictinguploadedfiles , with a max filesize for JPGs and PNGs of 5Mb.
Poster
Owner

Following perspective persistance, possibly relying on roomname and a timestamp, a gradual tutorial for https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/assymetric-collaboration could be made, demonstrating each action that could be taken.

Might also need a timer, e.g 5s delay with visual or audio feedback. Could become its own issue.

Following perspective persistance, possibly relying on roomname and a timestamp, a gradual tutorial for https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/assymetric-collaboration could be made, demonstrating each action that could be taken. Might also need a timer, e.g 5s delay with visual or audio feedback. Could become its own issue.
Poster
Owner

Screenshot sharing as sendPerspectiveToServer() pushed as d5bc01251e cf https://twitter.com/utopiah/status/1639367930344292355

Screenshot sharing as `sendPerspectiveToServer()` pushed as https://git.benetou.fr/utopiah/text-code-xr-engine/commit/d5bc01251ecb2380c9be0b456d2a7b68fd16e4f2 cf https://twitter.com/utopiah/status/1639367930344292355
Poster
Owner
> Could also add > > * syntax highlighting, cf https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/syntax-highlighting > * code generation https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/code-generation > * block based programming, cf `addBlockCodeExample()` in https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/primitives_as_set Still.
Poster
Owner

a gradual tutorial

associating key conceps thanks to existing functions :

  • debugging : <a-console> with its hacker style
  • locomotion : emptyPinchToMove()
  • collaboration : sendPerspectiveToServer()
  • getting a perspective : addScreenshot()
  • composability : addBlockCodeExample()
  • generation : generateRandomPlace()
  • it's all math : plot()
  • what is a 3D model : switchToWireframe() // showing difference with wrist shortcut
  • reset : location.reload()
  • text versus code : interpretJXR("jxr lg Fox.glb 0.001") // see also ../content/models/ for more models
  • text/code : addNewNote( "hello world" )
  • changing scale : rescalePlace()
  • parameters : rescalePlace(.1) // what's a parameter
  • combination : displayAllTiles()
  • variables : selected_asset_kit = 0; displayAllTiles(); // 1 being default
  • modifying assets : jxr qs a-sphere sa color green // require to add a sphere first

See also https://fabien.benetou.fr/pub/home/future_of_text_demo/content/features/ for visual preview of some features.

> a gradual tutorial associating key conceps thanks to existing functions : * debugging : `<a-console>` with its hacker style * locomotion : `emptyPinchToMove()` * collaboration : `sendPerspectiveToServer()` * getting a perspective : `addScreenshot()` * composability : `addBlockCodeExample()` * generation : `generateRandomPlace()` * it's all math : `plot()` * what is a 3D model : `switchToWireframe() // showing difference with wrist shortcut` * reset : `location.reload()` * text versus code : `interpretJXR("jxr lg Fox.glb 0.001")` // see also `../content/models/` for more models * text/code : `addNewNote( "hello world" )` * changing scale : `rescalePlace()` * parameters : `rescalePlace(.1) // what's a parameter` * combination : `displayAllTiles()` * variables : `selected_asset_kit = 0; displayAllTiles(); // 1 being default` * modifying assets : `jxr qs a-sphere sa color green // require to add a sphere first` See also https://fabien.benetou.fr/pub/home/future_of_text_demo/content/features/ for visual preview of some features.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: utopiah/text-code-xr-engine#83
Loading…
There is no content yet.