Cinema 4D Irawan Cloth Shader

Cinema 4D Irawan Shader

Cinema 4D Irawan Shader

Since release 16 (I think) Cinema 4D has had its own cloth shader in the reflectance channel, the Irawan Shader, and I have been waiting for a good time to try it out.

Well, that time has arrived and the post yesterday used that shader for both the material on the sofa and the carpet. For those interested in such things I have posted above (and on Flickr) a detail of the image which shows the effect better.

For both textures I used only the reflectance channel, using a coloured layer mask in much the same way that C4D use for their sample materials. Yes, I know there is some moiré which, if I was clever, I would have got rid of by upping the anti-aliasing but overall, I am pleased with the effect.

Mid-Century Curtains

The mid-century in the UK saw a lot of fabrics being produced with designs that were based seemingly on almost random looking shapes and forms.

This was a trend that produced some very distinctive looking fabrics and wallpapers and, along with the use of appropriate colours, tends to mark patterns as being mid-century.

This design was made in code with Processing and was intended from the outset as a fabric pattern. It uses the type of shapes that were commonly used and paired with a dark background fabric it makes an ideal material. The set used is a very basic curtain set that was made some time back and which, to be honest, is as good as any other set for showcasing curtain material. The pattern looks an awkward one when seen as a swatch but comes alive when used as material with the other shapes forming a division across the curtain which contrast in well with the shape and colour of the lower forms.

The code is rather long and a little scrappy but I include it below in case it helps anyone.

You can also see larger versions of this and our other work on our Flickr page which is here.

PImage bg ;
 color brass ;
 color pinkb ; // pink beige
 color butterm ; // buttermilk
 color rred ; // reef red
 color cbrown ; // congo brown
 color choc ; // chocolate
