Coder Social home page Coder Social logo

Comments (9)

MarekKowalski avatar MarekKowalski commented on July 21, 2024 1

I am glad it's working for you! The black mesh you are seeing is the 3D reconstrurction of the scene from the HoloLens. At the moment I do not remember how to switch it off. Please look at the HL2/MRTK documentation.

from livescan3d-hololens.

MarekKowalski avatar MarekKowalski commented on July 21, 2024

Hello Max,

unfortunately I don't really have the bandwidth to try this at the moment. Does this work for you locally (as in, not on HL2)?
Do you get any exception on HL2? Is the HL2 on the same network as the machine? Do you have the firewall set up such that the connection could happen?

Thanks,

Marek

from livescan3d-hololens.

GitMaxOch avatar GitMaxOch commented on July 21, 2024

Hey Marek,

Thanks for youre answer, i got it working in Unity (Version 2020.1.17) but if i try deploing it remote using Visual studio 19 to the holonens2 i get this error
Screenshot 2024-05-10 153033
First the HL2 shows "made with unity" and then the error occurs in VS19.

What Firewall setup do you mean?

Thanks,
Max

from livescan3d-hololens.

MarekKowalski avatar MarekKowalski commented on July 21, 2024

That's not very specific. Does it come with a stack trace? I wonder if it has anything to do with the networkcommunication module. Are you able to set a breakpoint where that module is initialized and see whether it fails there?

For the firewall: the hololens2 needs to be able to connect to the livescan app running on your pc.

from livescan3d-hololens.

GitMaxOch avatar GitMaxOch commented on July 21, 2024

Hey Marek,

this is in the stack

grafik

i´m not very into programming using Unity. Where is network module getting initialized.

I checkt the settings of the firewall and the livescanapp has access.

Thanks,
Max

from livescan3d-hololens.

MarekKowalski avatar MarekKowalski commented on July 21, 2024

Hey!

It seems that the failure happens during construction of the socket. Based on the stack trace, it's hard to determine whether this is a failure in the constructor itself or whether the constructor does not even start.

A few things you could try:

  1. Rebuild the Network Communications project. Make sure that the output DLL is saved in ./Assets/Plugins.
  2. Remove the following line socket = SocketClient(strIP, port); from the TransferSocket.cpp file, rebuild (as in step 1 above) and see if you get the exact same error and stack trace. If it's the same then there is some issue with the DLL I would think. If not, then it looks like a network issue, i.e. your HL2 can't connect to the computer.

from livescan3d-hololens.

GitMaxOch avatar GitMaxOch commented on July 21, 2024

Hey,
Thanks for you`re support.
I tried youre suggestions and with rebuilding the networkcommunication it did made a difference, the same error appeared.

When commenting out the line, the program ran without making an error.
So I got the following result.
Screenshot 2024-05-22 124032

You said if this happens it should be a network issue so I tried turning off my firewall but the same error accured again.

Best regards
Max

from livescan3d-hololens.

MarekKowalski avatar MarekKowalski commented on July 21, 2024

Hello Max,

at this point it's hard for me to help you without knowing your network setup. Are you certain that the network allows communciation on port 48002? When you open the app on hololens you should get a keyboard input asking for an IP. Are you sure you are using the right IP address for your computer?

One way to test the network outside of a HoloLens would be to take the following steps:

  1. Run the server/player on the same machine you usually do.
  2. Set up the Unity project on another computer connected to the same wifi as the Hl2.
  3. Modify line 21 here:
    keyboardDone.Invoke("127.0.0.1");
    to be the IP address of the machine where you are running the server/player.
  4. Run the Unity project and see if it receives the data.

Marek

from livescan3d-hololens.

GitMaxOch avatar GitMaxOch commented on July 21, 2024

Hey Marek,

i got it finally working, i hardcoded the ip adress also into this line

keyboardDone.Invoke(keyboard.text);

and in the pointcloud reciver where the ip adress is refered.

I also run the livescanserver on a different pc, maybe this was the solution for our network problems

Do you know how i get rid of the white polygons in the background.

Screenshot 2024-05-27 155350

Thank you so much for your help so far.

Best regards
Max

from livescan3d-hololens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.