[Just for fun] Some LED renderings - Page 1
Forum section: electronics / general

author: kalel
author_rank: Frequent Contributor
timestamp: June 27, 2017, 11:49:37 pm
content: Just a few off topic (well, still electronics related) LED renderings.I designed the LED model loosely, not following any strict criteria (exact size, shape, material color and such), just for fun - and to see how the light patterns would look. Other than that, there's no goal.Even in the low resolution, each image took about 1 hour to render. More time would yield somewhat better image quality and perhaps more realistic results (as more light paths are calculated) - although realism would require exact shapes and material tables from the actual silicone and resin.This is a kind of standard pointed clear LED:This is a kind of clear LED with almost flat end:The same as above, but with a diffused lens:Finally, a slightly higher resolution image using a different rendering technique, with random-ish colors assigned (the dots/light spots are normal - they can either be removed in post processing or as time approaches infinity, they might resolve):

author: matseng
author_rank: Frequent Contributor
timestamp: June 28, 2017, 04:20:07 am
content: Nice! Almost looks better than real LEDs (which are notoriously hard to photograph properly).... ;-)

author: Cubdriver
author_rank: Unknown
timestamp: June 28, 2017, 07:00:12 am
content: Very nicely done! That last one looks like it could be made into a poster.-Pat

author: garboui
author_rank: Regular Contributor
timestamp: June 28, 2017, 09:58:35 pm
content: Very cool! May I ask the software this was done in?

author: kalel
author_rank: Frequent Contributor
timestamp: June 28, 2017, 10:38:10 pm
content: Thanks everyone.Quote from: garboui on June 28, 2017, 09:58:35 pmYes of course, the "model" (not exactly a precise one) was made in Blender, and rendering using a plugin called Luxrender, which offers physically realistic calculations. Everything is open source.

author: kalel
author_rank: Frequent Contributor
timestamp: July 01, 2017, 01:39:47 am
content: After a while of rendering and some post processing to remove noise, I'm sharing this 1920 x 1080 wallpaper image. It's not perfect, but it would take too much time for ever diminishing improvements.Released under public domain CC0 for any legal use.

author: CatalinaWOW
author_rank: Super Contributor
timestamp: July 01, 2017, 01:57:18 am
content: Lovely images. Thanks for sharing.Nothing good comes without a downside though. You do realize that these are going to show up someday as a demonstration of powering LEDs over the air, or perhaps by harvesting micro-vibrations.

author: kalel
author_rank: Frequent Contributor
timestamp: July 01, 2017, 02:17:32 am
content: Quote from: CatalinaWOW on July 01, 2017, 01:57:18 amI thought about attaching an apparent cable, but in most of the images the LED pins are not 100% visible over their entire length. That means, it's possible that they are connected to some power supply in the background. Even these virtual LEDs didn't light up without power (computer power to draw them).

author: Zbig
author_rank: Frequent Contributor
timestamp: July 03, 2017, 10:35:27 am
content: Quote from: kalel on July 01, 2017, 01:39:47 amOnto my smartphone's home screen it goes!

author: kalel
author_rank: Frequent Contributor
timestamp: July 03, 2017, 11:17:15 am
content: Quote from: Zbig on July 03, 2017, 10:35:27 amHappy to hear that!P.S. if someone has any similar ideas for another LED wallpaper (different setup, perspective, perhaps shape), let me know.I'm not using any model libraries (although an open source component library could be used I assume), so if hand making them, it's easier to have as little different components as possible.Also, animations might sound cool, but would only be feasible with an expensive server computer (something with really high CPU power). Otherwise, well, up to a few days per frame * 24 = up to a few months per second.

author: cdev
author_rank: Super Contributor
timestamp: July 05, 2017, 03:20:37 am
content: Ive fooled around with that a bit.Luxrender is quite good with AMD hardware and OpenCL which is a plus. And its fast.

author: kalel
author_rank: Frequent Contributor
timestamp: July 05, 2017, 03:44:09 am
content: Quote from: cdev on July 05, 2017, 03:20:37 amYup, with AMD GPUs you don't have much of a choice (yet) in the industry. There is cycles support, but compile times are huge.However, for some things like in those images, CPU must be used (until some really bright people implement GPU support for the calculations). For simpler scenes, GPU rendering on a cheap GPU can be as fast as CPU rendering on a really expensive CPU.

author: idpromnut
author_rank: Unknown
timestamp: July 05, 2017, 05:04:55 pm
content: +1 for phone wallpaper. Thanks!

