Pages in Documentation

../images/architecture/2024/custom/thumbs/04.jpg
Customize
../images/architecture/2024/kitchen/thumbs/01.jpg
Overview
../images/architecture/2023/spline_versions/thumbs/02.jpg
Spl. T. Versions
../images/architecture/2023/spline_placement/thumbs/02.jpg
Placement
../images/architecture/2023/spline_mesh/thumbs/02.jpg
Mesh Def.
../images/architecture/2023/spline_segment/thumbs/03.jpg
Segments
../images/architecture/2023/books/thumbs/01.jpg
Books V2
../images/architecture/2023/ui3_history/thumbs/01.jpg
UI3 Versions
../images/architecture/2023/ui3-custom/thumbs/01.jpg
Features /Preview
../images/architecture/2023/ui32/thumbs/01.jpg
UI3 Overview
../images/architecture/2023/ui3_faq/thumbs/01.jpg
UI3 Bugs
../images/architecture/2023/ui3_data/thumbs/02.jpg
3.2 UI Settings
../images/architecture/2023/ui3_design/thumbs/01.jpg
3.2 UI Design
../images/architecture/2022/splinesV3/thumbs/01.jpg
3 Spline Tools
../images/architecture/2022/doorsfaq/thumbs/01.jpg
Doors FAQ
../images/architecture/2022/doorsv2/thumbs/01.jpg
Doors V2 UE5
../images/architecture/2022/steps/thumbs/12.jpg
Step by Step
../images/architecture/2022/kitchenfaq/thumbs/01.jpg
2 Tips & FAQ
../images/architecture/2022/kitchen/thumbs/01.jpg
1 Reference
../images/architecture/2021/ui3-game/thumbs/07.jpg
UI3 Game Modes
../images/architecture/2021/ui3-faq/thumbs/01.jpg
UI3 FAQ
../images/architecture/2020/books/thumbs/01.jpg
Books V1
../images/architecture/2020/doors/thumbs/01.jpg
Doors V1
../images/architecture/2024/kitchenchange/thumbs/02.jpg
Change list
../images/architecture/2021/ui3-bugs/thumbs/02.jpg
3.1 Bugs Fixes
../images/architecture/2020/spline/thumbs/01.jpg
2A Generic BP
../images/architecture/2021/splexamples/thumbs/01.jpg
2B Gen Examples
../images/architecture/2020/railings/thumbs/01.jpg
1 Railings
../images/architecture/2019/guide1/thumbs/01.jpg
UI 1 - Part 1
../images/architecture/2018/03/thumbs/06.jpg
UI 1
../images/architecture/2019/guide2/thumbs/01.jpg
Ui 1 - Part 2
../images/architecture/2019/ui2/thumbs/01.jpg
1 Overview
../images/architecture/2019/ui2features/thumbs/04.jpg
2 UI Features
../images/architecture/2019/ui2start/thumbs/01.jpg
3 Get Started
../images/architecture/2019/ui2info/thumbs/08.jpg
4 Info Map
../images/architecture/2019/ui2act/thumbs/01.jpg
5 BP Actors
../images/architecture/2020/clients/thumbs/01.jpg
6 Manage Clients
../images/architecture/2020/faq/thumbs/03.jpg
7 FAQ
../images/architecture/2019/ui2examples/thumbs/06.jpg
8 Tutorials
../images/architecture/2021/ui3/thumbs/01.jpg
UI3 Overview
../images/architecture/2021/ui3-start/thumbs/02.jpg
UI3 Get Started
../images/architecture/2021/ui3-infomap/thumbs/02.jpg
3.1 Info Map
../images/architecture/2021/ui3-var/thumbs/01.jpg
UI3 Edit Mode
../images/architecture/2021/ui3-actors/thumbs/02.jpg
UI3 Blueprints

[2 B] Generic Spline Blueprint Examples

Practical Examples for the use of the generic spline blueprint (BP_GenericMeshesOnSpline)

Content:

Example 1: Kerb For A Small Zen Garden

Example 2: Decorative Wood Slats

Example 3: Row of Bushes

Example 4: Rows of Chairs

Example 1: Kerb For A Small Zen Garden

In this example a 20cm kerb is repeated on a spline to frame grass patches in a interior zen garden. This is the most basic type of use for the generic spline actor. Most settings are default settings. Only the mesh needs to be replaced.

Watch the video at the end of this example.

The scene and meshes are not included.

Read more

image

Static Mesh Module

Mesh is not included!

Create a box 20x10x4 units (cm) large and chamfer it with 0.5 units all around. Place it onto the origin (0-0-0) of your modelling program extending to the X-Axis. This is the native orientation for spline meshes in Unreal.

I box-mapped it with X-Y-Z the same size. I always use the same box mapping so single id materials can be used on all box mapped meshes.

Once imported I add a box simplified collision to it. To avoid scaling problems you can convert the collision box to convex (optional).

I also created a 2nd UV in the editor from the first one for the lightmap. I used 24 as the lightmap size.

image

Spline Blueprint

Place the blueprint BP_GenericMeshesOnSpline into the map. It will have the default railing mesh on it. In the Meshes section replace the railing mesh with the new kerb mesh. That's all you have to do for a simple example like this before you can lay out the spline.

Use the 'Orientation' if a mesh happens to point into the wrong direction.

A mesh may not orientate from one side but from the middle. You can compensate this with the MeshTransform Location in the Mesh section. Use X to move the mesh along the spline. Y will move it off the spline and Z will alter its height position.

