Placing Continuous Banners/Fencing Using Blender

User avatar
aeffertz
Posts: 2410
Joined: Sat Sep 06, 2014 7:01 am
Location: Wiscansin

Placing Continuous Banners/Fencing Using Blender

Postby aeffertz » Mon Aug 28, 2017 8:57 pm

First, follow Barrington's guide to importing your terrain into Blender here: viewtopic.php?f=11&t=46002

Create an overlay of your track or screenshot the track editor for a quick and easy overlay for this guide. Click your terrain plane and switch to edit mode. In the UV/Image Editor, add your overlay image to the unwrapped plane by clicking open and selecting the overlay. Then switch your viewport shading to 'Texture' in your 3D view window.

Image

I marked out where I wanted the banners in photoshop just as a visual aid and it was easier for me to plan that way but it's totally not necessary.

Add a plane, rotate it so it's upright.

Image

Now here's where things can differ but the steps will be the same. You need to know aspect ratio of your banners/fencing. The banners I'm showing in this tutorial are 1x4 (4 times as wide as it is tall). So select plane, press 'S' to scale, then press 'X' to scale across the X plane, then press '4' to scale it by 4 units.

Image

Now apply the rotation and scale by switching to object mode, pressing Ctrl + A then selecting Rotation and Scale.

Image

Go back to edit mode. In the UV/Image Editor, open up the banner/fencing texture you want to use. Select your new plane in the 3D View window and press 'U' and select 'Unwrap' to unwrap the plane to your banner texture.

Image

Here's a step that may or may not apply to you, depending on your texture. This banner has 3 stakes, so I will subdivide the plane so there are more pivit points to follow hills and curves. Press Ctrl + R and subdivide it in the middle or where ever you need to.

Image

Also, keep your UV and Edit widnows in sync by clicking this. It will be easy to make sure your plane is orientated in the correct way.

Image

Time to adjust the dimensions to the size you want. I make the rF trackside banners 3.5 feet tall. That changes the scale to 1.75. So I will need to change the X scale to 1.75 as well to keep out dimensions correct.

Image

Go ahead and apply rotation and scale again.

Image

Now, time to add a new curve.

Image

Click 7 to get an overhead view. Then under curve tools, select Auto under the Handles section. This will create smooth curves. If you select Vector, it the bends will be more rigid. So depending on what your trying to accomplish, couple different options. For now, I also uncheck Handles and Normals under Curve Display.

Image
Image

Go back to object mode and select your banner plane. Time to add modifiers. First, select the Array modifier. Under 'Fit Type:' select Fit Curve. Then under 'Curve' select your bezier curve. Don't apply anything yet. Add another modifier, this time select the Curve modifier. Under 'Object' select your bezier curve again.

Image

This is all ready to go now, so I like to create a duplicate of both the plane and curve so I don't have to repeat all these steps when I want to place a second run of banners. Select both the plane and curve and grab/move them over to where you want to start.

Image

Select your curve and switch into edit mode. Grab one vertice and drag it to follow the track edge. Click 'E' to create a new vertice and get more accurate curvatures.

Image

Once you go as far as you want, it'll look something like this.

Image

Now you'll want to grab the vertices along your curve and adjust their heights relative to the ground. Select one, or multiple, vertices then click 'G' to grab it, then click 'Z' to only move it on the Z plane (up and down).

Depending on how many vertices you made, you may need to tweak the curves a bit with the handles. Turn them back on under Curve Display. Grab an end to raise or lower it to better match the ground. Sometimes you will have to get it as close as possible and then further adjust certain areas in the next steps. However, try to get it to match the ground during this step as fixing it later on is slower and tedious.

Image
Image

Now in object mode, select your banner plane and apply the array modifier first, then the curve modifier second.

Image

Select your banner plane and go into edit mode. None of the planes are connected at this point so to fix that select all by pressing 'A' and remove doubles.

Image

