2023-10-07 at 12:19 am #67389phixateParticipant
I’m trying to build a metal roofing trim customizer. I understand I need to use Shape Keys in Blender for this, but I can’t find any demos advanced enough to show me how to do stuff like what is in the following examples. Can someone please help me find the details I need? I’m not a programmer, so a lot of the documentation I’ve read doesn’t really help me. If I can see an actual app in action (like one of the examples below) I think I can figure it out.2023-10-07 at 4:06 am #67390xeonCustomer
I am sure you know and may have already reviewed the Parametric Model that contains the blend file and V3D project files that can be freely downloaded from the Verge3D Asset Store. It can be downloaded by opening the App Manager and selecting the shopping cart icon within the left-hand menu and searching for Parametric Models Demo. But since you probably have already reviewed this file and have gleaned the information on how to create a parametric project, with shape keys, what exactly is the problem you are having issue with?2023-10-07 at 1:34 pm #67393phixateParticipant
The example is too simple. In the examples I posted above you will see they use mm as a unit of measurement to customize several parameters of 3D models. If I could see the application for one of these examples I could figure out how to do that.
What I’m trying to do is parameterize the different faces of my 3D models and let customers enter their own values in inches. They will be creating their own custom roofing trim from profiles I’ve created to start from.
2023-10-09 at 5:58 pm #67418xeonCustomer
- This reply was modified 4 months, 3 weeks ago by phixate.
There are a few ways you can do this.
The first thing we have to establish is that the objects are to scale.
When you create your ShapeKeys. The values for morphing are 0 to 1. You need a way for the user to input a value representative of your scale and then morph the object.
For the sake of simplicity… let’s take the default cube that has a height dimension of 2 units in the Z axis. If the cube is duplicated and moved to the right off of the world origin so that it does not overlap the first cube. We now have two cubes. Grabbing the vertices of the second cube we move them in the z direction 4 units. This makes the overall length of the cube 6 units.
We create the shape keys on the first cube. So now when the first cube shape key Values are at 0 the cube height is 2 and when the shapekey values are 1 the cube height is 6.
Export this to the App Manager for a project of your naming.
Now there are a lot of ways to create the HTML but for this example…I am keeping it simple and just using basic puzzles.
The first thing you need is a set of puzzles stored in your Puzzle Library in the App Manager. Its called Map Range. You can access it in the App Manager in the small icons under the puzzle list….looks like a small book (bottom left).
You will then need to create an action that will allow input, map the range and morph the cube. See attached image.
Thats it really.
Whether its 2 feet, 2 inches, 2mm…doesnt matter….because its scaled the units are not important but should be displayed.
Attachments:You must be logged in to view attached files.2023-10-09 at 6:10 pm #67420kdvParticipant
The first thing you need is a set of puzzles stored in your Puzzle Library in the App Manager. Its called Map Range.
For a little more simplicity.
Puzzles and JS. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.2023-10-27 at 7:30 pm #67990omrtoParticipant
Thanks to Xeon I was able to put together a working app for my company’s needs. He showed me how shape keys work with morph targets driven by HTML inputs. I took his example and ran with it. I believe he is planning on creating a tutorial at some point, so keep an eye on his website if you’re interested. If I find time I might do the same.
- You must be logged in to reply to this topic.