xgulism1 / UE_Spice_Demo

A demo project for the Spice plugin for Unreal Engine.
3 stars 0 forks source link

Not issue but bunch of question #1

Open Angelo50 opened 1 year ago

Angelo50 commented 1 year ago

Hi :)

I bought your plugin in the unreal market and tested It works fine

I developped an interactive electronic simulator in Unity which is based on Spicesharp It was not simple to make an interactive silmulator with that but it works no so bad

Anyway, After 5 year of developpement in unity, I decided to try the unreal developpement and felt in love

But, I'm new un unreal and unable to use this csharp library in unreal Then, I discovered your plug in

So my questions:

I'd like to halt, alter, resume etc It seems that for the moment, the number of command is limitated in your plug in Do you confirm or may be , I'm too newby in unreal and missed something

Thanks for your time Angelo.

xgulism1 commented 1 year ago

Hello,

thank you for your feedback!

The plugin depends heavily on Ngspice library. Unfortunately, at the time I was studying the library, I could not find support for interactive modification of the circuit after the start of the simulation.

I have already thought about and tried some workarounds to achieve this kind of behavior, but implementing it in a clean and efficient way would require more time, so I have decided not to support it yet.

I agree that it would be a nice feature to support and I will look into it, but it is not supported at this time.

Thank you, Martin

xgulism1 commented 1 year ago

Hi,

I found the necessary support for the desired functionality and updated the plugin to support Pause/Resume and Alter from Blueprints. There is also a new demo for it.

I also implemented Step command to simulate the circuit in real time. It is not possible to dictate the DeltaTime in Ngspice, but it is possible to run the Ngspice analysis a few steps ahead of the Unreal Engine simulation to make it appear that Ngspice and Unreal Engine time are running side by side.

Hope it helps! Martin

Angelo50 commented 1 year ago

Hi, not yet tested but I saw your video, and it seems to work great. I will try and come back to you. Anyway, thanks a lot for your work Last thing , did you schedult to implement subcircuit (for exemple,to design ne555 etc) I will spend the necessary time this weekend to test your plugin with your changes

If you want to see the kind of simulator I developped in unit and understand What I want to do in unreal, have a look on my chanel: https://www.youtube.com/@proffilangelostudio2499

Angelo50 commented 1 year ago

Hi again, Finally, I have tested forward and you did a great job I have tried to add a ne555 subcircuit and it works I will now try to implement an interface and try to put in place animations with charges etc... (simple ones for starting point) I will then come back to you Thanks again.