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.
  • 82 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3D Cabs Rate Topic: -----

#61 User is offline   JTang 

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

Posted 18 April 2014 - 04:58 PM

View PostFahrenheit, on 18 April 2014 - 11:51 AM, said:

Is it possible to have a working digital clock in the 3D view?
I have now managed to get the basic controls working, thanks you fine people :wacko:


Currently we can only show digits in 2D, imposing on a 3D view. There is a digital clock defined in the prototype, with a part named "CLOCK:0:6", indicates it's the first clock with 6 pt fonts. The part is defined in the .s file as a single face part with x, y, z indicating the location, the face is very small and facing the other direction so it won't show up.

#62 User is offline   JohnnyS 

  • Conductor
  • Group: Status: Active Member
  • Posts: 287
  • Joined: 05-May 11
  • Gender:Male
  • Simulator:OR/MSTS
  • Country:

Posted 20 April 2014 - 05:16 AM

Quote

Sound has largely been overlooked at this stage, but will be fixed.


OK, thanks.

Next question, am trying to animate a rotary switch for engine start/stop using the WIPERS definition in the .cvf file without any success.

Entry in .cvf file is:
TwoState (
			Type ( WIPERS TWO_STATE )
			Position ( 455 19 32 32 )
			NumFrames ( 0 0 0 )
			Style ( ONOFF )
			MouseControl ( 1 )
		)

Entry in .eng file:
Wipers ( 0 1 0 )

Entry in the shape file
anim_node WIPERS:0:0 (
					controllers ( 1
						tcb_rot ( 2
							tcb_key ( 0 0 0 0 1 0 0 0 0 0 )
							tcb_key ( 1 0 0 -0.704015 -0.710185 0 0 0 0 0 )
						)
					)
				)

And the .rot file for TSM
TSM Rotation
0;0.000000;0.000000;0.000000;
1;0.000000;-0.000000;270.000000;


I think I haven't made the animation correctly in TSM as in shape viewer I cannot see the switch moving, whereas previously animated levers are moving as intended.

Cheers,
John.

Edit: renaming the part from WIPERS to ZZZBOX means the animation can be seen in shape viewer, subsequent editing of the shape file to try and reconcile the 3d cab with the .cvf and .eng definitions has proved fruitless so far.

Edit2: Success! ...of sorts, editing the shape file and .cvf to make the rotary switch control the sanding instead of the wipers rewards me with a working control only for a different function.

#63 User is offline   JTang 

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

Posted 20 April 2014 - 12:12 PM

I am not sure which key should be used for WIPER in the .cvf file, you may need to double check that.

#64 User is offline   JohnnyS 

  • Conductor
  • Group: Status: Active Member
  • Posts: 287
  • Joined: 05-May 11
  • Gender:Male
  • Simulator:OR/MSTS
  • Country:

Posted 20 April 2014 - 02:26 PM

Hi Jijun,

Thanks for the great work you have done. I have tried naming the part both WIPER and WIPERS, the convention in other .eng and .cvf files seems to be WIPERS, neither part name has worked, yet the same part renamed as another two state control works OK. One difference I have noticed between my shape file and yours is that when searching within the uncompressed file for the control name using notepad++ i find a section like this:
prim_state BELL:0:0_SolidNorm ( 00000000 0
			tex_idxs ( 1 1 ) 0 48 0 0 1
		)

In your 3d cab shape file the prim_state entries do not have the corresponding part name. Could this have any bearing on the problem? I've never bothered to learn the significance of the prim_state entries, so sorry if that's an odd query.

Thanks,
John.

#65 User is offline   RTP 

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

Posted 21 April 2014 - 07:28 AM

May be is a bug:

I get de following message:


Warning: System.IO.FileLoadException: c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s c:\simuladores\train simulator-prr\trains\trainset\ff1\ ---> System.IO.FileNotFoundException: No se pudo encontrar el archivo 'c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s'.
Nombre de archivo: 'c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s'

The name of the folder CABVIEW3D is not in the above path, and must be.

Curiously, the program works with another loco.

