Skip to content

Commit

Permalink
Merge pull request #49 from from2001/develop
Browse files Browse the repository at this point in the history
0.1.0
  • Loading branch information
from2001 authored Apr 27, 2024
2 parents 961544d + ed966d9 commit 150a5b2
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 143 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,3 @@ Notice: Check "Coroutine" in the "On Start Event" triger node.
- [OpenUPM](https://openupm.com/packages/com.from2001.gltfast-visualscripting-nodes/)

## Others

### Vision OS Support

Materials are generated with UnityGLTF routine with `UnityGLTF/PBRGraph` shader on ViisonOS until glTFast shaders support Vision OS.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class AddDefineSymbols
{
// Scripting Define Symbol list to add
static readonly string[] symbolsToAdd = {
"UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON", // Enable UnityGLTF import
"GLTFAST_FORCE_DEFAULT_IMPORTER_OFF", // Disable GLTFast import
"UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER", // Disable importer in UniVRM
"UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER", // Disable importer in UniVRM
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ private async UniTask<GameObject> LoadGltfWithURL(string URL, GameObject target
if (httpResponse.IsSuccessful)
{
GlbBytes = httpResponse.Bytes;
GLTFast.Materials.IMaterialGenerator materialGenerator = Utils.IsVisionOS() ? new PBRGraphMaterialGenerator(new MemoryStream(GlbBytes)) : null;
var gltfImport = new GltfImport(null, null, materialGenerator, null);
var gltfImport = new GltfImport(null, null, null, null);
var instantiator = new GameObjectInstantiator(gltfImport, gltfInstance.transform);

bool success_load = await gltfImport.LoadGltfBinary(
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{
"name": "com.from2001.gltfast-visualscripting-nodes",
"version": "0.0.21",
"version": "0.1.0",
"displayName": "glTFast Visual Scripting Nodes",
"description": "Unity Visual Scripting node library for glTF",
"unity": "2021.3",
"documentationUrl": "https://github.com/from2001/glTFast_VisualScriptingNodes",
"changelogUrl": "",
"licensesUrl": "https://github.com/from2001/glTFast_VisualScriptingNodes/blob/main/LICENSE",
"dependencies": {
"com.unity.burst": "1.8.13",
"com.unity.visualscripting": "1.9.1",
"com.cysharp.unitask": "2.4.1",
"com.unity.cloud.gltfast": "6.0.1",
"com.unity.cloud.gltfast": "6.4.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.modules.imageconversion": "1.0.0",
"com.styly.webrequest-visualscripting-nodes": "0.0.7",
"org.khronos.unitygltf": "2.10.2-rc",
"com.unity.cloud.draco": "5.0.2",
"com.unity.cloud.ktx": "3.3.0",
"com.unity.meshopt.decompress": "0.1.0-preview.5",
"com.unity.cloud.draco": "5.1.3",
"com.unity.cloud.ktx": "3.4.0",
"com.unity.meshopt.decompress": "0.1.0-preview.6",
"com.unity.render-pipelines.universal": "10.10.1"
},
"keywords": [
Expand Down
6 changes: 0 additions & 6 deletions glTFast_VisualScriptingNodes/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
{
"dependencies": {
"com.styly.webrequest-visualscripting-nodes": "0.0.6",
"com.unity.cloud.draco": "5.0.2",
"com.unity.cloud.draco.webgl-2022": "1.0.0",
"com.unity.cloud.ktx": "3.3.0",
"com.unity.cloud.ktx.webgl-2022": "1.0.1",
"com.unity.collab-proxy": "2.2.0",
"com.unity.feature.development": "1.0.1",
"com.unity.meshopt.decompress": "0.1.0-preview.5",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.7.6",
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.9.1",
"org.khronos.unitygltf": "2.10.2-rc",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
60 changes: 16 additions & 44 deletions glTFast_VisualScriptingNodes/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@
"depth": 0,
"source": "embedded",
"dependencies": {
"com.unity.burst": "1.8.13",
"com.unity.visualscripting": "1.9.1",
"com.cysharp.unitask": "2.4.1",
"com.unity.cloud.gltfast": "6.0.1",
"com.unity.cloud.gltfast": "6.4.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.modules.imageconversion": "1.0.0",
"com.styly.webrequest-visualscripting-nodes": "0.0.7",
"org.khronos.unitygltf": "2.10.2-rc",
"com.unity.cloud.draco": "5.0.2",
"com.unity.cloud.ktx": "3.3.0",
"com.unity.meshopt.decompress": "0.1.0-preview.5",
"com.unity.cloud.draco": "5.1.3",
"com.unity.cloud.ktx": "3.4.0",
"com.unity.meshopt.decompress": "0.1.0-preview.6",
"com.unity.render-pipelines.universal": "10.10.1"
}
},
Expand All @@ -37,8 +35,8 @@
"url": "https://package.openupm.com"
},
"com.unity.burst": {
"version": "1.8.13",
"depth": 1,
"version": "1.8.12",
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1",
Expand All @@ -47,24 +45,17 @@
"url": "https://packages.unity.com"
},
"com.unity.cloud.draco": {
"version": "5.0.2",
"depth": 0,
"version": "5.1.3",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.8.11",
"com.unity.mathematics": "1.3.1"
},
"url": "https://packages.unity.com"
},
"com.unity.cloud.draco.webgl-2022": {
"version": "1.0.0",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.cloud.gltfast": {
"version": "6.0.1",
"version": "6.4.0",
"depth": 1,
"source": "registry",
"dependencies": {
Expand All @@ -76,21 +67,14 @@
"url": "https://packages.unity.com"
},
"com.unity.cloud.ktx": {
"version": "3.3.0",
"depth": 0,
"version": "3.4.0",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.cloud.ktx.webgl-2022": {
"version": "1.0.1",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.2.0",
"depth": 0,
Expand Down Expand Up @@ -153,14 +137,14 @@
},
"com.unity.mathematics": {
"version": "1.3.1",
"depth": 1,
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.meshopt.decompress": {
"version": "0.1.0-preview.5",
"depth": 0,
"version": "0.1.0-preview.6",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1",
Expand Down Expand Up @@ -215,7 +199,7 @@
},
"com.unity.searcher": {
"version": "4.9.2",
"depth": 2,
"depth": 3,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
Expand All @@ -229,7 +213,7 @@
},
"com.unity.shadergraph": {
"version": "14.0.10",
"depth": 1,
"depth": 2,
"source": "builtin",
"dependencies": {
"com.unity.render-pipelines.core": "14.0.10",
Expand Down Expand Up @@ -297,18 +281,6 @@
},
"url": "https://packages.unity.com"
},
"org.khronos.unitygltf": {
"version": "2.10.2-rc",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.nuget.newtonsoft-json": "2.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.shadergraph": "10.0.0",
"com.unity.mathematics": "1.0.0"
},
"url": "https://package.openupm.com"
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -883,13 +883,13 @@ PlayerSettings:
webGLMemoryGeometricGrowthCap: 96
webGLPowerPreference: 2
scriptingDefineSymbols:
Android: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
Android: UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
Server:
Standalone: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
Standalone: UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
VisionOS: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
WebGL: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
iPhone: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
tvOS: UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON;GLTFAST_FORCE_DEFAULT_IMPORTER_OFF;UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
WebGL: UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
iPhone: UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
tvOS: UNIGLTF_DISABLE_DEFAULT_GLTF_IMPORTER;UNIGLTF_DISABLE_DEFAULT_GLB_IMPORTER
additionalCompilerArguments:
Android: []
Server: []
Expand Down

0 comments on commit 150a5b2

Please sign in to comment.