Ponk Output in MadLaser Not Working
  • CosmicBen
    junior Member
    Posts: 4
    Joined: Thu Dec 19, 2024 11:49 am

    Ponk Output in MadLaser Not Working

    by CosmicBen » Thu Dec 19, 2024 11:54 am

    Recently I made a plugin for the PONK protocol in Unreal Engine however I am not able to receive PONK data from MadMapper. I was able to get the data form the test project made in TouchDesigner from the PONK GitHub so I believe my plugin is working correctly. Are there some additional settings I need to adjust in MadMapper to use PONK? So far I have only set the laser output to "Publish to PONK" and the IP address to "127.0.0.1". These seem to also be the same values in TouchDesigner so I believe everything should work. To be safe I also tried restarting the my PC between test to make sure the default PONK port was not blocked.
  • mad-matt
    garageCube team
    Posts: 1534
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: Ponk Output in MadLaser Not Working

    by mad-matt » Fri Dec 20, 2024 7:51 pm

    I think the issue is that MadMapper is also reading packets on 127.0.0.1. Can you set the IP of one of your network interfaces ? That should solve
  • CosmicBen
    junior Member
    Posts: 4
    Joined: Thu Dec 19, 2024 11:49 am

    Re: Ponk Output in MadLaser Not Working

    by CosmicBen » Mon Dec 23, 2024 12:49 pm

    Changing the ip address from any to a fixed IP seems to have helped a bit but unfortunately there are still some problems. It seems like metadata is coming in properly from the datagram socket (my code is mostly copied from the PONK examples) but there does not seem to be any point information. I'm also not sure why MadMapper would use the same local port twice by default, but I suppose that can be worked around with setting the IP. Out of curisosity are there any working examples of PONK output working in MadMapper? I can only find documentation for input.
  • CosmicBen
    junior Member
    Posts: 4
    Joined: Thu Dec 19, 2024 11:49 am

    Re: Ponk Output in MadLaser Not Working

    by CosmicBen » Tue Dec 24, 2024 9:24 am

    Sorry I just realized my mistake. After enableing some debugging text I realized that I was actually getting the laser data correctly (when using a different IP address, 192.168.1.xxx in my case). The problem was that I expected MadMapper to use a default Sender ID of 0 or 1 (similar to the TouchDesigner example). It turns out for some reason the effect or settings I used were defaulting to Sender ID 12300. After adjusting the code a bit (switched an array to a map) everything seems to be working properly now besides possibly a memory leak I need to sort out.
  • Jesse69
    junior Member
    Posts: 3
    Joined: Wed Jul 19, 2023 3:59 am

    Re: Ponk Output in MadLaser Not Working

    by Jesse69 » Thu Dec 26, 2024 4:22 am

    To ensure PONK data transmission from MadMapper to Unreal Engine, verify that MadMapper's "Publish to PONK" setting, IP address (`127.0.0.1`), and port configuration match your plugin setup. Check for port conflicts, network binding issues, and use a tool like Wireshark or a simple PONK listener to confirm data is being sent.
    Incredibox Colorbox Mustard

Who is online

Users browsing this forum: No registered users and 6 guests