1
0
forked from cgvr/DeltaVR

2 Commits

Author SHA1 Message Date
afb8af4ee2 unique seed for model generation 2026-01-16 18:35:00 +02:00
16a621c2b9 include gltf shader in build + add TODO list 2026-01-16 18:26:37 +02:00
6 changed files with 29 additions and 8 deletions

View File

@@ -10,7 +10,6 @@
* mitte lihtsalt ontriggerenter ja -exit, sest kui mitu objekti lähevad samal ajal sisse
* mustad kiired on halvasti nähtavad pruuni materjali taustal
* kui üks config completed, siis mängijale aru saada: sound effect, "loading"
* mudeli genereerimine: randomly generated unique seed, mitte 42
* mikri vana tekst ei kao ära
* archery range:
* kui midagi laeb (wire aktiivne), siis particle'id voolavad mööda toru
@@ -21,8 +20,8 @@
* klaas on näha temast eespool
* pööramine kaamera poole - sujuvalt (slerp)
* küsida Danielilt asukoha kohta
* proovida läppari peal käima saada
### Notes
* TRELLIS: added functionality to specify texture baking optimisation total steps as an argument (`texture_opt_total_steps`), to replace the hardcoded 2500. But this is not tracked in Git (because modified this https://github.com/IgorAherne/trellis-stable-projectorz/releases/tag/latest)
* Custom Shader Variant Collection to include glTF-pbrMetallicRoughness shader in build

View File

@@ -2,7 +2,6 @@ using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
@@ -37,9 +36,10 @@ public class TrellisClient : MonoBehaviour
public async Task<byte[]> GenerateModel(
string imageBase64,
int seed = 42,
int pollIntervalMs = 1000)
{
int seed = UnityEngine.Random.Range(0, 999999);
// --- Set generation parameters (form-encoded, like Python requests.post(data=params)) ---
var form = new Dictionary<string, string>
{

View File

@@ -0,0 +1,14 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!200 &20000000
ShaderVariantCollection:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: glTFPbrMetallicRoughness
m_Shaders:
- first: {fileID: -6465566751694194690, guid: b9d29dfa1474148e792ac720cbd45122,
type: 3}
second:
variants: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b852f2aeb9fb71a4aaab9e2d500dc3dc
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 20000000
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.