microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.47k stars 4.59k forks source link

Webgl project using Airsim #2600

Open plushpluto opened 4 years ago

plushpluto commented 4 years ago

How to create a webgl project using Airsim?

UE4 or Unity?

rajat2004 commented 4 years ago

AirSim doesn't support WebGL, but you can try to build it yourself. Both Unreal & Unity have documentation regarding this https://docs.unrealengine.com/en-US/Platforms/HTML5/GettingStarted/index.html https://docs.unity3d.com/Manual/webgl-building.html

Not all AirSim features are available on Unity however

plushpluto commented 4 years ago

Webgl is key to my work. I am trying it. Will share how it goes. Need to play around a bit with both Unreal and Unity. Any idea why the support for Unity is less!!

rajat2004 commented 4 years ago

Just needs a contributor to add support for the new APIs, etc

plushpluto commented 4 years ago

Tried to package Airsim Webgl for the UnityDemo.

Unity-2019.1.0f2 [Ubuntu 18.04/Kernel-5.3.0-46]

Got this error. To marshal a managed method, please add an attribute named 'monopinvokecallback' to the method definition. the method we're attempting to marshal is: airsim unity.vehicle companion::set pose

Stuck here!!! @rajat2004

rajat2004 commented 4 years ago

I don't have any experience with Unity, Unity forums and Stackoverflow would the best ways to figure out problems Note that you might need to use the fixes in #2328, to test the branch locally-

cd AirSim
git checkout master; # update if not already: git pull upstream master --rebase
git fetch origin pull/2328/head:PR/2328; git checkout PR/2328;
./build.sh; # or build.cmd for Windows
cd Unity
./build.sh; # or build.cmd for Windows
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.