julienkay / MobileNeRF-Unity-Viewer

An unofficial Unity port of the MobileNeRF viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where is MobileNeRF -> Asset Downloads

yosun opened this issue · comments

commented

MobileNeRF -> Asset Downloads does not seem to exist?

Import From Disk seems to be the only option?

Hmm that's weird. I can not reproduce that right now.
Which version of Unity are you on? OS? Any errors in the console?

My guess is that you didn't drag the Editor folder in the package into "Asset", so the editor scripts are not compiled by Unity Editor.

commented

clean install, empty project.
which version of unity should i be using - which has this been tested to work?

Image from Gyazo

commented

no errors on console - screenshot shown

i'm also not sure what types of files import from disk works with?

Try doing what I said and take another screenshot?

commented

hmm i did that too but no effect earlier... after re-import, same thing? which version has this been tested with?

Image from Gyazo

Downloading works for me on 2021.3.16 with URP.

commented

I don't think so, since the error seems to be in the Editor and not in rendering...Maybe just start a new project in the version I provided, install package, and move the Editor folder to the Asset directory.

@yosun
Thanks for providing the screenshots. The Unity version you're using should work.
I see that you're using macOS though, which I've never tested this with before. If anyone else used it with macOS successfully or can reproduce this issue feel free to chime in.

Otherwise I have to assume that this is a Unity bug, where the menu items are not displayed correctly on macOS.

If I had to take a stab in the dark: In MobileNeRFImporter.cs can you try and modify all occurrences of
[MenuItem("MobileNeRF/Asset Downloads/...", ..., ...)] and delete the last two parameters so it's only
[MenuItem("MobileNeRF/Asset Downloads/..."]

Maybe also try to delete some of the fluff like lines 28-59?

[MenuItem("MobileNeRF/Asset Downloads/-- Synthetic 360° scenes --", false, -1)]
public static void Separator0() { }
[MenuItem("MobileNeRF/Asset Downloads/-- Synthetic 360° scenes --", true, -1)]
public static bool Separator0Validate() {
return false;
}
[MenuItem("MobileNeRF/Asset Downloads/-- Forward-facing scenes --", false, 49)]
public static void Separator1() { }
[MenuItem("MobileNeRF/Asset Downloads/-- Forward-facing scenes --", true, 49)]
public static bool Separator1Validate() {
return false;
}
[MenuItem("MobileNeRF/Asset Downloads/-- Unbounded 360° scenes --", false, 99)]
public static void Separator2() { }
[MenuItem("MobileNeRF/Asset Downloads/-- Unbounded 360° scenes --", true, 99)]
public static bool Separator2Validate() {
return false;
}
[MenuItem("MobileNeRF/Asset Downloads/Download All", false, -20)]
public static async void DownloadAllAssets() {
if (!EditorUtility.DisplayDialog(DownloadAllTitle, DownloadAllMsg, "OK")) {
return;
}
foreach (var scene in (MNeRFScene[])Enum.GetValues(typeof(MNeRFScene))) {
if (scene.Equals(MNeRFScene.Custom)) {
continue;
}
await ImportDemoSceneAsync(scene);
}
}

commented

Someone proposed a fix for this. Let me know if you keep having problems on macOS.