First I thought, okay, the model was not right compressed in the 3D-application, but in all applications I tested the model, it was fine.
but I used the not compressed model and it worked, but when I scale the model, the instance, no matter if scaling or permanent scale ...
the object is distroyed.
This problem is at a big portion of the FPSC Classic models. Don't know, what it causes.
// Project: object_scale_test_zombie
// Created: 2018-12-21
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "object_scale_test_zombie" )
SetWindowSize( 1280, 720, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1280, 720 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
objwc = LoadObjectWithChildren("charzomb.x")
Instwc = InstanceObject(objwc)
objnc = LoadObject("charzomb.x")
Instnc = InstanceObject(objnc)
objwc2 = LoadObjectWithChildren("charzomb_fragmo.x")
Instwc2 = InstanceObject(objwc2)
objnc2 = LoadObject("charzomb_fragmo.x")
Instnc2 = InstanceObject(objnc2)
SetCameraPosition(1,0,80,-200)
SetObjectPosition(Objwc ,-60,0,0)
SetObjectPosition(Instwc, 0,0,0)
SetObjectPosition(Objnc , 60,0,0)
SetObjectPosition(Instnc,120,0,0)
PlayObjectAnimation(Objwc,"",0,2000,1,0.1)
SetObjectAnimationSpeed(Objwc,12) // --> 24, but for slowmo
SetObjectScale(objwc,0.5,0.5,0.5)
SetObjectScale(Instwc,0.5,0.5,0.5)
SetObjectScale(objnc,0.5,0.5,0.5)
SetObjectScale(Instnc,0.5,0.5,0.5)
//-----------------
PlayObjectAnimation(Objwc2,"",0,2000,1,0.1)
SetObjectAnimationSpeed(Objwc2,12) // --> 24, but for slowmo
SetObjectPosition(Objwc2 ,-60,-100,0)
SetObjectPosition(Instwc2, 0,-100,0)
SetObjectPosition(Objnc2 , 60,-100,0)
SetObjectPosition(Instnc2,120,-100,0)
SetObjectScale(objwc2,0.5,0.5,0.5)
SetObjectScale(Instwc2,0.5,0.5,0.5)
SetObjectScale(objnc2,0.5,0.5,0.5)
SetObjectScale(Instnc2,0.5,0.5,0.5)
do
Print( Str(ScreenFPS(),2)+"Object With-Children, Instance ... Object-No-Children, Instance - All SAME size!")
Sync()
loop