[Public WebGL] loading models with textures from local disk?

Vincent Scheib [email protected]
Mon Sep 12 10:14:11 PDT 2011


Chrome switches may help?
    --allow-file-access
    --allow-file-access-from-files
(from: http://peter.sh/experiments/chromium-command-line-switches/)

On Fri, Sep 9, 2011 at 3:59 PM, Ilyes Gouta <[email protected]> wrote:

>
> Hi,
>
> >>> > python -m SimpleHTTPServer
>
> So for Python 3.x, this would be equivalent to:
>
> $ python -m http.server
>
> Which would serve on port 8000.
>
> -Ilyes
>
> On Fri, Sep 9, 2011 at 11:38 PM, Ilyes Gouta <[email protected]>
> wrote:
> > Hi,
> >
> >> security.fileuri.strict_origin_policy=true
> >> Note that you really should only do this in a dedicated test profile,
> and then make sure
> >> to only run trusted local pages on this profile.
> >
> > Alright, I'll checkout Firefox, been a while actually, but then this
> > is helpful for quickly testing out local WebGL pages. Thanks for the
> > tip!
> >
> >>> > python -m SimpleHTTPServer
> >> This works on Windows. Just install Python
> >
> > OK Greggman, I'd check it out too :)
> >
> > Thanks guys!
> >
> > -Ilyes
> >
> >>>
> >>> Any similar, light weight, approach for Windows?
> >>>
> >>> Thanks,
> >>>
> >>> -Ilyes
> >>>
> >>> > Just open a shell/terminal/command prompt, CD to the folder you want
> to
> >>> > be the root of your server and type
> >>> > python -m SimpleHTTPServer
> >>> >
> >>> > You can now connect to http://localhost:8000/yourtestpage.html
> >>> >
> >>> > When you're done press Ctrl-C and everything is back to normal
> >>> >
> >>> > It's simple and doesn't require you to turn off the security in your
> >>> > browser.
> >>> >
> >>> >
> >>> > On Fri, Jun 24, 2011 at 6:01 AM, Benoit Jacob <[email protected]>
> >>> > wrote:
> >>>
> >>> ----- Original Message -----
> >>> > Hi,
> >>> >
> >>> > On Fri, Jun 24, 2011 at 14:52, Evgeny Demidov
> >>> > <[email protected]> wrote:
> >>> > > in Firefox 6
> >>> > > Error: uncaught exception: [Exception... "Failure arg 5
> >>> > > [nsIDOMWebGLRenderingContext.texImage2D]" nsresult: "0x80004005
> >>> > > (NS_ERROR_FAILURE)" location: "JS frame ::
> >>> > > file:///E:/w3/ibiblio/webgl/models/jupiter.html :: <TOP_LEVEL> ::
> >>> > > line 164"
> >>> > >  data: no]
> >>> >
> >>> > This is due to same-origin restrictions on file URLs.
> >>> > In Firefox you can workaround this by changing
> >>> > security.fileuri.strict_origin_policy in about:config
> >>>
> >>> I also recently learnt we have a bug making it more restricted than
> >>> necessary (unless of course you flip that pref):
> >>> https://bugzilla.mozilla.org/show_bug.cgi?id=444641
> >>>
> >>> Benoit
> >>>
> >>> -----------------------------------------------------------
> >>> You are currently subscribed to [email protected]
> >>> To unsubscribe, send an email to [email protected] with
> >>> the following command in the body of your email:
> >>> unsubscribe public_webgl
> >>> -----------------------------------------------------------
> >>>
> >>> -----------------------------------------------------------
> >>> You are currently subscribed to [email protected]
> >>> To unsubscribe, send an email to [email protected] with
> >>> the following command in the body of your email:
> >>> unsubscribe public_webgl
> >>> -----------------------------------------------------------
> >>>
> >>
> >>
> >
>
> -----------------------------------------------------------
> You are currently subscribed to [email protected]
> To unsubscribe, send an email to [email protected] with
> the following command in the body of your email:
> unsubscribe public_webgl
> -----------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20110912/062644ef/attachment.html>


More information about the public_webgl mailing list