5
$\begingroup$

I am working on a livery of F1 car (it's my first project after tutorials) and want to achieve a V-shaped car livery like on this photo: Mclaren

I created a gradient texture with texture coordinate on an empty, like the guy in this video: YouTube and it looks like below. The empty allows me to rotate and scale the gradient texture. I thought that since there is a Mirror modifier on the body, the shader would also be mirrored, but it's not the case. I want to mirror it, like on the screen from the video.

I tried moving, rotating and scaling the empty, but it didn't work :( My work

Gradient I want to achieve: Video

$\endgroup$
6

2 Answers 2

6
$\begingroup$

You were so nearly there... :D

At the risk of starting a game of Node Golf, if the question is: 'How do I make a procedural chevron?' ...then a minimal answer could be something like this, mirroring in X by using its Absolute value:

enter image description here

This assumes the origin of your model is on its mirror axis. The Map Range 'From' figures would depend on the size of your object. Both of those conditions are tweakable.

The texture is in XY, and can be projected through any model:

enter image description here

@brockmann: to get a rounding at the tip pf the chevron without getting too complicated, you could forget the Absolute, and select ranges from y + sqrt((x^2) +n). Here illustrated with n=0.005, n=0.001, and n=0, which returns us to the un-rounded chevron.

enter image description here

Blurring could be achieved by chnging the Color Ramp from 'Constant', and putting in gradients from red to white, and/or, muddling the whole texture space with some noise.

$\endgroup$
4
  • 1
    $\begingroup$ This worked perfectly, thank you! !It worked. $\endgroup$ Jan 29, 2021 at 10:17
  • $\begingroup$ In order to make it less perfect (for realism), do you see any chance to round up the corners and blur the lines it a tiny bit? BTW: Nice answer! $\endgroup$
    – brockmann
    Jan 30, 2021 at 10:05
  • $\begingroup$ @brockmann yes, but it costs a square root! >8/ $\endgroup$ Jan 30, 2021 at 20:22
  • $\begingroup$ @susu Good idea. Thanks. $\endgroup$ Jan 30, 2021 at 20:29
3
$\begingroup$

Try something like this. You may need to adjust the values to fit the size of your object, but the idea is the same - to use wave textures, scaled down so they're only one or 2 stripes, then adding them together on 45 degree angles so they cross in the center of the object. That in mind, using object texture coordinates is a good place to start:

Car1

As you can see from the next 2 images, one Wave texture alone doesn't have both the "chevrons" pointing in the desired directions at the same time, so the solution is to use the rotation of mapping nodes to make one going each way, and then splitting their presentation with a Gradient Texture. I also took this opportunity to make the "back" chevron thicker than the front using the ColorRamp:

Car2

Car3

Here is the gradient. I separated the X and used a ColorRamp set to constant to ensure an even split, then I used this as a mix factor between the two directions:

Car4

I then used this new formed texture as a mix factor between white and red:

Car5

$\endgroup$
1
  • $\begingroup$ Wow! Amazing! Thank you! Even if i end up using a texture image, I will certainly try to do it your way, just to try it and learn. Thank you so much! $\endgroup$ Jan 29, 2021 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.