I could probably reduce the WRL file size but, I see no reason to use WRL’s. Yes, the WRL images are a bit nicer but the WRL is not usable beyond photos.
Thus, I’ll stick with STEP.
For the 10kΩ resistor;
The Step file is 41kb
The Wrl file is 1.4Meg
To be able to use it in kicad you then need not only one symbol and 3d-model per resistor, but also a dedicated footprint right? or is there any consistent way around that because that sounds like a lot of pain in managing
Thank you ‘all’ for interest and I welcome ideas and questions…
There are a few ways to handle doing this and I haven’t decided which but, thus far, this is what I’ve been thinking:
• Plugin or Stand-Alone App? (either but, most likely Stand-Alone that can also be run from a Kicad Plugin)
• User makes Footprint (or I will provide one ?) but it will use my Step file
• GUI Pop-up panel with Check-Boxes to select Colors for each Color-Band. User selects the colors and clicks button to change the colors on the baseline resistor used in the Footprint (and it will be reflected in Kicad’s 3D-Viewer)
My intention is to have the code change the colors of resistor in the placed footprint rather than to change colors of library step files (that will reduce the quantity of step files to only a few baselines) so, only the Step used in the footprint will contain color change
Haven’t spent much time on this yet but I have succeed in identifying what I need to do with the Step files… image below shows my prototype file for testing (posted only to show I’ve been doing something beyond thinking…)
Below is the current layout (prelim, especially the Blue Background ) - how important is it to Display the Band’s Value? (colors are good enough for me but I’ll entertain adding Values if enough interest…)
Hello, I am not sure if this has already been proposed:
If I want to show a THT-DIP IC WITH socket I select BOTH 3D models and superimpose them virtually plugging the IC into the socket.
For resistors one might use 10 or more 3D color rings scaled over the desired resistor shape ? These rings would cover all codes and all cylindrical resistors !?
Thank you for the compliment, makes a dull monday much better !
I imagined it should be possible using the X/Y/Z scaling possibilities in KiCad. I use them to modify ELKOs in 3D. Its not always perfekt but for color rings it might be good enough ?
Again, it IS manual work, but on the other hand, THT-resistors aren t THAT many today.
Several creative ideas/approaches to accomplishing Colored Rings…
For my approach, I chose to simply make Footprints with a single ‘edited’ STEP file and to Edit the step file via an App I’m coding.
That way, no worry about different diameters, scaling or body lengths and some resistors have non-uniform end-swells.
I’ve gone through several iterations and coding is in process (not rushing so, a few more days and several more cups of coffee…).
But, below is the current GUI. I decided there is no need for the App to make new Footprint; using a step with colored bands is straight forward and Users will be able to simply change the 3D-step in their existing or, new footprints. And, can do it from a Kicad Plugin or Stand-Alone App.
UPDATED: Added Video of Preliminary App - next step is to finish the STEP file work and perhaps add the Resistance Value to lower-left corner (tbd)…
I’ve considered this topic aswell, but my only conclusion was: if I’m going to do this at all, I’m going to do it big, once and for all. The color-banded multi-pitched multi-bodysize resistor STEP model generator to rule them all.
Then I thought it through, and quickly parked the idea in the fridge again
I might be missing something, but why create an app to manually create/change color bands? With the emphasis on manual. Is this for ‘just a few values’ ( I know how that goes…) or in order to generate massive libraries? Or to avoid using an MCAD tool?
• User Creates a Footprint the usual way and adds a 3D STEP file to the Footprint the usual way.
A Baseline STEP that I will provide will be the Only one that will work (because I add code-hooks)
• Then, User changes the Colors of the Baseline and saves as New Step
(or, saves-as if just changing an existing colored STEP. Saving will enable saving with custom name such as, “R_20kΩ_qtrW”
User can build a Library of the colored Baseline’s with desired names…
Pretty simple and I’ve already made the Kicad Plugin but, will prefer to have the Plugin call the Stand-Alone App, rather than run the full python code (will need changing only one line of plugin-code)…
Though preliminary, I generated a Stand-Alone App and set the Plugin to call it… just to give the idea to kick around
Is it possible to read the resistance value and make bands accordingly? Options: manual, like here, and automatic like I suggested. Then of course there are more options: how many color bands there are in the real physical resistor.
Yes, it’s very possible to ‘read’(then parse) resistance input and use it for selecting the Bands/Colors and I thought about including it, as well as displaying the selected values. In fact, there are a number of things I considered but…
I decided to not make a career of this project - I wanted to keep it simple. My only goal was/is to change the colors in a straight-forward way and avoid code that may keep me re-visiting various user’s ‘system’ problems.
In fact, though I hope the Stand-Alone app will not have problems on Windows and Linux; I no longer have machines with those systems so, I can’t go through the full process of testing. If it works for some folks and not for others, I’m okay with that.
But, I may use the Lower-Left corner for an Input and Display field… depends on the amount of Caffeine on a given day
I didn’t intend to do a continuous update but, now that I’m in the near-final stretch, I wanted to get feedback…
I decided to hold off on 4 color bands and value entry box. But, as a compromise I added a display of selected values as follows:
Given that from 0Ω to 999Ω, three Color-Band values will be needed and, beyond 999, meaning from 1,000 (1k) two bands will be for the value and third band will be multiplier value.
I may add comma’s where appropriate but, I like the clean look… I’ll consider feedback…
Code is 99% done (just some cleanup and tweaks based on adding Parts (see below). Then, the drudgery of posting it along with assorted comments/help… Probably will post at GitHub.
It’s been working well for about one week and I’ve had time to dial-in what I want and don’t want (my personal version does much more than what the Final-Released version will do). It’s now down to the Parts shown below and…
If you have a request for a Part that will need coloring (such as the bands on resistors and led-color), now would be a good time to make the request.
I decided against enabling users from using .STEP files that I didn’t create (I can only imagine the nightmare)…