What is happening?

Thanks.

RTP

#66 User is offline   JohnnyS 

  • Conductor
  • Group: Status: Active Member
  • Posts: 287
  • Joined: 05-May 11
  • Gender:Male
  • Simulator:OR/MSTS
  • Country:

Posted 21 April 2014 - 11:34 AM

Hi,

Tried to make a reverser, and struggled a little to get it working. After many tries at trying to get the animation sequence right in TSM I threw in the towel and decide to hack the shape file manually, several trial and error edits later I managed to get it working.

Tha last export from TSM gave an entry in the shape file thus:
anim_node DIRECTION:0:0 (
					controllers ( 1
						tcb_rot ( 3
							tcb_key ( 0 0 0 0 1 0 0 0 0 0 )
							tcb_key ( 1 -0 0.173648 0 0.984808 0 0 0 0 0 )
							tcb_key ( 2 0 0.173648 0 -0.984808 0 0 0 0 0 )
						)
					)
				)


The code that gave me a working control is like so:
anim_node DIRECTION:0:0 (
					controllers ( 1
						tcb_rot ( 3
							tcb_key ( 0 0 0.173648 0 -0.984808 0 0 0 0 0 )
							tcb_key ( 1 0 0 0 1 0 0 0 0 0 )
							tcb_key ( 2 -0 0.173648 0 0.984808 0 0 0 0 0 )
						)
					)
				)


Corresponding .eng entry: DirControl ( -1 0 1 1 )

...and .cvf: TriState (
Type ( DIRECTION TRI_STATE )
Position ( 424 413 42 30 )
NumFrames ( 3 3 1 )
Style ( NONE )
MouseControl ( 1 )
Orientation ( 0 )
DirIncrease ( 0 )
)



A bit of a fluke but maybe this info is useful for others.

Cheers,
John.

Edit: Had a fiddle with direction control in JTangs original cab shape.

Before:
anim_node DIRECTION:0:0 (
					controllers ( 1
						tcb_rot ( 3
							slerp_rot ( 0 0 0 0 1 )
							slerp_rot ( 1 0 .258819 0 .9659258 )
							slerp_rot ( 2 0 -.258819 0 .9659258 )
						)
					)
				)


After:
anim_node DIRECTION:0:0 (
					controllers ( 1
						tcb_rot ( 3
							slerp_rot ( 0 0 .258819 0 -.9659258 )
							slerp_rot ( 1 0 0 0 1 )
							slerp_rot ( 2 0 .258819 0 .9659258 )
						)
					)
				)


Reverser now functions correctly.

#67 User is offline   JTang 

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

Posted 21 April 2014 - 12:15 PM

View PostRTP, on 21 April 2014 - 07:28 AM, said:

May be is a bug:

I get de following message:


Warning: System.IO.FileLoadException: c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s c:\simuladores\train simulator-prr\trains\trainset\ff1\ ---> System.IO.FileNotFoundException: No se pudo encontrar el archivo 'c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s'.
Nombre de archivo: 'c:\simuladores\train simulator-prr\trains\trainset\ff1\cab.s'

The name of the folder CABVIEW3D is not in the above path, and must be.

Curiously, the program works with another loco.

What is happening?

Thanks.

RTP


Please try to use the newest OR code.

#68 User is offline   RTP 

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

Posted 21 April 2014 - 12:22 PM

That happens in X2191, and various more from X2168.

And happens in one loco, in other all works.

#69 Inactive_DAve Babb_*

  • Group: Status: Passengers (Obsolete)

Posted 07 May 2014 - 02:41 PM

I've seen people mention using TSM to create cabs.
How have people got on with it, in my experience TSM struggles to zoom in far enough to work in high detail with parts this small.
I've not used TSM in anger for sometime so I may be remembering things incorrectly.

#70 User is offline   RTP 

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

Posted 07 May 2014 - 03:46 PM

I use always TSM.

To work smalls parts, scale the part or a group of them for, say, 20.

Do the work, and scale again for 0.05

That is all.

Cheers.

RTP.

  • 82 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • 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