1
0
forked from cgvr/DeltaVR

shape checker nice materials, generated object grabbable

This commit is contained in:
2026-01-13 17:17:59 +02:00
parent 3097c404ba
commit 1cd97e4d0a
14 changed files with 773 additions and 29 deletions

View File

@@ -17,6 +17,7 @@ public class InvokeAiClient : MonoBehaviour
public string INVOKEAI_BASE_URL;
public string DEFAULT_QUEUE_ID = "default";
public string MODEL_KEY;
public string promptSuffix = ", single object, front and side fully visible, realistic style, plain neutral background, clear details, soft studio lighting, true-to-scale";
private HttpClient httpClient;
@@ -519,9 +520,10 @@ public class InvokeAiClient : MonoBehaviour
public async Task<byte[]> GenerateImage(string prompt)
{
string refinedPrompt = prompt + promptSuffix;
JObject args = new JObject()
{
["prompt"] = prompt,
["prompt"] = refinedPrompt,
["width"] = 512,
["height"] = 512,
["model_key"] = MODEL_KEY,