This repository contains the demo application that was used for a presentation at the Alias Days 2023 in january.
The IDE of our choice is Visual Studio Code
Download this repository, either as zip or with
git clone
- Install Node LTS
- Switch into the directory
[repository]/app
- Run
npm install
from there (this will install all needed dependencies) - Run
npm run build
to build the streaming app application. This will create a directorybuild
where all the files are stored - In VRED WebPreferences change the following settings:
- Base:
- Enable Web Interface:
aktivieren
- Port:
8888
- Enable Web Interface:
- Custom Web Root Directory:
- Enable File Access:
aktivieren
- Directory: [
path-to-your-new-build-folder
]
- Enable File Access:
- Cross-Origin Resource Sharing:
- Enable Cross-Origin-Requests:
aktivieren
- Enable Cross-Origin-Requests:
- Base:
- When VRED is running the application will be available under
localhost:8888/app.html
It is also possible to start the project locally with
npm run start
. This way it is not necessary to include the app into VREDs WebPreferences.
- Copy the script located
[repository]/app/python/library/materialmapping.py
- In VRED Script Preferences add the line
from materialmapping import MaterialMapper
- See python script file for more information
- Copy the material mappings from
[repository]/app/python/material-mapping/*
toC:/alias-days-shader-pipeline/material_mappings/*
- Copy the CAD files from
[repository]/cad/*
toC:/alias-days-shader-pipeline/cad/*
You can also change the paths in
[repository]/app/src/components/material-mapping/MaterialMapper.js
and[repository]/app/src/components/import/Import.js
to point to the correct directories
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.