Hi, I’m looking for code examples of procedurally generated meshes. Specifically to create custom furniture. So things like creating geometry from scratch, moving vertices along an axis (and also moving their UV coordinates to avoid texture stretching), etc.
Is there an open source library that exist? Basically I don’t want to reinvent the wheel and could make use a higher level set of functions.
I have an on-going project about procedural 3D assets. Not focused specifically on furniture, but on everyday items. The only furniture so far is a chair. Tables, wardrobes, beds and other items will be added later this year.
they use threejs + react-three-fiber, check his twitter out, they go into some detail. you would want this combo for visuals, making stuff look good, and for easier access to eco system components and the sheer amount of pre-existing helpers and tools.
i looked through the configurators you linked via X. I wondered if the table configurator (Configurator - Hulo) is Procedural/Parametric as the OP asked? I do not get how they are able to scale the table in irregular shapes without texture distorsion… see images:
if these shapes are cut out of a rectangle i do believe the uvs should remain intact. i have not tried but i don’t see why not. if they do use csg i don’t know. to some extend you can open react dev tools and look into the component tree.
Yes you are right for the top/bottom, but for the edge there would be messed up UVs, alright i’ll dive into it! Thanks for the great ressource, they make awesome configurators
If you use traditional textures, you can update UVs while you update the vertices of the table top.
Alternatively, you can use 3D TSL textures, so that you do not care about any UVs – the shape is “cut out” from infinitely large piece of wood. Here is a demo: