Displacement
Displacement
Hi!!
How to export a displacement map with blendigo? I don't understand how to use it. I've seen a great job of bBb, in"works in progress".
Thx
How to export a displacement map with blendigo? I don't understand how to use it. I've seen a great job of bBb, in"works in progress".
Thx
Salut Vanessa,
Indigo doesn't do displacement (yet). So you have to displace your object in Blender. It's quite a tedious process and the steps are as follows. I'll take a flat example like a rug or a wall to make things simple:
1) Create a rectangular plane with UVs (for a flat rug I use "unwrap", "project from view") and load your displacement map in the UV window. Tweak the position of the map, tiling and so on until you're satisfied.
2) Create a Blender material for your mesh, go to the texture tab and create an image texture (your displacement map).
3) Go back to the material tab. On the right of the screen you have three bookmarks that say "texture", "map input", and "map to". In map input select UV instead of Orco.
4) Now go back to your plane in edit mode. For nice displacement, your polys need to be as square as possible. So if you have created a 1x2 plane, add an edge loop in the middle so it is made of two rougly square polys.
5) Return to object mode and "set smooth" your object. In the edit panel, selected modifier -> subsurf and choose "simple subdiv." instead of "catmull-clark". Subdivide a couple of time. Now add another subsurf modifier, this time with "catmull-clark", and subdivide again a few times.
6) Now add a "displace" modifier. Where it says "Texture:" enter the name of the texture you applied to your material (generally it's Tex.001). Where it says "local" select "UV" instead. That's very important if you want your displacement map and diffuse map to match.
7) Now you should have spikes all over the place. You need to lower the Strength value for nice displacement (generally something like 0.01 or less).
8 ) If the result is too rough, play with the strength value some more and add more subdivision in your "subsurf" modifier. You can even add a third subsurf modifier, but make sure it's always above the "displace" modifier" in the stack (you can move your modifiers around by clicking on the little arrow buttons).
9) Check the polycount of your object. "Nice" displacement, depending on the map, requires something between 65,000 and 300,000 polys. As a rule, the smaller the details of the map, the more polys you will need. If you're displacing pretty rough objects like stone cladding, choose a lower subdivision level and add small details with a bump map. It works fine.
10) Now your object is so high-poly that you would probably won't be able to export it as it is. What you need to do is cut this mesh into several objects so the meshes are smaller and Blendigo doesn't choke on exporting a huge mesh. If you look at the rug in my interior image, it was actually eight different objects. In order to do that nicely, use the top view (assuming your plane is flat) and go into edit mode with the "face select" option. Then highlight about half the faces of your plane. Back into object mode, duplicate your object, then go back into edit mode and delete the faces you've highlighted (very important: do not delete the vertices or it will make a hole between your two objects). Go back to object mode, select the second copy of your object, go into edit mode, in the "select" menu pick "inverse", then delete those faces. Now you've got two objects that appear as one. You should do this a couple of times so you end up with six to eight different objects.
Another way to lighten the geomtry if you're doing a huge brick wall for instance is to displace one small plane corresponding to one tile of your texture, then create instances of this plane (using Alt+D in object mode) and position them exactly next to each other so that the transition between them is seamless. Using instances means Blendigo will export all the objects into Indigo but only one mesh, which saves a lot of memory. That's how I did my brick wall in the interior image and the pebbles in the bathroom.
So, that pretty much sums it up. Let me know if anything's not clear.
Indigo doesn't do displacement (yet). So you have to displace your object in Blender. It's quite a tedious process and the steps are as follows. I'll take a flat example like a rug or a wall to make things simple:
1) Create a rectangular plane with UVs (for a flat rug I use "unwrap", "project from view") and load your displacement map in the UV window. Tweak the position of the map, tiling and so on until you're satisfied.
2) Create a Blender material for your mesh, go to the texture tab and create an image texture (your displacement map).
3) Go back to the material tab. On the right of the screen you have three bookmarks that say "texture", "map input", and "map to". In map input select UV instead of Orco.
4) Now go back to your plane in edit mode. For nice displacement, your polys need to be as square as possible. So if you have created a 1x2 plane, add an edge loop in the middle so it is made of two rougly square polys.
5) Return to object mode and "set smooth" your object. In the edit panel, selected modifier -> subsurf and choose "simple subdiv." instead of "catmull-clark". Subdivide a couple of time. Now add another subsurf modifier, this time with "catmull-clark", and subdivide again a few times.
6) Now add a "displace" modifier. Where it says "Texture:" enter the name of the texture you applied to your material (generally it's Tex.001). Where it says "local" select "UV" instead. That's very important if you want your displacement map and diffuse map to match.
7) Now you should have spikes all over the place. You need to lower the Strength value for nice displacement (generally something like 0.01 or less).
8 ) If the result is too rough, play with the strength value some more and add more subdivision in your "subsurf" modifier. You can even add a third subsurf modifier, but make sure it's always above the "displace" modifier" in the stack (you can move your modifiers around by clicking on the little arrow buttons).
9) Check the polycount of your object. "Nice" displacement, depending on the map, requires something between 65,000 and 300,000 polys. As a rule, the smaller the details of the map, the more polys you will need. If you're displacing pretty rough objects like stone cladding, choose a lower subdivision level and add small details with a bump map. It works fine.
10) Now your object is so high-poly that you would probably won't be able to export it as it is. What you need to do is cut this mesh into several objects so the meshes are smaller and Blendigo doesn't choke on exporting a huge mesh. If you look at the rug in my interior image, it was actually eight different objects. In order to do that nicely, use the top view (assuming your plane is flat) and go into edit mode with the "face select" option. Then highlight about half the faces of your plane. Back into object mode, duplicate your object, then go back into edit mode and delete the faces you've highlighted (very important: do not delete the vertices or it will make a hole between your two objects). Go back to object mode, select the second copy of your object, go into edit mode, in the "select" menu pick "inverse", then delete those faces. Now you've got two objects that appear as one. You should do this a couple of times so you end up with six to eight different objects.
Another way to lighten the geomtry if you're doing a huge brick wall for instance is to displace one small plane corresponding to one tile of your texture, then create instances of this plane (using Alt+D in object mode) and position them exactly next to each other so that the transition between them is seamless. Using instances means Blendigo will export all the objects into Indigo but only one mesh, which saves a lot of memory. That's how I did my brick wall in the interior image and the pebbles in the bathroom.
So, that pretty much sums it up. Let me know if anything's not clear.
Large blocky list xD
If you'd hit Enter a bit more often, it would be far more readable
If you'd hit Enter a bit more often, it would be far more readable
-> add links to the examples and you have your finished tutorial1) Create a rectangular plane with UVs (for a flat rug I use "unwrap", "project from view") and load your displacement map in the UV window. Tweak the position of the map, tiling and so on until you're satisfied.
2) Create a Blender material for your mesh, go to the texture tab and create an image texture (your displacement map).
3) Go back to the material tab. On the right of the screen you have three bookmarks that say "texture", "map input", and "map to". In map input select UV instead of Orco.
4) Now go back to your plane in edit mode. For nice displacement, your polys need to be as square as possible. So if you have created a 1x2 plane, add an edge loop in the middle so it is made of two roughly square polys.
5) Return to object mode and "set smooth" your object. In the edit panel, selected modifier -> subsurf and choose "simple subdiv." instead of "catmull-clark".
Subdivide a couple of time.
Now add another subsurf modifier, this time with "catmull-clark", and subdivide again a few times.
6) Now add a "displace" modifier.
Where it says "Texture:" enter the name of the texture you applied to your material (generally it's Tex.001).
Where it says "local" select "UV" instead. That's very important if you want your displacement map and diffuse map to match.
7) Now you should have spikes all over the place. You need to lower the Strength value for nice displacement (generally something like 0.01 or less).
8 ) If the result is too rough, play with the strength value some more and add more subdivision in your "subsurf" modifier. You can even add a third subsurf modifier, but make sure it's always above the "displace" modifier" in the stack (you can move your modifiers around by clicking on the little arrow buttons).
9) Check the polycount of your object. "Nice" displacement, depending on the map, requires something between 65,000 and 300,000 polys.
As a rule, the smaller the details of the map, the more polys you will need. If you're displacing pretty rough objects like stone cladding, choose a lower subdivision level and add small details with a bump map. It works fine.
10) Now your object is so high-poly that you would probably won't be able to export it as it is. What you need to do is cut this mesh into several objects so the meshes are smaller and Blendigo doesn't choke on exporting a huge mesh.
If you look at the rug in my interior image, it was actually eight different objects.
In order to do that nicely, use the top view (assuming your plane is flat) and go into edit mode with the "face select" option. Then highlight about half the faces of your plane.
Back into object mode, duplicate your object, then go back into edit mode and delete the faces you've highlighted (very important: do not delete the vertices or it will make a hole between your two objects).
Go back to object mode, select the second copy of your object, go into edit mode, in the "select" menu pick "inverse", then delete those faces.
Now you've got two objects that appear as one. You should do this a couple of times so you end up with six to eight different objects.
Another way to lighten the geometry if you're doing a huge brick wall for instance is to displace one small plane corresponding to one tile of your texture, then create instances of this plane (using Alt+D in object mode) and position them exactly next to each other so that the transition between them is seamless.
Using instances means Blendigo will export all the objects into Indigo but only one mesh, which saves a lot of memory.
That's how I did my brick wall in the interior image and the pebbles in the bathroom.
Well... you should try it. It could be, that this isn't that a big problem, as the modifiers work layered...
The original displacement and subdivision modifiers see a(n after subdivision) very highpoly plane. The displacement already is done. THEN, it gets decimated...
Could be completely wrong, in this case, though.. dunno...
And it wont work that nice with meshes, which aren't originally planes...
The original displacement and subdivision modifiers see a(n after subdivision) very highpoly plane. The displacement already is done. THEN, it gets decimated...
Could be completely wrong, in this case, though.. dunno...
And it wont work that nice with meshes, which aren't originally planes...
Re: Displacement
new from Australia, must say good example by BbB!
Buy rugs online in Australia @ 61% OFF SALE.
Who is online
Users browsing this forum: No registered users and 74 guests