author: cdev
author_rank: Super Contributor
timestamp: July 05, 2017, 06:14:10 pm
content: what is the best (free or cheap) platform for rendering optical items (LEDs, other lights/lamps/lenses, reflection by mirrors etc.) realistically?Are there any options besides Blender? I have some lighting design ideas I want to visualize and I don't want to buy (cant afford) any kind of dedicated optics program.

author: kalel
author_rank: Frequent Contributor
timestamp: July 06, 2017, 12:49:32 am
content: Quote from: cdev on July 05, 2017, 06:14:10 pmWith Luxrender and bidir used (especially using the old API), you can get a nice and realistic effect provided materials are setup correctly. Both will calculate light going through the lens you design, and with the old API you can get dispersion (e.g. rainbow) if necessary (although this slows down rendering quite a bit). But if you're looking for a true dedicated simulator, you might want to search for some free / open source light simulation tools.Otherwise, you might be able to get by with Blender, although in every case (regardless of the software used) I expect there will be some effort to get the desired result.

author: Buriedcode
author_rank: Super Contributor
timestamp: July 06, 2017, 01:11:43 pm
content: Although its free and (so I've heard) looked down upon... I started using POVray a few years back after using it for Eagle3D. Mostly to design LED lumineers. I dabbled with it for experimenting with backlights/lightpipes but didn't get that far as its not really 'optical software', plus I was used to nice GUI's rather than just creating a scene with raw code. Somewhat addictive though!I'm not sure if there's a modern equivalent or if POVray is sitll going strong.

author: kalel
author_rank: Frequent Contributor
timestamp: July 07, 2017, 01:12:05 am
content: Quote from: Buriedcode on July 06, 2017, 01:11:43 pmPOVray is nice, although personally I would consider Lux more powerful when it comes to rendering such things. On the other hand, I'm not sure Lux is really integrated into things like Eagle3D, so one way would be to go through something like Blender. Other ways would be more complicated.

author: cdev
author_rank: Super Contributor
timestamp: July 08, 2017, 05:22:05 am
content: It would be cool if somebody would integrate photogrammetry especially using trans-illuminated PCBs into a PCB design program. You could possibly reverse engineer PCBs as well as build a 3D model based on their visual appearance automatically.

author: cdev
author_rank: Super Contributor
timestamp: July 08, 2017, 05:24:29 am
content: Does blender do mechanics or anything of that kind? It does, doesn't it?

author: kalel
author_rank: Frequent Contributor
timestamp: July 08, 2017, 05:28:49 am
content: Quote from: cdev on July 08, 2017, 05:24:29 amI'm not 100% sure what you mean by mechanics, but Blender is not a CAD tool unfortunately. There are tons of extensions, so there might be some which make it more friendly for that usage, but any CAD tool is likely going to be easier.You could design the stuff in some CAD tool and then rendering it with Blender if the tool doesn't come with great rendering features itself.

author: cdev
author_rank: Super Contributor
timestamp: July 09, 2017, 12:08:33 am
content: There is also a program called solvespace which is free, and looks useful for exploring basic geometryhttp://solvespace.com/FEA = finite element analysis?

author: kalel
author_rank: Frequent Contributor
timestamp: July 09, 2017, 10:49:56 am
content: Here are some rectangular LEDs (no realistic model, the same as before just with changed Resin shape).As before, the image is released under Public domain, but this time the resolution is much smaller.

author: kalel
author_rank: Frequent Contributor
timestamp: July 10, 2017, 08:27:06 am
content: Here's a "connected" version in a 'breadboard', with some strange unmarked resistors, no one knows what's inside but they seem to work. The LED is using a diffused shell.It's a bit low res as the previous one. This one took about 40 minutes. As all previous ones I've posted in this thread, the image is public domain.

author: Cubdriver
author_rank: Unknown
timestamp: July 10, 2017, 08:59:03 am
content: Gotta love acronyms/abbreviations, and how context sensitive they can be - FDM to me is Fused Deposition Modeling (a form of 3D printing).-Pat

author: uwezi
author_rank: Unknown
timestamp: July 10, 2017, 09:28:32 am
content: Quote from: cdev on July 09, 2017, 12:08:33 amThe Github file of v2.3 was immediately quarantined by Panda AV on my computer!P.S.: in my case it was the Windows-binary

author: cdev
author_rank: Super Contributor
timestamp: July 10, 2017, 05:22:59 pm
content: The github was quarantined?I use it on Linux..There is a deb for it now, I wonder if I should be concerned about that? Its an interesting looking program that I am hoping to spend more time with soon..