void setup() {
 size(1000, 1000) ;
 bg = loadImage("092.jpg") ; // regal red
 image(bg, 0, 0) ;
 // background(255) ;
 // colors
 brass = color(#DBA20D) ;
 pinkb = color(#E09F81) ;
 butterm = color(#E9DAB1) ;
 rred = color(#E07A67) ;
 cbrown = color(#574736) ;
 choc = color(#352522) ;
drawShape01(500, 500) ;
 drawShape01(250, 750) ;
 drawShape02(0, 500) ;
 drawShape02(1000, 500) ; // offset above
 drawShape02(700, 750) ;
 drawShape03(360, 1000) ;
 drawShape03(360, 0) ; // offset above
 drawShape04(0, 700) ;
 drawShape04(0, -300) ; // offset above
 drawShape04(1000, 700) ; // offset above
 drawShape04(1000, -300) ; // offset above
 rect(830, 100, 80, 260, 60, 0, 60, 0) ;
 rect(5, 100, 80, 260, 0, 60, 0, 60) ;
//drawGuides() ;
 // shapes
 stroke(0) ;
 strokeWeight(1) ;
 fill(brass, 180) ;
 // shape01
 beginShape() ;
 curveVertex(360, 150) ; // C1
 curveVertex(210, 100) ; // V1
 curveVertex(170, 200) ; //V2
 curveVertex(210, 300) ; // V3
 curveVertex(360, 250) ; // C2
 vertex(110, 300) ;
 vertex(110, 100) ;
 endShape(CLOSE) ;
 // shape02 add 140 to across to make it 50 away
 beginShape() ;
 vertex(240, 80) ;
 curveVertex(490, 150) ; // C1
 curveVertex(340, 100) ; // V1 curveVertex(310, 200) ; //V2
 curveVertex(340, 320) ; // V3
 curveVertex(490, 250) ; // C2
 vertex(240, 320) ;
 endShape(CLOSE) ;
 // shape03 add 150 to across to make it 50 away
 beginShape() ;
 vertex(380, 300) ;
 vertex(380, 100) ;
 curveVertex(630, 150) ; // C1
 curveVertex(480, 100) ; // V1
 curveVertex(410, 200) ; //V2
 curveVertex(480, 300) ; // V3
 curveVertex(480, 250) ; // C2
endShape(CLOSE) ;
 // shape04 add 150 to across to make it 50 away
 beginShape() ;
 vertex(500, 320) ;
 vertex(500, 80) ;
 curveVertex(580, 150) ; // C1
 curveVertex(630, 100) ; // V1
 curveVertex(590, 200) ; //V2
 curveVertex(630, 320) ; // V3
 curveVertex(630, 250) ; // C2
 endShape(CLOSE) ;
 // shape05 add 150 to across to make it 50 away
 beginShape() ;
 curveVertex(930, 150) ; // C1
 curveVertex(780, 100) ; // V1
 curveVertex(740, 200) ; //V2
 curveVertex(780, 300) ; // V3
 curveVertex(780, 250) ; // C2
 vertex(680, 300) ;
 vertex(680, 100) ;
 endShape(CLOSE) ;
}
//---------------------------------------------------------------
void drawShape01(int x, int y) {
 stroke(butterm, 200) ;
 strokeWeight(7) ;
 fill(pinkb, 150) ;
 rect(x, y, 300, 30) ;
 rect(x, y + 40, 240, 25) ;
 rect(x, y + 75, 180, 20) ;
 rect(x, y + 105, 120, 15) ;
 rect(x, y + 130, 60, 10) ;
 }
void drawShape02(int x, int y) {
 stroke(rred, 250) ;
 strokeWeight(10) ;
 fill(butterm, 200) ;
 ellipse(x, y, 100, 200) ;
 ellipse(x + 100, y, 80, 180) ;
 ellipse(x + 180, y, 60, 160) ;
 }
void drawShape03(int x, int y) {
 stroke(choc, 250) ;
 strokeWeight(5) ;
 fill(pinkb, 250) ;
 line(x, y, x + 300, y) ;
 ellipse(x + 303, y, 30, 30) ;
 line(x, y, x + 300, y - 50) ;
 ellipse(x + 303, y - 50, 30, 30) ;
 line(x, y, x + 300, y + 50) ;
 ellipse(x + 303, y + 50, 30, 30) ;
 // origin ball
 ellipse(x, y, 30, 30) ;
 }
void drawShape04(int x, int y) {
 stroke(choc, 250) ;
 strokeWeight(5) ;
 fill(pinkb, 250) ;
 line(x, y, x, y + 300) ;
 ellipse(x, y + 300, 30, 30) ;
 line(x, y, x + 50, y + 300) ;
 ellipse(x + 50, y + 300, 30, 30) ;
 line(x, y, x - 50, y + 300) ;
 ellipse(x - 50, y + 300, 30, 30) ;
 // origian ball
 ellipse(x, y, 30, 30) ;
 }
//-----------------------------
 void drawGuides() {
 stroke(255, 50) ;
 strokeWeight(1) ;
 // across
 line(250, 0, 250, 1000) ;
 line(500, 0, 500, 1000) ;
 line(750, 0, 750, 1000) ;
 // down
 line(0, 250, 1000, 250) ;
 line(0, 500, 1000, 500) ;
 line(0, 750, 1000, 750) ;
 // reset stroke
 stroke(0) ;
 strokeWeight(1) ;
 }

xar253

xar254

Again today we have truly lovely material which might have come straight from the late 1950s or early 1960s.

The background squares are all colours taken from the British Standard palette while the foreground colours are similarly sympathetic to give a true mid-century look. The design, too, is based on mid-century patterns and so the result creates a nice looking 3D texture or would make a realistic fabric.

This pattern was created in Xara Designer and rendered in Shade.

xar254

xar253

xar253

You can’t get much more mid-century than this material: this is a pattern that is straight out of the 1950s.

This is based and inspired by the patterns coming from the new school of artists working in the early years after the war. There was hope for a better future and a desire for experimentation and change and many designs like this found their way out as material, wallpaper and onto other surfaces.

I have to say that this is a pattern I enjoyed making and so there may be more of them to come! It looks good in a variety of roles and so I thought it best to show it as a length of material – as a curtain if you want. To create a better impression of the overall pattern this is a high resolution image that has been resized.

The pattern was created in Xara Designer and rendered and assembled at high resolution in the fabulous Shade 3D program.

xar253

xar227

xar227

They say you should never judge your own work so here on display is xar227 in its third incarnation as a modern pattern.

To show how versatile mid-century patterns are and how easy it is to convert them into a modern design, this began life as a 1950s motif which has been reworked with the colour scheme into something much more up to date. It was designed as a multi-purpose pattern that had, for that reason, to be simple and easy to manipulate. It is shown here as material but I will also show this same pattern used as a surface on a modern bangle.

The reason for the heading is that this was a pattern I worked very hard to create but which I ended up not liking. But, as it says, you should never judge your own work but leave that to others.

xar227

xar226

xar226

This pattern was created to follow designs used in the 1950s and early 1960s and so it is very much mid-century.

The background is representative of material and is coloured using a mid-century British Standard colour BS7076 Court Grey. The motifs also use colours from this range: BS6074 Mid-Brunswick Green, BS5065, Clover Leaf and BS0004 Marigold.

It’s a nice pattern that is easy on the eye, as many of the patterns of that time were, and it looks great used in a large area. I used Shade 12 to create a representation of what it would look like as, for example, a curtain.

Not for the first time, this is a design that responds well to colour and shape variations which was a fact well exploited at the time.

xar226

xar224_c3

xar224_c3

As promised, here is the second variation in both size and shape of the pattern used yesterday.

In fact the size variation is not so apparent because of the scale at which they are shown but the different colouring makes the two seem very different, especially as materials. In fact, as a material, this looks excellent and I am very pleased with the result I have obtained.

The materials were rendered in Shade 12 and I am increasingly surprised at how good to use that program is.

xar224_c3