Shutter

john's Avatar

john

24 Jul, 2017 02:13 AM

I was curious how a camera's diaphragm shutter works, so decided to make one in NodeBox.

NodeBox is great for projects like this because it allows you to feel your way through a problem, trying different blade shapes, positions, polygons, sizes, rotation points, etc. until you get it just right.

The attached network contains two different versions, both set up for animation. The first shows the entire shutter mechanism. You can adjust the lens size and number of blades then start the animation to see the aperture opening and closing. The animation starts with a closeup on the lens itself then pulls back and, when everything is in view, adds more blades.

The second network demos two subnetworks, shutter and lens_clip, that are polished and ready for you to use In your own projects. The shutter subnetwork lets you set a lens size and position, aperture from 0 to 100, and number of blades from 5 to 12. Len_clip takes whatever shape or shapes you wish to "photograph" and clips them to the outline of the shutter. The demo shows the lens following an S-shaped path around a simple mountain and lake scene, opening and closing as it goes.

Feel free to explore both networks to see how they work. There were a few interesting problems to solve like creating the illusion that the blades were interwoven (the bottommost blade covers part of the topmost blade). The clip sub-subnetwork inside lens_clip clips a scene without losing the fill colors. The animation requires only a few nodes but creates a complex, multipart choreography.

Network with screenshots and animated GIFs attached. Comments welcome. Enjoy!

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • shutter.zip 4.74 KB
  • shutter_mechanism_screenshot.png 563 KB
  • shutter_mechanism.gif 1.92 MB
  • floating_shutter_screenshot.png 377 KB
  • floating_shutter.gif 1.03 MB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jun, 2022 05:30 AM
15 Jun, 2022 06:03 AM
06 Jun, 2022 01:07 PM
02 Jun, 2022 11:58 PM
30 May, 2022 07:48 AM

 

24 May, 2022 06:27 PM
20 May, 2022 04:12 PM
05 May, 2022 02:25 AM
03 May, 2022 04:46 AM
01 May, 2022 09:22 AM
18 Apr, 2022 09:01 PM