Hacking Studio: Creating a Star Trek Transporter Effect
/Today’s guest article comes from BrickNerd patron Wayne Tyler. We’ve featured Wayne’s work numerous times, including his guide to getting better lighting in BrickLink Studio. Today, he shares how a search for the perfect lightsaber effect led him somewhere unexpected.
A Four-Year Voyage
“Space: the final frontier. These are the voyages of the starship Enterprise. Its five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.” - Opening voice-over from Star Trek: The Original Series
Join me on a four-year voyage from Star Wars to Star Trek using BrickLink Studio. It started with a quest for a convincing lightsaber and took a few unexpected turns along the way.
I am a child of the 1960s, so my science-fiction world revolved around the space race, 2001: A Space Odyssey and Star Trek. Though I watched the first Star Wars movie a decade later, it didn’t grab me the way Star Trek had. However, I was mesmerized by its visual effects, which led to a career in the computer graphics and video game industries.
Darth Vader and Obi-Wan Kenobi’s lightsaber duel from Star Wars: A New Hope.
Star Wars had been a LEGO mainstay since 1999, when 7101 Lightsaber Duel was one of the first sets released. My own love for LEGO began in 2016 with a LEGO Star Wars Advent calendar.
Then, in 2020, I discovered BrickLink Studio. I don’t know how it came up, but I couldn’t create a convincing lightsaber effect with the standard software. By 2022, I had learned enough about creating custom colors for Studio’s renderer, Eyesight, to begin the chase.
Last year in 202), I got the closest yet with this.
Good Luke, Bad Luuke. Studio render, no post-processing.
That lightsaber custom color also turned out to be useful elsewhere, including a bit of spaceflight closer to home.
“Light this candle!” A nod to Alan Shepard’s Mercury flight, rendered in BrickLink Studio without post-processing.
I liked how the effect looked in stills. Getting it to look as good in motion was another matter, so I kept looking.
It’s good, but it only works well in still frames, so I keep looking for other approaches that will work in animation, too. That search led me to a material for Blender 2.79 on Blend Swap. The one at lower right looked like a promising starting point for another try at a lightsaber custom color.
Energy Sphere & Dimension by DoiMoi.
When Things Went Sideways
Why Blender 2.79? Studio’s Eyesight renderer is based on Blender’s Cycles render engine and was developed in 2017 and 2018. Blender 2.79 came out in 2017, with 2.80 following in 2019, so I figured a shader node setup from those versions should work with Eyesight.
I loaded the file in Blender 2.80 and used a custom shader graph exporter to produce a Studio-compatible .xml custom color file.
Original Blender shader graph for the Energy Sphere & Dimension Bong Bóng material.
After adding the new settings to Studio’s CustomColorsSetting.xml file, I applied the color to a test object (the Hau mask, part 32505) and rendered it… which is where things went sideways.
This was so unexpected. It looked nothing like the Blender render. I spent several hours trying to troubleshoot what had gone wrong, but found nothing amiss in the translation from Blender to Studio. Along the way, I simplified the shader graph by deleting the mapping nodes, since adjusting them didn’t seem to affect the Studio render.
odified Blender shader graph for the Energy Sphere & Dimension Bong Bóng material, with the mapping nodes removed.
Science and Magic
As a member of the Stud.io Discord put it, “That’s the difference between science and magic. Both control, only science understands.” I didn’t understand what was happening, so I opted to try my hand at magic and see if I could control the look.
The first thing I wanted to change was the dividing line between the blue and the sparkles on the mask. The blue was uninteresting, but the sparkles looked promising.
In a Studio custom color .xml file, you can control texture placement in two ways. You can plug a separate mapping node into a texture node, or include the mapping information in the texture node’s own parameters. This led to another unexpected discovery. The standalone mapping nodes hadn’t affected the placement in my tests, but including the mapping information directly in the Gradient Texture node did!
Comparison of a standalone Mapping node and a Gradient Texture node with mapping parameters included in the Studio custom color .xml file.
Now I could shift the dividing line by adjusting the tex_mapping.translation X value. Several iterations later and…
A Little More Twinkle
This was definitely worth pursuing, but I wanted more of a twinkling effect. Since the custom color is volumetric, I wondered what it would look like from inside an object. I placed the camera inside a sphere with the sparkle custom color and rotated the sphere once over four seconds.
You can see the sparkles moving from right to left. I was hoping for something that looked more random, so I sped up the rotation to 5.7 revolutions in the same four seconds.
I got what I wanted! Now remember, I’m a child of the 1960s, so this reminded me of the snow you got on an analog TV after a station went off the air for the day. My first thought was to use it as an electrical effect.
I tried applying the sparkle color to a variety of flexible objects in Studio. Most didn’t give me the electrical arc I was hoping for, but a string (part x127c10pb01) looked promising.
When I applied the custom color, now called Bong Bóng Sparkle, it produced this still frame.
Well, this was the look I wanted. Animating it was another matter. The rotating sphere had worked for the twinkling effect, but I needed another way to make the electric arc flicker in place.
While I was puzzling over that, another possibility came to mind. Could those sparkles work as a Star Trek transporter effect? I made a test using the rotating sphere approach.
Though this doesn’t look great, it suggested that the transporter effect might be possible. I still needed to figure out how to animate the sparkles with a locked-down camera setup.
It took another day to trip over the approach that, in retrospect, should have been obvious at the beginning. If changing the tex_mapping.translation X value could move the dividing line, it could also move the sparkles. By setting a new X value for each rendered frame, I could make them appear in different places.
Using this method, I created a ten-frame animation of the electric arc and looped it. That was the effect I’d been looking for.
Building the Transporter
The LEGO Icons 11385 Star Trek: U.S.S. Enterprise NCC-1701 took me straight back to my youth, so I bought it on day one. Actually, I have no space in the house to display it (space is, after all, the final frontier), but folks like me are the reason The LEGO Group created the set. I couldn’t resist.
Luckily, two events coincided. First, the set showed up on my doorstep the first day it became available. With the instructions in hand, I could build the transporter section digitally in Studio. Unfortunately, many of the new parts were missing from Studio’s parts library.
Second, a modeler who goes by evilspyre had already created the missing pieces. They frequently post parts for recently released sets on the BrickLink Studio forums, where I found this message: “I made the 51 missing parts for 11385-1 - Star Trek: U.S.S. Enterprise NCC-1701 Bridge.” That was exactly what I needed to get started.
The 51 missing parts for 11385-1, Star Trek: U.S.S. Enterprise NCC-1701 Bridge, by evilspyre.
I assembled the transporter section using the set instructions and evilspyre’s added parts, then made a few modifications for rendering. I lengthened the walls on each side, placed dark red tiles underneath the build and added two small ceiling spotlights above the transporter pads. A large luminous plate over the build provided additional lighting.
Transporter section setup in Studio with extra walls and an overhead lighting baseplate.
With everything in place, I could render Kirk and Spock on the transporter pads. Now I could put the sparkle effect to work.
Energize!
To create the transporter effect, I needed three sets of renders.
The transporter section with Kirk and Spock on the pads.
The same section without the minifigs.
A ten-frame animation with Bong Bóng Sparkle applied to Kirk and Spock.
Once all the layers had been rendered, it was time to composite them and add audio.
And this is the result.
I still can’t explain why the sparkle effect occurs, but at this point… who cares? Here is the full video, also on Flickr. It looks amazing.
And there you have it. A four-year voyage, not five, but I definitely explored a strange new world and have boldly(?) gone where no one has gone before. I’m still searching for a better lightsaber custom color, though.
What sci-fi effect would you try to recreate in BrickLink Studio? Let us know in the comments below!
Do you want to help BrickNerd continue publishing articles like this one? Become a top patron like Paige Mueller, Rob Klingberg from Brickstuff, John & Joshua Hanlon from Beyond the Brick, Megan Lum, Andy Price, Lukas Kurth from StoneWars, Wayne Tyler, Dan Church, Roxanne Baxter, and Marci Hollingsworth to show your support, get early access, exclusive swag and more.