Now if there were any trouble spots where you couldn't get it to match the curve exactly, you can go in and grab certain edges and raise/lower to match. Select which vertical edge, click 'G' then click 'Z' and move it to where you need to.

Image

Repeat as much as you need to. Last thing you'll need to do is Select All by clicking 'A' then press Shift + D to duplicate followed by Enter to place it.

Image

Now flip the normals.

Image

As you can see the UV is backwards on the backside. So while they're all still selected, go to the UV/Image Editor and mirror the selected planes over the X Axis.

Image

Last thing is to select your banner and apply Location, Rotation and Scale.

Image

Export the JM and place in game. Since you applied it's location and rotation all you need to do is enter it in as [0.000000 0.000000 0.000000] in your statue files.

barrington314
Posts: 6064
Joined: Fri Feb 18, 2011 6:03 pm
Team: me
Location: Charleston, SC

Re: Placing Continuous Banners/Fencing Using Blender

Postby barrington314 » Mon Aug 28, 2017 9:31 pm

Thank you good sir. 8)

User avatar
M@xTizZz
Posts: 2038
Joined: Wed Jan 25, 2012 4:20 pm
Team: TizZy-Design
Location: France

Re: Placing Continuous Banners/Fencing Using Blender

Postby M@xTizZz » Mon Sep 04, 2017 1:19 pm

barrington314 wrote:Thank you good sir. 8)
Maxime Tison #51 [EMF] | #nonumberanymore [rF]
|EMF Official admin Image| |Tizzy Design Owner Image|
Skype ID : max_tizzz

User avatar
ColtonD719
Posts: 112
Joined: Tue Jun 21, 2016 4:15 am
Team: Privateer
Location: California
Contact:

Re: Placing Continuous Banners/Fencing Using Blender

Postby ColtonD719 » Thu Sep 07, 2017 1:45 am

Thanks for putting this together! It's interesting to see the different ways people tackle placing banners.

It seems like lining everything up vertically with the terrain could get pretty tedious. Snapping your curve to the terrain speeds things up a lot:

At this step:
aeffertz wrote:Time to adjust the dimensions to the size you want. I make the rF trackside banners 3.5 feet tall. That changes the scale to 1.75. So I will need to change the X scale to 1.75 as well to keep out dimensions correct.

Move your banner plane up by 1/2 of it's height. In this case, G>Z>1.75.

Then before this step:
aeffertz wrote:Select your curve and switch into edit mode. Grab one vertice and drag it to follow the track edge. Click 'E' to create a new vertice and get more accurate curvatures.

Turn on snapping by clicking the magnet icon at the bottom of the viewport. Next to that, choose Face, and next to that Closest. Image. Now when you move your curve vertices, they should automatically align to the height of the terrain.
Colton, Track Creator

Released MXS Tracks

User avatar
aeffertz
Posts: 2410
Joined: Sat Sep 06, 2014 7:01 am
Location: Wiscansin

Re: Placing Continuous Banners/Fencing Using Blender

Postby aeffertz » Thu Sep 07, 2017 3:29 am

Awesome, I will have to give that a shot.

User avatar
aeffertz
Posts: 2410
Joined: Sat Sep 06, 2014 7:01 am
Location: Wiscansin

Re: Placing Continuous Banners/Fencing Using Blender

Postby aeffertz » Thu Sep 07, 2017 3:41 am

That was exactly the step I needed to speed this up. Thank you!

User avatar
ColtonD719
Posts: 112
Joined: Tue Jun 21, 2016 4:15 am
Team: Privateer
Location: California
Contact:

Re: Placing Continuous Banners/Fencing Using Blender

Postby ColtonD719 » Thu Sep 07, 2017 7:14 am

Glad it helped! I found that trick in a post from wheels buried deep in this thread: viewtopic.php?f=2&t=321&start=75#p472649
Colton, Track Creator

Released MXS Tracks


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests