Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.obj models on usb flashdisk rendered in xulrunner #173

Open
tomasberdych opened this issue Nov 2, 2015 · 0 comments
Open

.obj models on usb flashdisk rendered in xulrunner #173

tomasberdych opened this issue Nov 2, 2015 · 0 comments

Comments

@tomasberdych
Copy link

Hi. I try to view a 3D model in html, used xulrunner and copy to prezentation usb flashdisk.
Loading progress bar reach the end (100%) and freeze. On any website this work fine. Thank you very match.

I have this code in html file:

<script type="text/javascript" src="js/jsc3d.js"></script> <script type="text/javascript" src="js/jsc3d.webgl.js"></script>

        <script type="text/javascript">
            var canvas = document.getElementById('cv');
            var viewer = new JSC3D.Viewer(canvas);
            viewer.setParameter('SceneUrl', '../model/futura.obj');
            viewer.setParameter('InitRotationX', 0);
            viewer.setParameter('InitRotationY', 0);
            viewer.setParameter('InitRotationZ', 0);
            viewer.setParameter('ModelColor', '#777777');
            viewer.setParameter('BackgroundColor1', '#E5D7BA');
            viewer.setParameter('BackgroundColor2', '#383840');
            viewer.setParameter('RenderMode', 'textureflat');
            viewer.setParameter('MipMapping', 'on');
            viewer.setParameter('Renderer', 'webgl');
            viewer.init();
            viewer.update();
        </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant