Page 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 58

Thread: Creating My own laser show software

  1. #31
    Join Date
    Mar 2012
    Location
    Urduliz, Spain
    Posts
    65

    Default

    Hi James

    Thanks for your time, conversion from gif to ILDA I think it is solved using LASERCAM. AS i understood from Drlavas words two weeks ago, I can create a video with those .gif files and use LASERCAM to export the video file to ILDA.

    My main problem now is How to call or use DrLavas SDK from C#.NET. Right now Im able to build a bridge to call C++ functions from C#.NET by using DLLIMPORT, the problem is that I made some type conversions with pointers and the code is not working properly, it detectcs ETHERDREAM , sends the paint order usin write_frame function, but it paints strange things, not what I really send.

    I also tryied the simplest way referencing DrLavas DLL, from my C#.NET project but it comes out with an error. So Im looking for another way to do this or any idea of what Im doing wrong with the type conversions.

    Thanks

  2. #32
    Join Date
    Feb 2009
    Location
    East Coast of Southern Virginia
    Posts
    554

    Default

    Wow.. that is a long list. Sounds like you want to make a pre-programmed live show software. If you want to do the tracing yourself... somewhere on this forum... there is source code for a live tracer in VB. Also in the My Laser Soft thread I think there is some source code for a tracing application there as well.

    You may want to take advantage of storing the animations in vector format using Serialization. I think C# has this and it is easy to implement. I program in Non.NET C++ so you will have to excuse my small knowledge of C#.NET. If you can;t find that then just store it in a text file. The header files I made for my program are just for compilation in C for a microcontroller to make in firmware patterns and are based off of a streaming DAC protocol.

    On the interfacing C# to the UDAC library I found a couple of online sources that may help:

    http://stackoverflow.com/questions/5...oth-directions

    http://stackoverflow.com/questions/7...arp-with-c-dll

    http://stackoverflow.com/questions/1...sharp-to-a-dll

    I am just poking in the dark with a candle on that one however I think the 1st link will probably be the most helpful.

    And my biggest recommendation for the whole project is... stick with C++ ... it is better just like butter (don't use margarine).

    Good Luck!

  3. #33
    Join Date
    Mar 2012
    Location
    Urduliz, Spain
    Posts
    65

    Default

    Quote Originally Posted by cfavreau View Post
    Wow.. that is a long list. Sounds like you want to make a pre-programmed live show software. If you want to do the tracing yourself... somewhere on this forum... there is source code for a live tracer in VB. Also in the My Laser Soft thread I think there is some source code for a tracing application there as well.

    You may want to take advantage of storing the animations in vector format using Serialization. I think C# has this and it is easy to implement. I program in Non.NET C++ so you will have to excuse my small knowledge of C#.NET. If you can;t find that then just store it in a text file. The header files I made for my program are just for compilation in C for a microcontroller to make in firmware patterns and are based off of a streaming DAC protocol.

    On the interfacing C# to the UDAC library I found a couple of online sources that may help:

    http://stackoverflow.com/questions/5...oth-directions

    http://stackoverflow.com/questions/7...arp-with-c-dll

    http://stackoverflow.com/questions/1...sharp-to-a-dll

    I am just poking in the dark with a candle on that one however I think the 1st link will probably be the most helpful.

    And my biggest recommendation for the whole project is... stick with C++ ... it is better just like butter (don't use margarine).

    Good Luck!
    Thanks Chris

    I will read more about serialization, really dont know what it is.

    About C#, i will take a look to the links, and think seriously about doing all in c++.

    I will post my results and decisions, thanks again

  4. #34
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    The big thing with C# is that it must be completely aware and in control of all of your memory objects. It does memory management and garbage collection.

    C# is a morph of MS Visual BASIC and MS Visual C++. There is a whole list of really neat things that had to be stripped out of C++ to make it work.

    I got a book specifically written to describe how to work C++ code into a C# project. It isn't pretty. I gave up and went with minGW and Dev C++.

    "And my biggest recommendation for the whole project is... stick with C++ ... it is better just like butter (don't use margarine)."

    That is true and hilarious!

    James.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  5. #35
    Join Date
    Mar 2010
    Location
    Raleigh, NC
    Posts
    2,308

    Default

    Quote Originally Posted by james View Post
    The big thing with C# is that it must be completely aware and in control of all of your memory objects. It does memory management and garbage collection.

    C# is a morph of MS Visual BASIC and MS Visual C++. There is a whole list of really neat things that had to be stripped out of C++ to make it work.

    I got a book specifically written to describe how to work C++ code into a C# project. It isn't pretty. I gave up and went with minGW and Dev C++.

    "And my biggest recommendation for the whole project is... stick with C++ ... it is better just like butter (don't use margarine)."

    That is true and hilarious!

    James.
    Ignorant post. You shouldn't post about languages that you don't know.

  6. #36
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I offer facts. You offer your opinion. There are mechanisms in C# that exist specifically for the purpose of using C++ code in a C# project. All of it is about working the C++ objects into the memory management of C#.

    This is because people who program in C# are not careful enough to do their own proper memory management.
    Last edited by james; 07-24-2012 at 11:20.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  7. #37
    Join Date
    Mar 2010
    Location
    Raleigh, NC
    Posts
    2,308

    Default

    Quote Originally Posted by james View Post
    I offer facts. You offer your opinion. There are mechanisms in C# that exist specifically for the purpose of using C++ code in a C# project. All of it is about working the C++ objects into the memory management of C#.

    This is because people who program in C# are not careful enough to do their own proper memory management.
    You haven't stated any facts.

  8. #38
    Join Date
    Apr 2010
    Location
    USA
    Posts
    218

    Default

    Quote Originally Posted by james View Post
    C# is a morph of MS Visual BASIC and MS Visual C++.
    This is just not true at all.

    C# and the .NET CLR are Microsoft's own language/runtime in the style of Java, with a few different design decisions and improvements. Whether you think that's good or bad is a separate issue, but don't call it something it's not...

  9. #39
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    C# is a language that came out of the development of the Common Language Infrastructure. That was one common code base addressable by Visual BASIC, Visual Java and Visual C++. That was the whole point.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  10. #40
    Join Date
    Mar 2012
    Location
    Urduliz, Spain
    Posts
    65

    Default

    Quote Originally Posted by JohnYayas View Post
    You haven't stated any facts.
    Hi John

    So whats your recomendation, still with C++ o try something else with C#.

    I have spent nice amount of hours trying to make Dr Lavas Library paint on C#. As I told before I got a working version in C# using DLLIMPORT, I send I circle but it paints a bunch of lines with out any sense, I think the main problem is some type conversions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •