This article came of the back of modelling my office in manchester at DEPT UK. The question arose how can you create nice realistic flooring for a 3D model based off the intertnals of a building? (for the web)
The flooring addons shines through! A free addon for blender and it allows you to procedurally generate flooring. But i hear you ask if its for web how do we use this in GLTF? The standard model file format.
Its super easy, just a couple of querks to realise. Took me 30min to figure what the heck ws going on!
So lets start from the beginning, first off download the flooring addon here.
Now open up blender and delete the basic scene and add a plane so it looks like this:
One you have this the fun begins 🙂
First of go to preferences and install the zip you just downloaded of the addon github repo.
Search for the addon now and check the checkbox.
(as a side note i use a mac and I think they are the same key bindings for windows)
Once this is done you need to press N and the side pannel will show like this:
So go ahead and select the plane as the active object and press convert to floorobject.
From an othographic point of view it should look something like this:
Now press the shading tab at the top and then click to create a new principled material in the nodes tab:
The next bit is to grab some textures which you can get for free by searching for free textures. I got mine from here.
Download a texture and all the maps you need and store in a safe place.
Next go to blenders preferences and make sure the node wrangler is ticked:
Why have we downloaded this? it makes it very easy to load in metallic maps, opacity maps, base color maps and all sorts of other maps, in the node graph.
So now press crt+shift+t. This will open up a window to select the texture maps we just downloaded. Press enter with all the maps selected and volia.
You should have something which looks like this:
So we need to modify the uv’s, the grain of the texture doesnt match the wood shapes.
So select UV random: shuffle and UV rotation 90 degress and you should get the grain the right way:
Or configure it to which ever way you want 😎
Now one thing to make clear which took me 30min to figure out is make sure vertex colours is not selected when exporting the model to GTLF format.
With vertex colours:
Without vertex colours:
Im not 100% sure why this happens, I can only guess that vertex colours are used internally by this addon. Vertex colours basically means a colour is stored for each vertex of the the object and directly into the 3D GLTF model format, and with vertex colours no textures should be required.
Final Thoughts
And there you go you’ve configured and used the flooring addon to generate a GLTF model of a floor in a building model.
You can use this in any building, and having done this two ways, first with a seamless texture and secondly using this addon… the results with the addon are 100% better!
Have fun playing around with it and let me know what things you create ❤️
(P.S. alittle sneak peak at my next project:)