[X3D-Public] Testing Code Locally

Joe Lewis jlewis at suitefactory.com
Wed Nov 5 06:42:46 PST 2014


Ref: Using <MovieTexture> node will not work locally(PC) because of security
issues! While testing the following code the Movie was displayed in Black.
As it  turned out there was a security error which I understand was the
reason for displaying the Movie Black.

 

How is an end User supposed to test their code if this can't be overridden?
Can it be overridden? 

 

Thanks.

 

Joe Lewis 

 

********************************************************** Code
*********************************************** 

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>

<html>

<head>

               <meta http-equiv="content-type" content="text/html;
charset=utf-8" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

    <title>My first X3DOM page</title>

    <script type='text/javascript'
src='http://www.x3dom.org/download/x3dom.js'> </script>

    <link rel='stylesheet' type='text/css'
href='http://www.x3dom.org/download/x3dom.css'/>

</head>

<body >

<h1>Hello, X3DOM!</h1>

<p>

    Learn how to use images and videos as texture

</p>

<x3d width='500px' height='400px'>

    <scene>

        <Transform translation='-3.2 0 0'>

        <shape>

           <appearance >

               <MovieTexture repeatS="false" repeatT="false"
url='"http://doc.x3dom.org/tutorials/basics/imagesMovies/bigBuckBunny.ogv"'>
</MovieTexture>

                                                   </MovieTexture>

           </appearance>

           <box ></box>

 

        </shape>

        </Transform>

        <shape>

            <appearance>

                <ImageTexture
url="http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkyspl
ash.jpg/800px-Peach_Rinkysplash.jpg"></ImageTexture>

            </appearance>

            <box></box>

        </shape>

    </scene>

</x3d>

</body>

</html>

 

****************************************************************************
****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20141105/9951b0b6/attachment.html>


More information about the X3D-Public mailing list