- Home /
(AR) How to run 3D image (.obj) inside AR using external server (namecheap vps) and assign it to parent meaning that the 3D image is under image target?
(AR) How to run 3D image (.obj) inside AR using external server (namecheap vps) and assign it to parent meaning that the 3D image is under image target?
I want to assign my (.obj) file from external server under image target using Vuforia, but currently the problem is that the (.obj file is not integrate with Vuforia, meaning the .obj file will shows up on the screen even you doesn't scan image target that been register under Vuforia.
My code for calling .obj file from external server is:
using Dummiesman; using System.IO; using System.Text; using UnityEngine;
public class ObjFromStream : MonoBehaviour { void Start () { //make www var www = new WWW("http://xxxyyyzzz.com/xyz/logo.obj"); while (!www.isDone) System.Threading.Thread.Sleep(1);
//create stream and load
var textStream = new MemoryStream(Encoding.UTF8.GetBytes(www.text));
var loadedObj = new OBJLoader().Load(textStream);
}
}
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How do I make an updatable newsletter? 0 Answers
Particle Shaders not rendering if Instantiated 0 Answers
VS code with unity not working. 1 Answer
How can I make Stream Writer overwrite a txt file? 0 Answers