- Messages
- 180
- Country
-
And my SCASM learning experience continues.
I joined forces with a friend of mine to program a utility to convert a drawn path into lat/lon values for use in SCASM dynamic scenery. All of the dynamic movement seems to be working fine...
The issue is now the object (the only one in the library right now).
The object was exported from 3ds Max 7 as a X file, compiled with the FS2002 gamepack, kept the _0 asm, compiled that with BGLC9, then used raw2sca to generate the test_dynbus2_0.sca file you see included.
The bus appears in FS9, but is ~1.5-2x larger than it should be, and is floating a few meters off the ground. It also is rotated 90 deg from the orientation it should be taking (that's fine, I can rotate it before exporting from 3ds Max)
I've done some searching around over the past few days, and I remember seeing something about applying some sort of transform to objects coming out of gmax/3ds max...only issue is I can't find it again (hate when that happens).
Per the SCASM documentation, scale should be set to 1024 (on a dynamic object), but that isn't creating any issues since a change to ".1" resulted in no change in object size.
Can someone point me in the right direction?
I joined forces with a friend of mine to program a utility to convert a drawn path into lat/lon values for use in SCASM dynamic scenery. All of the dynamic movement seems to be working fine...
The issue is now the object (the only one in the library right now).
Code:
;David B Library of Bus with BMI Logo
Set( FSVERS 800 )
Header( 1 N90.0 S90.0 E179.9999 W179.9999 )
LatRange( S90.0 N90.0 )
ObjID( 00A2CDA9 A9E100AA 596711D0 B1A18301 )
LibObj(
PWR 100
SIZE 0
SCALE 1024
TYPE 2
NAME "dbbox_dyn" )
ReScale( :L014 0 0 1.0000 )
:L014
RefPoint( nsi :L036 0 )
ReScale( :L036 0 0 1.0000 )
PBHCall( :L038 18 )
SetVar( 2C 5 )
:L036
Return
:L038
Include( test_dynbus2_0.sca )
EndObj
The object was exported from 3ds Max 7 as a X file, compiled with the FS2002 gamepack, kept the _0 asm, compiled that with BGLC9, then used raw2sca to generate the test_dynbus2_0.sca file you see included.
The bus appears in FS9, but is ~1.5-2x larger than it should be, and is floating a few meters off the ground. It also is rotated 90 deg from the orientation it should be taking (that's fine, I can rotate it before exporting from 3ds Max)
I've done some searching around over the past few days, and I remember seeing something about applying some sort of transform to objects coming out of gmax/3ds max...only issue is I can't find it again (hate when that happens).

Per the SCASM documentation, scale should be set to 1024 (on a dynamic object), but that isn't creating any issues since a change to ".1" resulted in no change in object size.
Can someone point me in the right direction?