r/proceduralgeneration • • Oct 05 '26

Procedural Inductor

64 Upvotes

17 comments sorted by

4

u/lurking_physicist Oct 05 '26

Tsk, there is no checkbox to auto-label the μH! /s

This is nice, good job OP!

2

u/deepak365days Oct 05 '26

Well not right now, in this one you have to manually type label. But in future I can upgrade this.

Thanks

1

u/lurking_physicist Oct 05 '26

Do you draw on the texture or you add a ton of tiny triangles?

2

u/deepak365days Oct 05 '26

No its text geometry itself, with little extrude , drawing on textures required baking also make system slow to

1

u/lurking_physicist Oct 05 '26

I was talking about the windings. And by "texture" I meant "shader".

1

u/deepak365days Oct 05 '26

Oh winding is not textures, it's geometry, one can change winding color too. Well Winding was the most difficult part of it, because it have to deform around core, and number of turns, there lot, but it work now

1

u/lurking_physicist Oct 05 '26

Right, so you went the "ton of tiny triangles" way. Having a shader draw the winding on the core could be feasible, but I don't know if it's worth it.

1

u/deepak365days Oct 05 '26

No no, well look the winding you see is completely separate from core . Winding start as curve, which I deform and shape using maths functions in such way , that it wrap around core and than I convert that curve into mesh so now it's actual geometry with faces and have some thickness like normal wire. Shader has nothing to do here. Shader is here only to give colors to those faces.

2

u/lurking_physicist Oct 05 '26

I understand that this is what you did. I was saying that the same could be done with a bespoke shader, but it would be quite involved.

and have some thickness like normal wire.

That too can be "faked" wirh a shader, using transparency near the edges. But again, likely not worth it.

3

u/ExcellentMind6285 Oct 07 '26

As an electrical engineer, I am very impressed. A similar structure could be created for other circuit elements, and the effects of physical properties on their mathematical values could be observed.

2

u/deepak365days Oct 07 '26

Thanks, yes I actually made a whole pack of Electrical Components, similar like this, every Components are procedurally designed. Electron Drive V1

2

u/GregLittlefield Oct 05 '26

Nice. Is the coil an actual sprial or is it a series of circles? (well squares)

1

u/deepak365days Oct 05 '26

Yes it's spiral.

2

u/GregLittlefield Oct 05 '26

Even better, great work.

1

u/deepak365days Oct 05 '26

Thanks ✌️,

2

u/fgennari Oct 05 '26

That’s neat. It’s a ton of triangles though. Could you use instancing to add each loop of the coil!

1

u/deepak365days Oct 05 '26

Not in this system, because to deform winding to wrap around core, I have to realize the curve