4x4 matrix

Tips and discussion about scenery creation for RailWorks.

4x4 matrix

Unread postby TheConductor » Wed Aug 25, 2021 4:33 am

I have spent the last hour googleing how to use the 4x4 matrix and even looked at the page on rwa. But i can't understand it, i am trying to make a flex block if that helps. Can anyone help me?
User avatar
TheConductor
 
Posts: 38
Joined: Sat Jan 27, 2018 2:09 am
Location: Not sure i kinda got lost?

Re: 4x4 matrix

Unread postby buzz456 » Wed Aug 25, 2021 9:14 am

What's a flex block?
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20939
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: 4x4 matrix

Unread postby TheConductor » Wed Aug 25, 2021 11:56 pm

buzz456 wrote:What's a flex block?


Its difficult to explain but the 3d pine trees that come with the feather river route use it. They are a bunch of diffrent assets that are connected but individaully form to the terrain.
User avatar
TheConductor
 
Posts: 38
Joined: Sat Jan 27, 2018 2:09 am
Location: Not sure i kinda got lost?

Re: 4x4 matrix

Unread postby gtrtroger » Thu Aug 26, 2021 8:38 am

I believe he’s referring to an “Asset Block”.

My suggestion would be to search YouTube for TS editor tutorials. They are some really good ones that explain and show what Regular and Irregular Asset Blocks are all about and how to use them.

You could start with this series by “CactusJuice”. Really well done and informative with examples at every step.

https://youtu.be/TU5rXN-jm_4
User avatar
gtrtroger
 
Posts: 1240
Joined: Mon Jun 30, 2014 7:31 am
Location: Montgomery, Alabama

Re: 4x4 matrix

Unread postby TheConductor » Fri Aug 27, 2021 3:50 am

No im not talking about an assets block. its part of the xml that is generated in the blueprint editor here is a sample
<ContainerComponent>
<cEntityContainerBlueprint>
<TrackTerrainInEditor >1</TrackTerrainInEditor>
<Children>
<cEntityContainerBlueprint-sChild ">
<ChildName >T1</ChildName>
<BlueprintID>
<iBlueprintLibrary-cAbsoluteBlueprintID>
<BlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID>
<Provider >DTG</Provider>
<Product >FeatherRiver</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID >Scenery\Vegetation\HSC_Near_tree01.xml</BlueprintID>
</iBlueprintLibrary-cAbsoluteBlueprintID>
</BlueprintID>
<Matrix>
<cHcRMatrix4x4>
<Element>
<e d:type="sFloat32" d:alt_encoding="000000E0D11BB23F" d:precision="string">0.070737</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000A07AEBEF3F" d:precision="string">0.997495</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000A07AEBEFBF" d:precision="string">-0.997495</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000E0D11BB23F" d:precision="string">0.070737</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000401F273C40" d:precision="string">28.1528</e>
<e d:type="sFloat32" d:alt_encoding="000000E0FFFFCFBE" d:precision="string">-3.8147e-006</e>
<e d:type="sFloat32" d:alt_encoding="00000080378227C0" d:precision="string">-11.7543</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
</Element>
</cHcRMatrix4x4>
</Matrix>
<ParentNodeName ></ParentNodeName>
</cEntityContainerBlueprint-sChild>
User avatar
TheConductor
 
Posts: 38
Joined: Sat Jan 27, 2018 2:09 am
Location: Not sure i kinda got lost?

Re: 4x4 matrix

Unread postby gtrtroger » Fri Aug 27, 2021 9:57 am

You probably should have opened the post with this last information. It would have helped resolve your problem quicker.
User avatar
gtrtroger
 
Posts: 1240
Joined: Mon Jun 30, 2014 7:31 am
Location: Montgomery, Alabama

Re: 4x4 matrix

Unread postby TheConductor » Sat Aug 28, 2021 4:56 pm

Useing the blueprint editor i am drawing an artifical coordinate plane that i am creating a positioning map for. I have found the X and Y coordinate planes. Next i am going to search for th Z axis and after that i will experiment with the rotation functions.
You do not have the required permissions to view the files attached to this post.
User avatar
TheConductor
 
Posts: 38
Joined: Sat Jan 27, 2018 2:09 am
Location: Not sure i kinda got lost?

Re: 4x4 matrix

Unread postby Chacal » Sat Aug 28, 2021 10:33 pm

Elements 13, 14 and 15 in the 4x4 matrix are your x, y and z positions.
In the example you provided, they are:
<e d:type="sFloat32" d:alt_encoding="000000401F273C40" d:precision="string">28.1528</e>
<e d:type="sFloat32" d:alt_encoding="000000E0FFFFCFBE" d:precision="string">-3.8147e-006</e>
<e d:type="sFloat32" d:alt_encoding="00000080378227C0" d:precision="string">-11.7543</e>

This is usually in meters from a center point.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6481
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: 4x4 matrix

Unread postby kris120 » Tue Aug 31, 2021 4:06 pm

I still do not understand what you want to explore with this matrix.
The only important facts are:
- 2 types of Asset Block.
- don't load 3D models with an AB.
- I call the point where you place an Irregular AB "origin". The placement of this origin is critical for it's loading.
- you can extend the outline of an Irregular AB up to 3 tiles away from the tile where the origin resides.
User avatar
kris120
 
Posts: 468
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany


Return to Scenery Design

Who is online

Users browsing this forum: No registered users and 2 guests