Elvas Tower: Who or what creates an "animation (0)"-line in the s-file code? - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Who or what creates an "animation (0)"-line in the s-file code? Rate Topic: -----

#1 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 14 November 2021 - 10:38 AM

Hello everybody,

in some shape codes (uncompressed s-files) I have seen at the end in the second to last line the entry "animation (0)". Does anyone have an idea which 3D modeling program could generate such line, although the shape basically does not contain an animation?

Maybe gmax or blender or 3Dcrafter etc ?

Greetings
Jonas


#2 User is offline   scottb613 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,973
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 14 November 2021 - 11:02 AM

 jonas, on 14 November 2021 - 10:38 AM, said:

Hello everybody,

in some shape codes (uncompressed s-files) I have seen at the end in the second to last line the entry "animation (0)". Does anyone have an idea which 3D modeling program could generate such line, although the shape basically does not contain an animation?

Maybe gmax or blender or 3Dcrafter etc ?

Greetings
Jonas



Hi Jonas,

I looked through a bunch of my work with 3DC - steam locomotives, tenders, freight cars, passenger cars, and static scenery objects. None have the term "animation (0) " anywhere in the shape file - - - steam locomotives are the only ones that use the term "animation" but that sets the speed based on the keyframes of the animation as the second line below illustrates. It's also located in the middle of the file.

	animations ( 1
		animation ( 16 60
			anim_nodes ( 54
				anim_node MAIN (
					controllers ( 0 )
				)
				anim_node REVERSER (
					controllers ( 0 )
				)
				anim_node WHEELS1 (
					controllers ( 2
						tcb_rot ( 17
							slerp_rot ( 0 0 0 0 1 )
							slerp_rot ( 1 -0.1950903 0 0 0.9807853 )
							slerp_rot ( 2 -0.3826834 0 0 0.9238796 )
							slerp_rot ( 3 -0.5555702 0 0 0.8314696 )
							slerp_rot ( 4 -0.7071068 0 0 0.7071068 )
							slerp_rot ( 5 -0.8314696 0 0 0.5555702 )
							slerp_rot ( 6 -0.9238795 0 0 0.3826834 )
							slerp_rot ( 7 -0.9807853 0 0 0.1950904 )
							slerp_rot ( 8 1 1.629207E-07 1.629207E-07 2.654315E-14 )
							slerp_rot ( 9 0.9807853 0 0 0.1950902 )
							slerp_rot ( 10 0.9238795 0 0 0.3826834 )
							slerp_rot ( 11 0.8314697 0 0 0.5555701 )
							slerp_rot ( 12 0.7071068 0 0 0.7071068 )
							slerp_rot ( 13 0.5555703 0 0 0.8314695 )
							slerp_rot ( 14 0.3826835 0 0 0.9238795 )
							slerp_rot ( 15 0.1950904 0 0 0.9807853 )
							slerp_rot ( 16 0 0 0 1 )
						)
						linear_pos ( 2
							linear_key ( 0 0.7149424 0.9785768 3.081344 )
							linear_key ( 1 0.7174993 0.9772016 3.0861 )
						)
					)


Regards,
Scott

#3 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,010
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 14 November 2021 - 11:39 AM

There is a program that adds such lines, but I don't remember which one

#4 User is offline   dajones 

  • Open Rails Developer
  • Group: Status: Contributing Member
  • Posts: 413
  • Joined: 27-February 08
  • Gender:Male
  • Location:Durango, CO
  • Country:

Posted 14 November 2021 - 12:30 PM

I have a shape file created with blender 2.79 that has that line, and I also have shapes created with blender 2.82 that do not.

Doug

#5 User is offline   pwillard 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 807
  • Joined: 03-March 08
  • Gender:Male
  • Location:Cumming, Ga
  • Simulator:OpenRails
  • Country:

Posted 15 November 2021 - 04:02 AM

 dajones, on 14 November 2021 - 12:30 PM, said:

I have a shape file created with blender 2.79 that has that line, and I also have shapes created with blender 2.82 that do not.

Doug


The MSTSexporter for Blender 2.8+ Release V4.3 checks to see if there is an `animations(0)` result and won't write it to the file. It will create/export animations entries only if the animations count is greater than zero. If you have a version of the exporter of 4.0 or older, it still will write `animations(0)` as far as I can tell.


A comment from the file:
# ShapeViewer crashes if you have animations( 0 )



#6 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 15 November 2021 - 12:31 PM

Thanks for the replies guys so far!

So it seems to be the exporter 4.0 or older from Blender.

Greetings
Jonas

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users