Inochi2D / inochi-session

Application that allows streaming with Inochi2D puppets
https://inochi2d.com
BSD 2-Clause "Simplified" License
293 stars 21 forks source link

[BUG] 200% pixel models are very small and far away #38

Open Grat10borg opened 1 year ago

Grat10borg commented 1 year ago

Validations

Describe the bug

importing a pixelmodel only resized by 200% makes it extremely small in session even though it looks fine on creator

image

Reproduction

  1. start inochi session
  2. drag inp file of a small 200% resolution model

System Architecture

None

Operating System

Windows

Version

8.0

Logs

No response

Additional Context

No response

prettykool commented 1 year ago

I haven't tested this (all attempts to compile kept failing), but this may/may not help. This doubles the max value of the scaling - Probably overkill for most people, if I'm being honest.

diff --git a/source/session/scene/package.d b/source/session/scene/package.d
index 37ef86f..71958e4 100644
--- a/source/session/scene/package.d
+++ b/source/session/scene/package.d 
@@ -426,7 +426,7 @@ void insInteractWithScene() {
         targetScale = clamp(
             targetScale+targetDelta, 
             0.25,
-            5
+            10
         );

         if (targetScale != prevScale) {
@@ -492,7 +492,7 @@ void insInteractWithScene() {
             targetScale = clamp(
                 targetScale+targetDelta, 
                 0.25,
-                5
+                10
             );
         }