Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Discussion Antenna Simulator

Discussion in 'World Building' started by Jack_Frost97, Jul 17, 2023.

  1. Jack_Frost97

    Jack_Frost97

    Joined:
    Sep 6, 2022
    Posts:
    4
    Hello, I am a telecommunications engineering student and I am trying to develop an antenna simulator in Unity. The main idea is for the user to be able to design an antenna and see how its characteristics vary in real-time, such as its radiation pattern. Is there any material that can help me develop this or at least a starting point? Any suggestions are welcome.
     
    Cainite2030 likes this.
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,777
    Theres plenty of assets on the store to use in the actual simulator or scene, but as far as the creation of an antenna and radiation pattern detection, it will all have to be custom coded.
     
  3. mechanic_kharkov

    mechanic_kharkov

    Joined:
    May 12, 2019
    Posts:
    9
    If you're familiar with your antenna's underlying math, there is no big deal to visualize it all in unity. The antenna editor is one thing, probably, it will need some procedural mesh generation. There is a lot of tutorials out there. The radiation pattern.. It depends on how you want it to be represented. If you want it to be a flat diagram you can draw anything into texture, which you can apply on any object, or blit it directly onto the screen. If it supposed to be a 3D shape then also procedural mesh generation will do.
     
  4. Jack_Frost97

    Jack_Frost97

    Joined:
    Sep 6, 2022
    Posts:
    4
    Thank you very much for your help guys. I found a library on GitHub that will allow me to perform the necessary calculations for the simulation. Here is part of the progress I have made (the figure in the image is the far-field radiation pattern of a simple straight dipole)
     

    Attached Files:

    mgear likes this.
  5. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,777
    So how the project coming along?. Never seen anything like this done with Unity, best of luck, keep us updated...
     
  6. ghGuangHan

    ghGuangHan

    Joined:
    Jun 16, 2023
    Posts:
    1
    could you please send me the library GitHub link? I am trying to visualize the antenna pattern using realistic measured data in Unity instead of in MatLab. I have data points consists of theta, phi angles as well as power values. Do you have any commends about this idea?
     
  7. Jack_Frost97

    Jack_Frost97

    Joined:
    Sep 6, 2022
    Posts:
    4

    Here is the link to the GitHub project "https://github.com/tmolteno/necpp". I have actually encountered some issues due to time constraints, so I ended up using MATLAB to obtain the measurements and importing that data into Unity for visualization. At the moment, I am only struggling with processing the data from a .json file that I am importing into my project using JsonUtility. I must be doing something wrong because I can't seem to get it to work, so that's what I'm currently working on. If you can help me with this, I would greatly appreciate it.
     
  8. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,510
  9. Jack_Frost97

    Jack_Frost97

    Joined:
    Sep 6, 2022
    Posts:
    4
    Hello again, here I leave you with an update on the progress of the project. It is now possible to manipulate the geometry of a dipole and see how it affects the radiation pattern. Greetings to everyone and have a good day.
     

    Attached Files:

  10. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,510
    better upload video to youtube/vimeo/twitter or any other site, easier to view :)