Transistorized circuit for LED
the link:
Transistorized circuit for LED
the link:
Very cool.
I like the spiral texture of the resistors. Although you provide the source code, I couldn’t figure out where this comes from?
Hi @vielzutun.ch ,
An axesHelper has a small rectangle box added at a distance from it… then step by step You rotate and displace the axesHelper.
Another axesHelper was used to make the spring, but with a small sphere instead of the small rectangle.
Hope this help!
PS:
For resistive material…
axe[0]=new THREE.AxesHelper(0.001);
axe[0].position.x=-15;
geo[0]=new THREE.BoxGeometry(1,0.2,0.5);
mat[0]=new THREE.MeshStandardMaterial({color:‘#c99’,metalness:0.6,roughness:0.6});
mesh[0]=new THREE.Mesh(geo[0],mat[0]);
mesh[0].position.y=3;
axe[0].add(mesh[0]);
For the spring…
axe[500]=new THREE.AxesHelper(0.001);
axe[500].position.x=-15;
geo[500]=new THREE.SphereGeometry(0.2,32);
mat[500]=new THREE.MeshStandardMaterial({color:‘#999’});
mesh[500]=new THREE.Mesh(geo[500],mat[500]);
mesh[500].position.y=2;
axe[500].add(mesh[500]);
For resistive material…
for(let z=1;z<250;z++){
ango=ango+0.08;
axe[z]=axe[0].clone();
axe[z].rotation.x=ango*2;
axe[z].position.x=-6+(ango/1.65);
res.add(axe[z]);
}
For the spring…
for(let z=1;z<125;z++){
ango=ango+0.18;
axe[z+500]=axe[500].clone();
axe[z+500].rotation.x=ango;
axe[z+500].position.x=20+(ango/5);
spr[1].add(axe[z+500]);
}
Thanks for this enlightenment. That’s quite an unusual way to abuse an axes helper for a different purpose. (And probably not a very efficient one at that). But, nevertheless, one I couldn’t have come up with myself.
I’m still studying about a computer generated data texture of a mechanical thread, to better visualize screws and nuts.
I had this idea because I didn’t want to insert .obj or other meshes, or even textures on meshes.
In this way, with a large number of steps (1000 or more), we can create wraps or springs with good quality.
Thank You for answering
Good 3D Eletronic example, but why put a transistor to controling a a led with 6Volts input ?
Hi @vielzutun.ch ,
I confess that the most difficult part of the code was creating the switch, with two quarters of cylinders (red and black), with flat mesh covers and overlapping texts.
But, the most enjoyable lines of code were those referring to mouse over and mouse click on objects
Changed the import place
from unpkg to cdn.jsdelivr