phalanxhead / unityruntimeobjloaderdocs Goto Github PK
View Code? Open in Web Editor NEWMore Extensive Documentation for the Free Unity Runtime OBJ Loader by Aaro4130.
More Extensive Documentation for the Free Unity Runtime OBJ Loader by Aaro4130.
throws an out of memory error for rendering large .obj files into the scene
So the tool does what it says it does but every time I want to load an object, I have to go into Unity or the script and edit the URL depending on object URL. However I want to load a 3D file (obj,fbx) into my webGL build which has some viewing tools, without preloading the url manually. The webGL model viewer will be used to open a bunch of different models, think of it like the Windows 3D Model Viewer which allows you to double click on a 3D file and it asks to open in the Windows 3D Model Viewer. My assets which need to be loaded in runtime will be stored in S3 buckets.
Any pointers are appreciated.
We found a bug that if I want to import a .obj file generated by trimesh, we can not import it in and when running unity, the game will stuck.
We think it's because the generated trimesh .obj file does not have the last empty line and the the reader stuck when read last line. But if we add a newline, the code can run well.
So if there is any possibility to fix the empty line bug?
Hi,
Thanks for the source, it works greatly on editor but not work when I get build. I see that in readme it is stated that it works for editor, is there any way for me to make it work for standalone build, too? Thanks in advance.
Hey hi!
On IOS I get an error while importing an .obj saved to a specific path.
And I really don't get why it doesn't load. Maybe you know what the error means.
Thanks in advance!
Path:
/var/mobile/Containers/Data/Application/2C11AF7A-7854-4D49-89CF-AEF38BBDE4F0/Documents/Scans/textured_output.obj
ObjectImporter:GetObjectFromPath()
Error:
ArgumentNullException: Value cannot be null.
Parameter name: shader
Dummiesman.OBJObjectBuilder.Build () (at <00000000000000000000000000000000>:0)
Dummiesman.OBJLoader.Load (System.IO.Stream input) (at <00000000000000000000000000000000>:0)
Dummiesman.OBJLoader.Load (System.String path, System.String mtlPath) (at <00000000000000000000000000000000>:0)
ObjectImporter.GetObjectFromPath () (at <00000000000000000000000000000000>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.Process () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule:Process()
Hi, I use your addon which works very well to import an obj with its mlt in runtime, but when I use it in webgl (so in a web browser), the obj has no texture (I use the mlt well).
If you have an idea, you would help me a lot.
private void Update()
{
if(Input.GetKeyDown(KeyCode.Tab))
{
StartCoroutine(ImportObj());
}
}
IEnumerator ImportObj()
{
var www = new WWW("http://192.168.43.4:3008/mapobj");
var www2 = new WWW("http://192.168.43.4:3008/mapmtl");
while (!www.isDone || !www2.isDone)
{
yield return new WaitForSeconds(1);
}
var textStream = new MemoryStream(Encoding.UTF8.GetBytes(www.text));
var textStream2 = new MemoryStream(Encoding.UTF8.GetBytes(www2.text));
var loadedObj = new OBJLoader().Load(textStream, textStream2);
}
how can we load obj in async call, current load stuck the unity scene.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.