Page 1 of 1
Brick Displacement
Posted: Mon May 11, 2009 4:42 am
by pipcleo
I know this is posted before but I cant locate sorry...
What is the technique to get brick displacement working correctly on corners without ugly artefacts and spaces ?
I have meshed heavily.... Is it a smoothing setting ?
Thanks in advance
how to avoid THIS
URL=
http://img26.imageshack.us/my.php?image=dfdfdfdfv.jpg]

[/URL]
Re: Brick Displacement
Posted: Mon May 11, 2009 9:35 am
by oz42
I remember reading about this as well. I think the solution is to make the displacement negative i.e. have the mortar displace inwards rather than the bricks displace outwards. Try altering the displacement offset layer so that the mortar displaces inside the volume of the geometry?
Re: Brick Displacement
Posted: Mon May 11, 2009 10:39 am
by Maximus3D
Not a bad idea what Ozzy suggested, i haven't thought about that until now
Here's a old Maxwell material i created, it's a seamless brickwall with displacement that wraps almost quite nicely around corners. See the exampleimages below
Examples
Directlinks to the images
http://img6.imageshack.us/img6/5288/mxmbrickwall1.jpg
http://img26.imageshack.us/img26/1328/mxmbrickwall0.jpg
http://img24.imageshack.us/img24/2371/mxmbrickwall2.jpg
http://img22.imageshack.us/img22/1179/m ... lgrass.jpg
/ Max
Re: Brick Displacement
Posted: Mon May 11, 2009 11:01 am
by Fernando Tella
Geometry should be smoothed. As this volumes usually have 90º corners it is recomended to fillet the corners and refine the mesh there so the projection of the textures are more perpendicular to the faces than radial.
Re: Brick Displacement
Posted: Mon May 11, 2009 11:11 am
by oz42
...ah, yes I seem to remember filleting helps - well done Fernando.
and, as ever, well done Max!
Re: Brick Displacement
Posted: Mon May 11, 2009 5:34 pm
by pipcleo
managed to get it working ok with displacement set at 0.2 cm.
Strangely the displacement of the mortar seems to be at least 2 cm but without corner artefacts.
What exactly is offset supposed to have no effect ?
Re: Brick Displacement
Posted: Mon May 11, 2009 6:26 pm
by Bubbaloo
Is your scene to scale? How about the wall object itself. Has it been scaled and is no longer at a scale of 1? In Max you can reset transform and scale to alleviate this.
Re: Brick Displacement
Posted: Mon May 11, 2009 6:28 pm
by Bubbaloo
By the way, don't do negative displacement around sharp corners. If the displaced geometry crosses itself in these "voids" it will mess up the material. I have done this before on a stone texture.
Re: Brick Displacement
Posted: Mon May 11, 2009 8:26 pm
by brodie_geers
I've heard that this problem is fixed if you set your smoothing angle for the object to less than 90 degrees. I've yet to test this however. If anyone has I'd love to hear your experience with this.
-Brodie
Re: Brick Displacement
Posted: Tue May 12, 2009 3:23 am
by pipcleo
Brian , scene is to scale but something is odd.
This is positive displacement at 0.2 cm with no offset and smoothing < 90
The image i posted above is positive displacement at 2.0 cm with no offset and smoothing < 90.
Anyways its workin fine for this situation

Re: Brick Displacement
Posted: Tue May 12, 2009 6:58 am
by cgbeige
I have a similar problem. The real issue is that I am using Mudbox displacement maps and cage meshes so smoothing the base mesh is not an option (you can't make the displacement relative to another base mesh subdivision or delete the lowest subdivision level like ZBrush).
Re: Brick Displacement
Posted: Tue May 12, 2009 11:13 am
by Fernando Tella
In my experience, smoothing should be >90º unless you fillet the corners (and you should).
Re: Brick Displacement
Posted: Thu Oct 22, 2009 8:54 pm
by JPMays
This may be a dumb question, but how do you set the angle of smoothing? I have a rock wall I'm working on, and smoothing is on, but I don't see anywhere in the mxm editor to adjust the angle.
Re: Brick Displacement
Posted: Fri Oct 23, 2009 12:29 pm
by Fernando Tella
That has to do with your model (surface smoothing), not with your material so it should be done in your modeling app or in studio > object properties.