Giter Site home page Giter Site logo

Fixing the demo about physijs HOT 6 CLOSED

chandlerprall avatar chandlerprall commented on July 18, 2024
Fixing the demo

from physijs.

Comments (6)

chandlerprall avatar chandlerprall commented on July 18, 2024

Do the online examples work for you? What browser, version, and OS are you running?

from physijs.

bsamadi avatar bsamadi commented on July 18, 2024

Yes, the online examples work for me. However, the examples that I downloaded did not work. I fixed them with some modifications. I use Chrome and Firefox, the latest versions. My OS is Win 7 64 bit.

from physijs.

chandlerprall avatar chandlerprall commented on July 18, 2024

Not sure why you need those changes, works fine on my Windows 7 system. Glad you could get it working though.

from physijs.

kamilmaciejewski avatar kamilmaciejewski commented on July 18, 2024

No matter how hard I try after downloading the examples they do not work off-line.

I can start on-line demo (Windows 7 64bit, Firefox and Chrome), but when I download and unzip chandlerprall-Physijs-58ea99c I start any of html files from examples directory and also tried to download source of: http://chandlerprall.github.com/Physijs/examples/collisions.html and all the script files that it loads.

No matter what I do still have the same issue: in Firefox it loads scene and meshes, but do not animate, in Chrome white screen, no images. I checked many times, that browser see and can load files: js/Three.js, js/stats.js, ../physi.js

The only solution I've found so far is to put all files in one directory and load them directly. Putting files in js subdirectory and loading with

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

or

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

just doesn't work even though the browser can load the file with full path.

I'll try to find some other solution, but maybe someone smarter than me knows the reason.

from physijs.

bopjesvla avatar bopjesvla commented on July 18, 2024

Ammo.js is running in a webworker, which doesn't work locally. The fix: http://suretalent.blogspot.nl/2011/04/javascript-web-workers-local-chrome.html

from physijs.

user157 avatar user157 commented on July 18, 2024

I downloaded and unziped chandlerprall-Physijs-58ea99c I started html file but its not showing images .How to run these examples on local server

from physijs.

Related Issues (20)

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.