Tree won't rotate

Posted:
Fri Aug 21, 2015 11:43 pm
by SAR704
I've exported a 2d tree into the sim, with the TrainUprightViewFacingFlora.fx shader, and yet it fails to rotate at all. I checked a file of a Kuju 2d tree which has the shader and works fine, and I couldn't find any real difference with the exported file.
What could I be doing wrong with this file? I'm using 3d Canvas 7.0.2.
Re: Tree won't rotate

Posted:
Sat Aug 22, 2015 12:57 am
by Ericmopar
I'm not an expert in scenery, but I believe there is something in one of the bins that has to be set to always facing the driver.
It's been awhile since I looked so I don't remember exactly where a person finds this.
I would assume the 2D object in question would also have to have a designated "front" for that to work.
This might be the setting in the bin.
<RotateEndGeometry d:type="cDeltaString">eTrue</RotateEndGeometry>
If you have Donner Pass this is a 2D hedge bin you can check out for guidance.
Steam\SteamApps\common\RailWorks\Assets\RSC\DonnerPass\Scenery\Vegetation\Bush_hedgeline01.bin
Re: Tree won't rotate

Posted:
Sat Aug 22, 2015 3:26 am
by ex-railwayman
Hmmm, but, it's 2D, you can't rotate it because it doesn't have a side view like a 3D shape, all you get is a front and a back and that's what you see and it follows you round with the camera, it isn't a static object it moves in symmetry, a 3D will remain static and you can go round it in 360 degrees by default.
Cheerz. ex-railwayman.
Re: Tree won't rotate

Posted:
Sat Aug 22, 2015 2:39 pm
by Ericmopar
ex-railwayman wrote:Hmmm, but, it's 2D, you can't rotate it because it doesn't have a side view like a 3D shape, all you get is a front and a back and that's what you see and it follows you round with the camera, it isn't a static object it moves in symmetry, a 3D will remain static and you can go round it in 360 degrees by default.
Cheerz. ex-railwayman.
That's just it, he can't get it to rotate with the camera view.
Re: Tree won't rotate

Posted:
Sun Aug 23, 2015 2:53 am
by bnsfsubdivision
This might help you (;
http://www.engine-driver.com/article/sh ... g-the-meshAnother great article from Mike! For a quick tip I'd suggest to check for the right shader: TrainUprightViewFacingFlora.fx
Re: Tree won't rotate

Posted:
Sun Aug 23, 2015 5:01 pm
by Ericmopar
He said in his first post, that he was using that shader...