SketchUcation Premium Membership

 

 

Help required: VRay Dirt with diffuse bitmap texture map

Help required: VRay Dirt with diffuse bitmap texture map

Postby denyerec » Fri Jun 22, 2012 1:38 pm

I'm trying to use the Vray (vray 1.49.01) dirt shader in conjunction with a regular texturemapped surface and am running into difficulties.

First, I create a basic texture mapped surface using a material with a single diffuse component. I set the diffuse colour to type texBitmap and apply my bitmap texture. I use a bumpmap in the material bump channel.

When I render, I now get a lovely brick wall :)

Now I am confused as to where/how I apply the dirt layer. If I create a new diffuse layer in the material, it obscures my texture map. I kinda need to "overlay" the dirt over the texture mapped surface. In all the example videos I've seen on youtube so far, the dirt shader is always demonstrated on a flat colour surface (EG Here: http://www.youtube.com/watch?v=qYIxij9T7ac ) and I have yet to see an example of the dirt shader being applied over the top of a bitmap texture.

Can anyone offer any pointers on what I'm missing here? I briefly investigated the "blend" shader, but it only allows a % blend rather than a blend-mode option. If blend-mode were present it'd be a simple case of selecting "Darken" and using a dark dirt colour, but I don't see a way to do this.

In summary:

I wish to apply the VRay dirt shader to a bitmap textured wall.

Many thanks!
denyerec
 
Posts: 4
Joined: Tue Jun 19, 2012 4:27 pm

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby thomthom » Fri Jun 22, 2012 1:57 pm

I use the dirt map in the transparency slot of the main diffuse layer - the one with the bitmap. Then I have a Black diffuse underneat (or some other dirth-ish texture) The underlying diffuse layer will then shine through.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17915
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby valerostudio » Fri Jun 22, 2012 2:08 pm

Instead of using the color in the white slot for the DirtMap, just use TexBitmap and choose your brick pattern. In order to get the UV mapping correct, you have to do as Fernando does in this video and place another Diffuse layer above the dirt layer and set its transparency to AColor and choose white. This is the typical workaround for mapping textures that are in the Diffuse slot (and you want to see them visually in SU), so its a good trick to learn.
valerostudio
 
Posts: 683
Joined: Tue Feb 24, 2009 6:59 pm
Location: RI
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby thomthom » Tue Jun 26, 2012 12:33 pm

I put together a little article on how I use the Dirt map to add details and shading enhancements: http://www.thomthom.net/thoughts/2012/0 ... rtmapping/
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17915
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby andybot » Tue Jun 26, 2012 3:07 pm

thomthom wrote:I put together a little article on how I use the Dirt map to add details and shading enhancements: http://www.thomthom.net/thoughts/2012/0 ... rtmapping/


:thumb: Thanks for that! I like the idea of extruding the edges down to control where the dirt effect happens.
User avatar
andybot
Premium Member
Premium Member
 
Posts: 1063
Joined: Fri Jul 16, 2010 5:10 pm
Location: Charlottesville, Virginia
Name: Andy
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby denyerec » Tue Jun 26, 2012 3:09 pm

That's brilliant, thankyou all kindly for your help!
denyerec
 
Posts: 4
Joined: Tue Jun 19, 2012 4:27 pm

Re: Help required: VRay Dirt with diffuse bitmap texture map

Postby panixia » Wed Jun 27, 2012 9:12 am

thanks tomhtom for the useful "adding edges" trick. you are plain genius.
oh and very thanks for quad face tools. it actually made my life a little bit better! :thumb:
User avatar
panixia
 
Posts: 312
Joined: Tue Mar 15, 2011 1:22 am
Name: Marcello
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: other
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to V-Ray

Who is online

Users browsing this forum: Google Bot, make and 7 guests