You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a web page that use wasm (User Side) to read Pixar Usd files. This files usually have internal references to other files (Relative or Absolute paths).
Right now I'm copying the file to the wasm sandbox, but this will not copy the internal references, and I can't change how Pixar Usd reads the internal references.
For that reason I would like to know if there is a way to ask for access to the local filesystem of the User, and be able to mount it into the internal filesystem of wasm. This way I could read the files without having to copy them.
These are the flags I use to compile the Usd Module: -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s ASSERTIONS=1 -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=2 -s MODULARIZE=1 -s EXPORT_NAME='getUsdModule' -s 'EXTRA_EXPORTED_RUNTIME_METHODS=[\"FS\"]' -s FORCE_FILESYSTEM=1 --pre-js ${CMAKE_SOURCE_DIR}/js/prejs.js")
If there is a way, could someone provide a snippet on how to do it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on a web page that use wasm (User Side) to read Pixar Usd files. This files usually have internal references to other files (Relative or Absolute paths).
Right now I'm copying the file to the wasm sandbox, but this will not copy the internal references, and I can't change how Pixar Usd reads the internal references.
For that reason I would like to know if there is a way to ask for access to the local filesystem of the User, and be able to mount it into the internal filesystem of wasm. This way I could read the files without having to copy them.
These are the flags I use to compile the Usd Module:
-s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s ASSERTIONS=1 -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=2 -s MODULARIZE=1 -s EXPORT_NAME='getUsdModule' -s 'EXTRA_EXPORTED_RUNTIME_METHODS=[\"FS\"]' -s FORCE_FILESYSTEM=1 --pre-js ${CMAKE_SOURCE_DIR}/js/prejs.js")
If there is a way, could someone provide a snippet on how to do it?
Thanks!
Ignacio Urruty
Beta Was this translation helpful? Give feedback.
All reactions