Autodesk Reality Capture API - resulting model not produced after processing photoscene - autodesk-forge

I'm trying to run Autodesk's Reality Capture API (Autodesk-Forge/recap-walkthrough-photo.to.3d on GitHub) locally on my laptop. Everything works until a certain point - I authorize, create a photoscene, upload the images, and begin processing all successfully. My issue is that once processing progress reaches 100%, I'm not forwarded to the result link (http://localhost:3000/api/forge/recap/photoscene/result?photosceneid=[photoscene id]). I've tried going to the link manually, but I'm met with a screen that says "Specified file ID doesn't exist". These are the images I'm trying to process:
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/01.JPG
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/02.JPG
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/06.JPG
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/09.JPG
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/11.JPG
https://gitlab.com/photogrammetry-test-sets/dice-turntable-strong-lights-heavily-textured-w-watercolors/-/raw/master/13.JPG
Any insight as to why the api is failing here would be much appreciated.
See above: expected downloadable 3d model from images.

Related

Replacing a model in the reference application, Forge AutoDesk Data Visualization

I followed the steps per listed on their website, but my VS Code threw the following error, and when I went to the localhost it appeared as such (with no where to upload my own .rvt files)
Reference Application Local Host
VS Code error message
Note: I fixed the directory to look like this, but it still isn't showing me the upload portal to include my own .RVT file. Updated VS Code .env
I was following the directions exactly as they were laid out on the Forge Data Visualization Reference Application introduction, and it wasn't giving me the result that I needed and it didn't allow me to upload my own model. I tried to do these steps through the Mac OS Monterey Terminal as well as through the VS Code Terminal dozens of times with slightly different changes each time, and none of these worked. So instead, I downloaded iTerm2 and tried again, and it worked PERFECTLY!

Autodesk Forge: How to get started with creating a configurator

I am extremely new to Web Development. I'm trying to create a configurator application that can load a part into the viewer, have a menu to modify its dimensions, and update the viewer. So far, I developed a basic Web Application that can create a bucket, upload a file, translate it, and load it into the viewer following this tutorial: https://forge.autodesk.com/developer/learn/viewer-app/overview
Now, I would like to request custom dimensions from the user and update the file with those dimensions. I'm not sure how I can get started with this as I have very little knowledge on the subject. This is the link I found for modifying models: https://learnforge.autodesk.io/#/tutorials/modifymodels
What would be the basic steps to incorporate the modify models code to this? Also, would I need to download AutoCAD/ Inventor/ Revit/ 3ds max to run or test this code? I'm feeling lost and am not sure where to go from here. Any help would be greatly appreciated.
Here is a more complete sample for Inventor: https://github.com/Autodesk-Forge/forge-configurator-inventor

Forge ARKit: Cannot load model in Unity

With the latest ForgeARKit-update-6-2018.1, I was trying to load my model in Unity, with the sample Unity scene 'loadAtStartup'. I can successfully load the sample models from 'Sandbox', but I couldn't load my model, which was uploaded through script 'test-2legged'.
Error message shows 504, it seems not reaching the service:
AsyncRequestCompleted The remote server returned an error: (504) Gateway Time-out.
UnityEngine.Debug:Log(Object)
Autodesk.Forge.ARKit.RequestQueueMgr:AsyncRequestCompleted(Object, AsyncCompletedEventArgs) (at Assets/Forge/CodeBase/RequestQueue.cs:322)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
Model URN:
dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bWFvbGlua3ppOHM3cnlvZWx4bjVndnR4bjcyZWc2N2l0dGp0a2MvMmZsb29yX0FyYy5pZmM=
[Update 23/4/2019]
I found that I can successfully load the same model with ForgeARKit-update-3-2017.1.2f1. I compare the Forge code in Unity. I think it has something to do with the service URL. The version 6 is fetching models from 'https://developer-api-beta.autodesk.io' while version 3 is fetching from 'https://developer-api.autodesk.io'. Meanwhile the shell script 'test-2legged' is uploading to the latter one ('https://developer-api.autodesk.io'). That is why it counldn'd find the resource. Question here is how can I upload model to the 'beta' ARKit? I tried modifying the URL in script 'test-2legged' but it doesn't work. Below screen-shot is the output of script 'test-2legged' when fetching from 'beta' ARkit. It seems model is uploaded successfully, but some parsing post-work failed. I guess the response format is also changed in the beta version. Is there a beta version of 'test-2legged' scripts (and other Scene Preparation scripts)?
Please comments, Thanks.
This is correct. My apologizes for this, I know we did not documented very well on the server changes.
This update6 assumes you are using the new server under beta right now. The scripts and update 3 are using the legacy server. Note that the 2 servers are not necessarily compatible and store the data in different places, so make sure to always use the same server in Unity as the one you used to prepare the scene. When we will switch everyone to the new server, we will transfer the data from the legacy server to the new server cloud storage.
The Update3 package will still be able to read scenes from the new server, as we make sure the old Unity code stays compatible.
Note as well you need to use SafeBase64 encoded string everywhere. I saw in your description that you are using base64 encoded (not safe). The new server will be more strict of parameters and format, so I encourage you to test your scripts/code on the beta server.
Last, I am working on a new Unity code update, and documentation which will be released next week. Make sure to use this version - it adds support for 3legged, automatic 2/3legged token refresh, and more. If you got scenes failing, please contact me directly and share your models and URN. I'll either test it on my development environment, or look into our log files for the reason to fail. My email address is my first name at autodesk.com
Thank you Cyrille for your help!! I am replying you here as it's easier to insert images.
I replaced the function 'xbase64encode()' with 'xbase64safeencode()', and now it works! However it seems for some model it still responds some error and in that case it cannot be loaded in Unity. (as the image below). I checked the script and I think all the encoding are using SafeBase64. Any clue of that? Or is that caused by my model?
BTW, the loading performance is greatly improved than the legacy version!! It looks almost the same as the web client. Huge Thanks for that!
Good to know that there is going to be an update next week. Yes I will test it and get back to you later.

Cannot get JSON data to display on Leaflet map

I've been struggling with getting leaflet markers to display on a map by pulling in data from a JSON file. I think I'm missing something very fundamental, since I can even copy working example files from Plunker and load them to my hosts web server. It just display's the base map but no markers from the JSON file.
Search "displaying .json files in leaflet" in Stack Overflow and check Plunker link under the one answer to see the example I've been trying to make work on my hosts web server.
I'm placing all four files in the same folder on the web server. Works fine when I run it on Plunker, but not on my hosts web server. Host is GoDaddy :(. I don't get any error messages, just an empty base map layer.
Is there some setting that may be blocking this? Totally stumped. Note, that I can get it to work fine if I hard code my marker data into the web page, but for the project I'm working on there will be way to many data points, so need to pull this from an external file. Here is "live" test example where I just hard code data into web page: http://bwcawild.com/PMA-Pitfall-Lake/Test-Lake/Test2-Lake.html
Anyone got any ideas on this? Thanks for your help.

Out of bound exception in imagine library in YII2

I am getting following exception while uploading some jpg images(not every image) in my YII2 application
http://grab.by/H09c
It is actually occurring while creating thumb, the full size picture was uploaded well