image

Video Tutorial

Watch a 4 minute video recorded while I was creating the garden kerbs.

Example 2: Decorative Wood Slats

In this example I use the GenericMeshOnSpline blueprint to add decorative vertical wood slats. A common element in architecture.

This example uses 2 sections and 2 meshes. The end section will have a single slat while the main section uses a modular slat set with the background black wall strip attached.

This scene is from a different project that is not included in the marketplace package.

image

Static Mesh

On the right is a close up of the slats in the modelling program. I baked the meshes but that's optional.

On the left side are the 3 meshes used:

  • A single slat for the end
  • A 3 slats modular mesh
  • A 10 slats modular mesh

Don't forget to place the left side of the mesh onto the origin point 0,0,0 in your modelling program.

the scene and meshes are not included.

image

Meshes Settings

The mesh sequences are still just a single mesh. But this time we need two different meshes. Because they don't alternate along the spline 0-1-0-1-0-1 we need to set them in separate mesh sequences. We need them to be placed on the spline as 0-0-0-0-0-0-1. This will be done in the section.

Both meshes are made for splines and don't need any adjustments.

See example 1 above for more options to adjust the mesh origin.

image

Sections Settings

Section [0] has the repeating mesh. Everything is already set up correctly by default.

Section [1] will contain the end mesh with a single slat and no black wall strip attached to end the spline placement. Set the 'SectionDistanceType' to 'From Placement'. This will take the space needed by the placement settings for this mesh.

    Placement settings:
  • MeshGroupID = [1]
  • PlacementMode = Manual
  • AmountOfInstances = 1

Summary: Section 1 is set to manual and will use the space for 1 single slat mesh. Section 0 will take the rest of the space and scale the meshes to fit exactly into the available space.

image

Per Instance Random

You can use this node setup in your material to avoid repetition of the texture. It randomly shifts the UVs a bit for each instance of the mesh along the spline.

Just plug it into the UVs of the textures and use that material for the meshes in the spline.

image

Video Tutorial

Watch a 3 minute video recorded while I was creating a few slat sections in a project.

Example 3: Row of Bushes

This example creates are random looking row of bushes on a small strip of soil along a driveway.

It uses a sequence of 3 bushes with random transforms and the gaps between the meshes are increased.

The scene and the bushes are not included. Those are speed tree bushes.

image

Mesh Sequence

There are 3 meshes used. A smaller bush repeated 5 times and 2 types of larger bushes placed once each. Then it repeats:
0-0-0-0-0-1-2-0-0-0-0-0-1-2-...

Place all meshes into the first Mesh Sequence [0]. Add 3 Meshes as seen on the right.

For the first mesh [0] the Amount is set to 5 and the Overlap to -23. The mesh will be repeated 5 times with a extra gap of 23 units. Negative overlaps will cause a gap.

The 2nd mesh [1] and the 3rd mesh [2] are only used once and they don't have an extra gap larger than their bounding box.

image

Section

There is only one section used for this. All section settings are default.

Set the PlacementMode to 'Fill but don't stretch' so meshes are not stretched along the spline.

To get random placement offsets activate the 'UseRandom' tick box. Default values should be good for most cases. You can tweak them in 'RandomTransform'. A location value of 25 in X will place the mesh randomly between +25 and -25 from the default point.

Clicking on the tick box 'Generate Random Stream' will re- generate a new stream of random values. Use this if you are not happy with the randomness.

image

Video Tutorial

Watch a 5 minute video recorded while I was creating this planting improving it till it works well for the scene.

Example 4: Rows of Chairs

In this example I'm placing chairs in multiple rows for the audience of an event. It uses a bit of a random placement. It has multiple sections and shows how to use 2 sets on the same spline to offset every 2nd row of chairs.

The example chair is not included but it works with any chair.

image

Chairs Section

The section that contains the chairs has its default settings. 'Fill Remaining' means that the section will grab whatever space is left. The 'SectionDistance' is used as a weight value in case there are more than one sections set to 'Fill Remaining'. If one section's distance is set to 100 and the other to 50 then the first section will get 2/3 of the space and the 2nd section will get 1/3 of the space.

Placement is set to 'Fill but don't stretch' to not scale the chairs here.

The random values offset each chair slightly and rotate them a bit.

image

Fixed Gap Section

The middle section [1] is set to a fixed gap. The distance will be exactly what is set here. A gap is meant to not have any meshes. Manually remove all placements here.

Section [2] is the same as section [0]. You can copy the settings of one section to another section with the right click menu.

SetCopies can be used to copy the set placed on a spline. To get multiple rows we add an array element and set the number of copies to larger than '0'. Then adjust the Y-LocationOffset to incrementally copy the chairs.

image

Offsetting every 2nd row of chairs

You can have more than one set of meshes along a spline. Use this feature to offset every 2nd row of chairs.

  • First reduce the amount of rows to '3' in the first set and double the distance to '-160' units.
  • Then add another 'Section Set' clicking on [+]
  • Copy Set [0] to the new Set [1] with the right click menu.
  • Use the 'SetTransform - Location' in Set [1] to offset the the chairs one row plus half a chair to the side.
  • Reduce the amount of chairs in Set [1] to 2 rows.

image

Video Tutorial

Video recording while I am setting up this spline. Values are slightly different than the ones I used in the images above. And I didn't set the section distance to 'Fill but don't scale' in the video.

Top of page