Elvas Tower: 3D Cabs - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 80 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3D Cabs Rate Topic: -----

#41 User is offline   Fahrenheit 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 21-August 13
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 15 April 2014 - 02:28 AM

View PostRTP, on 14 April 2014 - 08:11 AM, said:

Like that:

CombinedControl (
Type ( CP_HANDLE COMBINED_CONTROL )
etc..

Cheers.

RTP.

Ah, move backward a bit the point of view.


When I name it like that, Gmax says some illegal symbols have been found and automatically names it COMBINEDCONTROL__TYPE_TYPE___CP_HANDLE_COMBINED_CONTROL__

#42 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 15 April 2014 - 03:18 AM

I think you need to name it as CP_HANDLE.
The COMBINED_CONTROL is the type of control in cvf file.

#43 User is offline   JTang 

  • Open Rails Developer
  • Group: Status: Active Member
  • Posts: 643
  • Joined: 18-November 10
  • Gender:Male
  • Country:

Posted 15 April 2014 - 05:37 AM

View PostFahrenheit, on 15 April 2014 - 02:28 AM, said:

When I name it like that, Gmax says some illegal symbols have been found and automatically names it COMBINEDCONTROL__TYPE_TYPE___CP_HANDLE_COMBINED_CONTROL__


You can rename them later by editing the .s file directly.

#44 User is offline   RTP 

  • Conductor
  • Group: Status: Active Member
  • Posts: 254
  • Joined: 14-June 09
  • Gender:Male
  • Location:Barcelona
  • Simulator:Open Rails
  • Country:

Posted 15 April 2014 - 08:16 AM

I am doing my tests with TSM, who accepts any name to animate, like SPEEDOMETER:0:0 or CP_HANDLE:0:0

A friend and colleague works with 3DS-GMAX and needs to name the objects like Velocimetro or PalancaFreno, and do some
post-processing with Notepad++

Mr. JTang:

Will be VERY helpful to us, the model developpers if you publish a list of the special names used into de cabs and the related variable.

P.e. SPEEDOMETER - speed - kmh

etc.

Cheers.

RTP.

#45 User is offline   JTang 

  • Open Rails Developer
  • Group: Status: Active Member
  • Posts: 643
  • Joined: 18-November 10
  • Gender:Male
  • Country:

Posted 15 April 2014 - 08:32 AM

View PostRTP, on 15 April 2014 - 08:16 AM, said:

Mr. JTang:

Will be VERY helpful to us, the model developpers if you publish a list of the special names used into de cabs and the related variable.

P.e. SPEEDOMETER - speed - kmh

etc.

Cheers.

RTP.


The keywords are the same as used in an MSTS .cvf file, as well as the data range.
For example, the following is the first BRAKE_PIPE defined in DF11GA.cvf, which is used by my pilot model:
		Dial (
			Type ( BRAKE_PIPE DIAL )
			Position ( 114 335 7 21 )
			Graphic ( "DF11G_black.ACE" )
			Style ( POINTER )
			ScaleRange ( 0 1000 )
			ScalePos ( 230 130 )
			Units ( KILOPASCALS )
			Pivot ( 14 )
			DirIncrease ( 0 )
		)


In the Cab.s file, the animation is defined as :
				anim_node BRAKE_PIPE:0:0 (
					controllers ( 1
						tcb_rot ( 3
							slerp_rot ( 0 -4.768488E-02 .1779626 -.9493904 .2543883 )
							slerp_rot ( 1 -.1842405 0 0 .9828812 )
							slerp_rot ( 2 -4.768504E-02 -.1779626 .9493904 .2543882 )
						)
					)
				)

In the cabs.s file, we have a part defined as BRAKE_PIPE:0:0, which corresponds to the first brake_pipe defined in .cvf, and this is the first part of that instrument. It will be used to show 0-1000 (as defined in the line of ScaleRange), by using animations (so the 0 key corresponds to 0, 2 key corresponds to 1000), and will be using the same unit. Key 1 was added so the animation will rotate to the correct direction (0-1-2). For example, if the value is 200, the rotation will be proportionally defined as 20% between key 0 and 2.

For complex instruments, we can use multiple parts and name them as BRAKE_PIPE:0:0, BRAKE_PIPE:0:1, BRAKE_PIPE:0:2, etc.

#46 User is offline   Fahrenheit 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 21-August 13
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 16 April 2014 - 11:35 AM

View PostJTang, on 15 April 2014 - 08:32 AM, said:

The keywords are the same as used in an MSTS .cvf file, as well as the data range.
For example, the following is the first BRAKE_PIPE defined in DF11GA.cvf, which is used by my pilot model:
		Dial (
			Type ( BRAKE_PIPE DIAL )
			Position ( 114 335 7 21 )
			Graphic ( "DF11G_black.ACE" )
			Style ( POINTER )
			ScaleRange ( 0 1000 )
			ScalePos ( 230 130 )
			Units ( KILOPASCALS )
			Pivot ( 14 )
			DirIncrease ( 0 )
		)


In the Cab.s file, the animation is defined as :
				anim_node BRAKE_PIPE:0:0 (
					controllers ( 1
						tcb_rot ( 3
							slerp_rot ( 0 -4.768488E-02 .1779626 -.9493904 .2543883 )
							slerp_rot ( 1 -.1842405 0 0 .9828812 )
							slerp_rot ( 2 -4.768504E-02 -.1779626 .9493904 .2543882 )
						)
					)
				)

In the cabs.s file, we have a part defined as BRAKE_PIPE:0:0, which corresponds to the first brake_pipe defined in .cvf, and this is the first part of that instrument. It will be used to show 0-1000 (as defined in the line of ScaleRange), by using animations (so the 0 key corresponds to 0, 2 key corresponds to 1000), and will be using the same unit. Key 1 was added so the animation will rotate to the correct direction (0-1-2). For example, if the value is 200, the rotation will be proportionally defined as 20% between key 0 and 2.

For complex instruments, we can use multiple parts and name them as BRAKE_PIPE:0:0, BRAKE_PIPE:0:1, BRAKE_PIPE:0:2, etc.


So the animation lenght in Gmax has to be 1000?

#47 User is offline   JTang 

  • Open Rails Developer
  • Group: Status: Active Member
  • Posts: 643
  • Joined: 18-November 10
  • Gender:Male
  • Country:

Posted 16 April 2014 - 02:02 PM

View PostFahrenheit, on 16 April 2014 - 11:35 AM, said:

So the animation lenght in Gmax has to be 1000?


No. For example, I only used 0, 1, 2 in the animation (i.e. three animation positions, 0 for the start rotation, 2 for the largest rotation, 1 is an intermediate rotation).

#48 User is offline   Fahrenheit 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 21-August 13
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 16 April 2014 - 11:30 PM

So if I understood this correctly, for a 18 node animation (e.g the combined handle) I could use 0 - 17?
Do I name the part in Gmax as CP_HANDLE COMBINED_CONTROL? Because that it what my .cvf says next to "Type"?
I'll try another animation, e.g the horn button and see if I can animate it successfully.

#49 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 17 April 2014 - 01:05 AM

As I mentioned previously, you should name it CP_HANDLE. The other string is a cvf file configuration option, not a control name.

#50 User is offline   Fahrenheit 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 21-August 13
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 17 April 2014 - 03:30 AM

View Postgpz, on 17 April 2014 - 01:05 AM, said:

As I mentioned previously, you should name it CP_HANDLE. The other string is a cvf file configuration option, not a control name.


Not sure if I'm a complete idiot but I can't seem to make it work. I'll just attach the whole animation part of my .s file below. Any ovious sign of errors? If so, what can I do to correct them?
animations ( 1
		animation ( 100 30
			anim_nodes ( 3
				anim_node CAB (
					controllers ( 0 )
				)
				anim_node CP_HANDLE (
					controllers ( 2
						tcb_rot ( 19
							tcb_key ( 0 -0.370558 0 0 0.92881 0 0 0 0 0 )
							tcb_key ( 1 -0.237686 0 0 0.971342 0 0 0 0 0 )
							tcb_key ( 2 -0.156435 0 0 0.987688 0 0 0 0 0 )
							tcb_key ( 3 -0.104529 0 0 0.994522 0 0 0 0 0 )
							tcb_key ( 4 -0.0436194 0 0 0.999048 0 0 0 0 0 )
							tcb_key ( 5 -0.026177 0 0 0.999657 0 0 0 0 0 )
							tcb_key ( 6 0.0130895 0 0 0.999914 0 0 0 0 0 )
							tcb_key ( 7 0.104528 0 0 0.994522 0 0 0 0 0 )
							tcb_key ( 8 0.147809 0 0 0.989016 0 0 0 0 0 )
							tcb_key ( 9 0.207912 0 0 0.978148 0 0 0 0 0 )
							tcb_key ( 10 0.288196 0 0 0.957571 0 0 0 0 0 )
							tcb_key ( 11 0.378649 0 0 0.925541 0 0 0 0 0 )
							tcb_key ( 12 0.410719 0 0 0.911762 0 0 0 0 0 )
							tcb_key ( 13 0.461749 0 0 0.887011 0 0 0 0 0 )
							tcb_key ( 14 0.477159 0 0 0.878817 0 0 0 0 0 )
							tcb_key ( 15 0.492424 0 0 0.870356 0 0 0 0 0 )
							tcb_key ( 16 0.518773 0 0 0.854912 0 0 0 0 0 )
							tcb_key ( 17 0.540974 0 0 0.841039 0 0 0 0 0 )
							tcb_key ( 100 0.540974 0 0 0.841039 0 0 0 0 0 )
						)
						linear_pos ( 19
							linear_key ( 0 0.293361 1.96356 8.80143 )
							linear_key ( 1 0.293361 1.96356 8.80143 )
							linear_key ( 2 0.293361 1.96356 8.80143 )
							linear_key ( 3 0.293361 1.96356 8.80143 )
							linear_key ( 4 0.293361 1.96356 8.80143 )
							linear_key ( 5 0.293361 1.96356 8.80143 )
							linear_key ( 6 0.293361 1.96356 8.80143 )
							linear_key ( 7 0.293361 1.96356 8.80143 )
							linear_key ( 8 0.293361 1.96356 8.80143 )
							linear_key ( 9 0.293361 1.96356 8.80143 )
							linear_key ( 10 0.293361 1.96356 8.80143 )
							linear_key ( 11 0.293361 1.96356 8.80143 )
							linear_key ( 12 0.293361 1.96356 8.80143 )
							linear_key ( 13 0.293361 1.96356 8.80143 )
							linear_key ( 14 0.293361 1.96356 8.80143 )
							linear_key ( 15 0.293361 1.96356 8.80143 )
							linear_key ( 16 0.293361 1.96356 8.80143 )
							linear_key ( 17 0.293361 1.96356 8.80143 )
							linear_key ( 100 0.293361 1.96356 8.80143 )
						)
					)
				)
				anim_node HORN (
					controllers ( 0 )
				)
			)
		)
	)
)


  • 80 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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