UV Mapping & displacement in Sketchup
Posted: Thu Jul 17, 2014 1:46 am
I had a few issues with this, so thought I'd do a simple tutorial to possibly help others out.
This is a really simple run through, and I'm far from the expert, so if anyone notices anything I've done wrong or claimed incorrectly, let me know!
Ok then, essentially we're looking to learn how to control the orientation of your displacement map within Sketchup so that you can change the way your displacement maps look and work with your surface texture.
STEP 1 To start then, we have Derek stood by a square of concrete. Lucky Derek. Its just a simple plane with a texture applied in the material editor. STEP 2 Now, select the plane, press G to open the component dialogue box and make it a component. Call it whatever you like. Now, double click on your new component and right click the concrete and select 'EDIT ACTIVE MESH' under the SKIndigo heading. You get this dialogue box pop up: Max subdivisions runs from 1-9 and governs your displacement quality. I tend to set mine to 9 as it gives me the best results, although I hear that this might be overkill. Set this value to whatever works for you. Leave Curvature threshold, pixel threshold etc as their defaults.
Now, below those boxes we have UV Mapping settings. It will be displaying a UV set of SU (Sketchup) with a UV Texture of Sketchup. This means it will use whatever you have set as the displacement map in the SU UV set in the material editor.
We want to change this UV texture and mapping to something else, so that our concrete texture renders but displaces with the properties of a different UV texture.
Change the UV set to 1
In UV Texture, click Add New and in the window that opens, navigate to the texture you want to use to displace. I'm using a black and white line pattern to make this tutorial really obvious.
Select your texture and the concrete texture we had on our plane disappears and the Lines texture appears. STEP 3 If you select this face with the Line texture applied, you can right click it, navigate to 'Texture' and then position and rotate as you would with any other Sketchup texture. I've shrunk mine to make the lines smaller.
If you change the UV set and UV mapping texture back to SU and Sketchup then the Lines texture goes away and the concrete texture returns.
STEP 4 Right click the concrete texture, select 'Edit' under SKIndigo and in the SKIndigo material editor that appears set your displacement settings.
Click the '....' box to assign a texture.
Click 'New' and navigate to the Lines texture. Note that in this drop down box you can have the textures used in your UV sets so you can switch between them easily.
The UV set here with by default be set to Sketchup (SU). Change this to match the UV set you just made in step 2, in our case UV set 1.
Click Accept.
Done! Your texture is now set to displace using the texture map you've set up in UV set 1 Rendered using UV set 1 Now you can repeat the steps to set up other UV sets (to a maximum of 4 I think).
In the 'Edit Active Mesh' dialogue I've changed UV Set to 2, left it as the Lines texture and the rotated this texture 45 degrees. Go back into your material editor, and the displacement material settings, change the UV set to 2 Render and voila, its now displacing in line with the rotated texture.
-----------------
Hope that makes sense and helps some people out.
Cheers
This is a really simple run through, and I'm far from the expert, so if anyone notices anything I've done wrong or claimed incorrectly, let me know!
Ok then, essentially we're looking to learn how to control the orientation of your displacement map within Sketchup so that you can change the way your displacement maps look and work with your surface texture.
STEP 1 To start then, we have Derek stood by a square of concrete. Lucky Derek. Its just a simple plane with a texture applied in the material editor. STEP 2 Now, select the plane, press G to open the component dialogue box and make it a component. Call it whatever you like. Now, double click on your new component and right click the concrete and select 'EDIT ACTIVE MESH' under the SKIndigo heading. You get this dialogue box pop up: Max subdivisions runs from 1-9 and governs your displacement quality. I tend to set mine to 9 as it gives me the best results, although I hear that this might be overkill. Set this value to whatever works for you. Leave Curvature threshold, pixel threshold etc as their defaults.
Now, below those boxes we have UV Mapping settings. It will be displaying a UV set of SU (Sketchup) with a UV Texture of Sketchup. This means it will use whatever you have set as the displacement map in the SU UV set in the material editor.
We want to change this UV texture and mapping to something else, so that our concrete texture renders but displaces with the properties of a different UV texture.
Change the UV set to 1
In UV Texture, click Add New and in the window that opens, navigate to the texture you want to use to displace. I'm using a black and white line pattern to make this tutorial really obvious.
Select your texture and the concrete texture we had on our plane disappears and the Lines texture appears. STEP 3 If you select this face with the Line texture applied, you can right click it, navigate to 'Texture' and then position and rotate as you would with any other Sketchup texture. I've shrunk mine to make the lines smaller.
If you change the UV set and UV mapping texture back to SU and Sketchup then the Lines texture goes away and the concrete texture returns.
STEP 4 Right click the concrete texture, select 'Edit' under SKIndigo and in the SKIndigo material editor that appears set your displacement settings.
Click the '....' box to assign a texture.
Click 'New' and navigate to the Lines texture. Note that in this drop down box you can have the textures used in your UV sets so you can switch between them easily.
The UV set here with by default be set to Sketchup (SU). Change this to match the UV set you just made in step 2, in our case UV set 1.
Click Accept.
Done! Your texture is now set to displace using the texture map you've set up in UV set 1 Rendered using UV set 1 Now you can repeat the steps to set up other UV sets (to a maximum of 4 I think).
In the 'Edit Active Mesh' dialogue I've changed UV Set to 2, left it as the Lines texture and the rotated this texture 45 degrees. Go back into your material editor, and the displacement material settings, change the UV set to 2 Render and voila, its now displacing in line with the rotated texture.
-----------------
Hope that makes sense and helps some people out.
Cheers