The Shop > Software Tools
Playing with Blender For Artists (Bforartists) - Easier way to learn Blender?
sorveltaja:
That sure looks strange. So I thought that how about trying to replicate it in Blender, and the resulting curves look pretty similar.
Blue curves are motion paths, which were used to form curves on the top:
[ You are not allowed to view attachments ]
vtsteam:
The conrod is always vertical in a scotch yoke, but at a varying angle to the piston in a crankpin connection. Except at TDC and BDC. So the vertical distance is shorter in between.
sorveltaja:
Yeah, scotch yoke seems to be easy one to animate/simulate properly, as the location of A (piston/conrod connection point in previous image), can be set to copy B's (yoke) location, by limiting its following behavior to consist only B's Z-axis movement.
To change gears - Although Blender's simulation/physics engine (Bullet) has some major issues with glitches, it can still be used for spotting/avoiding the same (tedious and probably takes too much effort to figure out what seemingly random errors are).
Nevertheless, there may be moments, when simulation runs as expected. An example, where vehicle drives around in circles, having its speed measured:
sorveltaja:
Some of mesh editing tools in blender have weird ways of working.
So far, most annoying is mirroring an object. The tool itself works as one might expect, but the mirrored object always has a negative scale on mirror axis:
[ You are not allowed to view attachments ]
It can be fixed by using 'apply scale' command to reset X, Y and Z scales to positive 1.000.
If the object's scaling is not uniform, it affects modifiers like beveling (which isn't that great in Blender, though). Anyway, I wonder where negative or non-uniform scale can be used without messing things out?
So, once the scale is reset, perhaps because of negative scale value, mirrored object's normals or faces are inverted, which also affects modifiers (such as Boolean operations won't work):
[ You are not allowed to view attachments ]
Next thing to do is to select all faces in edit mode, and apply ‘flip’ or ‘recalculate outside’ command.
Same steps have to be repeated over and over every time. It makes otherwise simple operation rather tedious, so I started to look if there are ways to automate previous steps.
One way is to use output of Blender's info window, which shows history of previous actions:
[ You are not allowed to view attachments ]
Commands can then be copied to Blender's text editor and executed there as a script. Seems to work quite well, with just one click. But to make a button for it to 3D window instead, I asked ChatGPT - that glorified oracle - how that can be done.
It added some python code to make it happen. Commands included are:
- Duplicate object
- Mirror (in this case in x axis)
- Apply scale
- Enter edit mode
- Selection mode face
- Select all (faces)
- Flip normals
- Enter object mode
Although I'm not much of a programmer, I was able to figure out, what kind of code snippet to add to make a script to an installable add-on:
[ You are not allowed to view attachments ]
There are also some other command sequences, that I guess can be handled or 'buttonized' with similar python scripts as well. The script that ChatGPT provided, has comments on what different parts of code does, so it's fairly clear where certain list of commands should be placed.
Navigation
[0] Message Index
[*] Previous page
Go to full version