News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu

animated flame

Started by Andy H, June 02, 2015, 03:56:02 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Andy H

Was writing a little example of using custom code to animate profiles in a compound profile loft - and got a bit carried away.
Nothing fancy with the code its just a few If - then statements to change variables.

https://www.youtube.com/watch?v=HPJp7cwkUVE

Don Cheke

Don Cheke
My Blog: One Man's Meanderings

ralfkras

TCV3.1 V12, V14, V18, V20, 2015,2017, 2020
AnimationlabV5
AnimationlabV6
Turbocad CAM

Tim Stewart


Yes, very nice work Andy.
Any chance, however basic the programming, of seeing how it's done?

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

Andy H

#4
Thanks Ralf and Tim.

Tim - I've attached the file in TC V21 format, and added a few comments to the custom code, some of it is just restricting movement as the first time I did it, the flame ended up outside the glass dome  ???

The code just randomly manipulate four of the six circles used for the compound profile of a loft, and alters the intensity of a luminance (assigned to the wick) between two values, one of the circles also has an x/2 just to give some extra variation.

Ignore the 'slashes' in the code - I just usually put them in any code so I can easily see where the notes are, the only odd thing is the light on the wall, which isn't really supposed to look like a circular pattern, it's just the way AnimationLab produced the AVI, and I didn't bother trying to find out why.

Don't laugh too loud at my flame wrapping image (attached). I decided it didn't need to be accurate, just needed a separation between blue lower area and yellow/white upper.

Dean

Brilliant work, Andy and thanks for sharing. I'll have a look. Those rings of light usually appear at low light levels and low resolution. Redsdk is a little better but you're talking really long render times with high sample counts and many other adjustments.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Tim Stewart

Andy,

thanks for posting - always helpful, for anyone wanting to dabble with Animation Lab.
And, it works!  Just needed to reassign the material path to new flame.jpg location.  :)

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200