Git Product home page Git Product logo

styly-spatial-layer-plugin's Introduction

STYLY Spatial Layer Plugin for Vision Pro

Kujira

What is this plugin?

Notes

  • Contents of STYLY for Vision Pro is not compatible with STYLY for other platforms. Its code base is different from STYLY VR or STYLY mobile.
  • STYLY for Vision Pro doesn't have 3D contents creation tools for now.
  • Please give us your feedback on Github Issues.
  • Your contents will be published to the PUBLIC. Don't upload your contents which you want make private.
  • Contents gallery on STYLY app is white list based now. STYLY team may pick up your contents display in the app.

Requirements

  • Unity
    • Unity 2022.3.27 or later (Use 2022.3.XX)
    • Modules:
      • visionOS Build Support
    • Render pipelines: URP
    • Color Space: Linear
  • Xcode (if you want to test with visionOS simulator)
    • Xcode 15.2 or later
    • Apple Silicon Mac (M1/M2/M3)

Links

Supported features for STYLY visionOS Plugin

  • Mixed Reality mode: Bounded Volumes, Unbounded Volumes
  • Standard URP shaders: Lit, Simple Lit, Unlit and some shaders in supported Unity packages
  • Visual Scripting
  • Timeline, animator, animation, audioclip and other basic features. See Supported Unity Features and Components page for the detail.

NOT Supported features for STYLY visionOS Plugin

  • Fully Immersive VR, Windowed Apps
  • Your C# scripts
  • Custom shaders
  • Visual Effect Graph
  • Postprocessing Stack

Supported Visual Scripting Unity packages

How to setup

Unity
  • Install Unity via Unity Hub

    • Install Unity 2022.3.27 or later (Use 2022.3.XX) with modules:
      • visionOS Build Support
Setup Unity project
    # Install openupm-cli
    npm install -g openupm-cli

    # Go to your unity project directory
    cd YOUR_UNITY_PROJECT_DIR

    # Install STYLY plugin for Unity
    openupm add -f com.styly.styly-spatial-layer-plugin
    # Install supported packages for STYLY
    openupm add -f com.styly.package-collection-spatial-layer
Xcode
  • Install Xcode 15.2 or later with visionOS simulator. Xcodes is the easiest way to install and manage multiple versions of Xcode.
  • Open Simulator from Xcode menu. ClickXcode -Open Developer Tool -Simulator
  • Open Vision Pro simulator from menu. ClickFile -Open Simulator -visionOS 1.0 -Apple Vision Pro
Install STYLY for Vision Pro into the visionOS simulator
  • Install STYLY for visionOS into the simulator

How to build and upload contents

Unity prefab can be built and uploaded to STYLY. Right click a prefab in a project window and select STYLY - Build Content FIle

Right Click

Built file will be created as yyyyMMddHHmmss.styly in _Output directory in your project. Output file

STYLY for visionOS webpage will be opened in a browser. Login with your STYLY account.

Upload your built contents (.styly file) with its title, description and display type.

  • Bounded: Your contents will be displayed in 1m x 1m x 1m size. Contents can be displayed with other apps.
  • Unbounded: Your contents will be displayed exclusively in a space.
UploadContents

How to play the contents on STYLY

  • Open content page on visionOS simulator. You can copy and paste your URL of the content from your Mac to the simulator.
  • Click Play on device on the page.
  • Your content will be displayed.

styly-spatial-layer-plugin's People

Contributors

from2001 avatar afjk avatar

Stargazers

JT5D avatar  avatar y_shimo avatar norihiro avatar  avatar Yuto Shinohara avatar  avatar  avatar  avatar

Watchers

Hirotoshi Yoshitaka avatar  avatar  avatar Ryo Kuroyanagi avatar  avatar

Forkers

scs-yasu

styly-spatial-layer-plugin's Issues

Package and Configuration management system

I'll make a Configuration management system which handles

  • Constant string such as Package name of this plugin
  • Scripting Define Symbols to add when this package is installed

Hand gesture sample

Node using Hand pose asset file or shape asset file and recognize hand gestures.

Implement on another repository.

STYLY-Vision-OS-App Crashes on Launch Due to DYLD_ROOT_PATH Not Set

I am encountering an issue when trying to launch the STYLY-Vision-OS-App after downloading it. The app crashes immediately with the following error:

Termination Reason: DYLD 9 
DYLD_ROOT_PATH not set for simulator program

Crash Report:

