1
0
forked from cgvr/DeltaVR

unique seed for model generation

This commit is contained in:
2026-01-16 18:35:00 +02:00
parent 16a621c2b9
commit afb8af4ee2
2 changed files with 2 additions and 4 deletions

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>
{