Git Product home page Git Product logo

unityruntimeobjloaderdocs's People

Contributors

lukehedt avatar phalanxhead avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

unityruntimeobjloaderdocs's Issues

out of memory error

throws an out of memory error for rendering large .obj files into the scene

Need to hotswap object URL with automation, can a webGL build's script be altered?

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.

Import stuck when OBJ file does not have last empty line

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?

Is there any way to make it work for standalone build

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.

Importing .obj on IOS

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()

Obj importer texture bug (Webgl)

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);
    }

Not Working in URP

Hello,
As the title says materials not working in URP/

This are the errors
image

Async call

how can we load obj in async call, current load stuck the unity scene.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.