Incident Identifier: 92FD2D73-1EE2-49E7-9929-D48B33419591
CrashReporter Key:   768FC28F-811B-033A-E55A-29FAD6C46EE9
Hardware Model:      Mac14,9
Process:             STYLY-Vision-OS-App [73570]
Path:                /Volumes/VOLUME/*/STYLY-Vision-OS-App.app/STYLY-Vision-OS-App
Identifier:          com.styly.STYLY-Vision-OS-App
Version:             1.0.12 (0)
Code Type:           ARM-64 (Native)
Role:                Default
Parent Process:      launchd [1]
Coalition:           com.styly.STYLY-Vision-OS-App [78480]

Date/Time:           2024-05-17 22:44:56.6344 +0900
Launch Time:         2024-05-17 22:44:56.5693 +0900
OS Version:          macOS 14.4.1 (23E224)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 9 
DYLD_ROOT_PATH not set for simulator program

Triggered by Thread:  0

Thread 0 Crashed:
0   dyld                          	       0x1008e5a50 __abort_with_payload + 8
1   dyld                          	       0x1008f0628 abort_with_payload_wrapper_internal + 104
2   dyld                          	       0x1008f065c abort_with_payload + 16
3   dyld                          	       0x1008826b0 dyld4::halt(char const*, dyld4::StructuredError const*) + 304
4   dyld                          	       0x10087f31c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4084
5   dyld                          	       0x10087dedc start + 1844

Steps to Reproduce:

Download the STYLY-Vision-OS-App.
Attempt to open the app from the Downloads folder.
System Information:

Model: MacBook Pro (Mac14,9)
Processor: Apple M2 Pro
macOS Version: 14.4.1 (23E224)
App Version: 1.0.12 (0)
Additional Notes:

It appears the app is failing to launch because the DYLD_ROOT_PATH environment variable is not set, which is required for the simulator program. Any guidance on how to resolve this issue would be appreciated.

[Plugin] Stop creating .styly in case of error

Pre-check

  • OS ( Mac only )
  • Unity Version (2023.3.x)
  • Unity Module installed (Vision OS and iOS)

Execution Error

  • Build AssetBundle Failed.

Ideal implementation

  • show error
  • do not create .styly fie

Plugin: Show build error message

Slack thread
https://psychicvrlab.slack.com/archives/C06DEGRAVNF/p1709996972261519

こちらの.stylyファイルをアップロードすると500エラーが出るようです。バリデーションエラーだと思いますが、一応共有。エラーメッセージ表示の対応が必要ですね。

こちらアップロードすると同事象発生します
https://drive.google.com/file/d/1HHAnltuRS2KDKk3EuBy_L7Fw0j5MB5_4/view?usp=sharing
こちらが使っていたUnityEditor拡張スクリプトです
https://drive.google.com/file/d/1E6c7hw3aq9G0K8p4XadttlLnj1mM2Vo2/view?usp=sharing
一応アップロードした元のPrefabも
https://drive.google.com/file/d/13EgzZ345CVzhfssVhPeun_JATILFSD4q/view?usp=sharing

Update README

I'll add the following to the README.md

Installation with

  • OpenUPM
  • GUI using git URL

Change Repository and Package name

We'll change the names

https://github.com/styly-dev/STYLY-visionOS-Plugin
=>
https://github.com/styly-dev/STYLY-Spatial-Layer-Plugin

com.styly.styly-vision-os-plugin
=>
com.styly.styly-spatial-layer-plugin

Templete project management

We better provide the template project including the STYLY-visionOS-Plugin and the supported plugins.
The benefit of the template is that creator doesn't need to use OpenUPM to install those plugins.

In order to manage the template, using this repository as the template would be a good option.

I'll add a script to

  • Detect the downloaded project is from a zip at release page or from git clone.
  • If the project is from the zip, delete the files in the packages directory and add package name to the manifest.json
  • Check .git directory existence to determine the files are downloaded via the zip or the git clone method.
  • The script should be executed only at the first time of the project load.

Preload Audio Data needs to be checked on AudioClip

Preload Audio Data needs to be checked on AudioClip.

Unity: 2023.3.26f1
STYLY Vision OS Plugin: 0.1.7
PolySpatial: 1.1.6

We need to consider implementing preprocessing code to check Preload Audio Data on each AudioClip automatically.

Screenshot 2024-04-28 at 17 41 53

GitHub Action to add supported package list to README

Instead of managing them manually, it's better to implement a GitHub action to show supported package list on README.

  • Read manifest.json to get a version number of com.styly.package-collection-spatial-layer
  • Read list of package.json of com.styly.package-collection-spatial-layer
  • Add the list to README
  • Also add PolySpatial version

Dependency package list of the package can be retrieved from
https://package.openupm.com/com.styly.package-collection-spatial-layer

Videoplayer support for visionOS

I will implement a Videoplayer helper script to

  • make Videoplayer component available on visionOS.
  • check Videoplayer component uses RenderTexture on visionOS. Alert if not using RenderTexture.
  • call Unity.PolySpatial.PolySpatialObjectUtils.MarkDirty() for the RenderTexture if PolySpatial is installed.
  • cache a video file if the source is URL and WebRequest_VisualScriptingNodes package is installed.
  • Display the description of the script on the inspector, such as the feature of the visionOS support, caching feature etc.
  • ~~Display fix button on the inspector to solve the requirement issues. ~~
  • Add RequireComponent to the script

The VideoPlayerHelper script is intended to be attached to the same Gameobject which has a VideoPlayer component.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.