• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

SCASM Object Scale Issue

Messages
180
Country
us-california
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).

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). :banghead:

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?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,944
Country
netherlands
Hi David,

Twice the size sounds normal. When placing GMax made objects with SCASM API macros we always had to use scale 0.5 to get them at the size designed in GMax. So you might want to try a value of 0.5 in the ReScale command.
 
Messages
180
Country
us-california
Hi David,

Twice the size sounds normal. When placing GMax made objects with SCASM API macros we always had to use scale 0.5 to get them at the size designed in GMax. So you might want to try a value of 0.5 in the ReScale command.

I feel stupid for not thinking of that...that fixes the size issue, but the object is still floating.

Is this a known SCASM issue where I should always export the object with the corrected height and rotation?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,944
Country
netherlands
Hi,

I am not aware of issues with the height. You might want to check what coordinates there are in your converted SCA file of the object.
 
Messages
180
Country
us-california
Hi,

I am not aware of issues with the height. You might want to check what coordinates there are in your converted SCA file of the object.

Checked the vertex list and several are listed at Z = 0...which is how I have it set up in 3ds.

My SetPos() command has 0 for the elevation as well.

Very strange. :confused:
 
Last edited:
Top