Comments (14)
They are in the tool folder.
If you use npm run dev
, it should move it to the app folder.
from sculptgl.
Which one do I open? There are two in the tool folder.
from sculptgl.
It won't work if you open it directly, you have to build the project first.
Simply follow the readme!
npm install -g rollup # if not already done
npm install
npm run dev # and visit app/index.html
from sculptgl.
I try to deploy it to my local server according follow your guide, but after "npm run dev" node.js command prompt noticed that 'cp' isn't internal/external command, or execuction programme. and I check my system path, it have include node.js' command. Could you tell me how to solve this problem? I would like to debug the IOS browsers' issue.
from sculptgl.
The command is
cp tools/index.dev.html app/index.html && rollup -cwm
^ It's in package.json. It just move index.dev.html into app/ folder and run rollup
from sculptgl.
Why don't you include a pre-built version, to make it more accessible? Unless it's platform-dependent.
from sculptgl.
Pre-built version needs to be updated regularly, also, there's both a minified and non-minified version.
The latest version of the code is always accessible through https://stephaneginier.com/sculptgl
I forgot that "cp" was a linux only command :), I develop on windows but I have mingw installed.
The script is dead simple though.
from sculptgl.
ok, I try to install minGW.
from sculptgl.
You can also replace cp with copy :), it should work the same.
from sculptgl.
I‘ve try replace copy for cp and install mingw are also not work, I am using cygwin now, and manual enter command
from sculptgl.
Related to this, I changed the scripts and got them running (I think), but I can't get the page to actually load.
I got to the point where the Command Line gave these messages:"
1 file(s) copied.
1 file(s) copied.
checking rollup-watch version...
bundling...
bundled in 3358ms. Watching for changes...
"
I have tried (in chrome): 'localhost', 'localhost/app/index.html', 'https://localhost/app/index.html', 'https://localhost', and 'file:///C:/Repos/sculptgl/app/index.html'
All but the last one return "localhost refused to connect." and the last one doesn't work for the usual reasons.
Is it running on a non-standard port, or did I get Rollup stuck in a loop or something weird?
I'm running a standard Windows 10, I used the Node.js Command Prompt to issue 'npm run dev'.
If I get it working on stock Windows I'll commit it back as a second set of scripts.
from sculptgl.
Like many js project, you have to setup a local server.
Quickest/easiest way to do is through python 2 with python -m SimpleHTTPServer 8000
or with python 3 python -m http.server 8000
. And then go to http://localhost:8000/path-to-app-index.html
It's also easy to setup a quick local server with nodejs (I could also link it it up with the npm run dev...).
I personnally use xampp which is more bothersome to setup the first time.
from sculptgl.
It's also easy to setup a quick local server with nodejs (I could also link it it up with the npm run dev...).
Thank you for the super fast reply.
I just assumed you had set it up with Node since you require it. I'll see if I can get the node server working even though I'm a Node Noob.
from sculptgl.
stephomi .. i try follow your above but not work please explain step by step i use last code your update not have index.html , nmp install it's worked but nmp run dev not work !! show this below , i use appserv is webserver
copy tools/index.dev.html app/index.html && copy tools/authSuccess.html app/au
hSuccess.html && webpack -w
he syntax of the command is incorrect.
pm ERR! code ELIFECYCLE
pm ERR! errno 1
pm ERR! [email protected] dev: copy tools/index.dev.html app/index.html && copy t ols/authSuccess.html app/authSuccess.html && webpack -w
pm ERR! Exit status 1
pm ERR!
pm ERR! Failed at the [email protected] dev script.
pm ERR! This is probably not a problem with npm. There is likely additional log
ing output above.
pm ERR! A complete log of this run can be found in:
pm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-04-24T1
_19_46_003Z-debug.log
Show like this
from sculptgl.
Related Issues (20)
- Save diffuse from cylinder or torus
- Why windows only for standalone HOT 1
- special request HOT 5
- Allow PWA functionality. HOT 1
- How to add simple point ?
- Updated standalone version HOT 1
- Typescript migration HOT 2
- WebGL GUI Dependency HOT 2
- Go to Sketchfab ! HOT 1
- How to import multi obj and merge combined into one obj HOT 1
- Scale size of object changes after remesh operation. HOT 2
- Cut 3d object feature in old-sculptgl Branch HOT 3
- Getting the angle of 3d object HOT 4
- Cut Feature in Sculpt-GL HOT 3
- Enter VR Button
- Updating 3D model position by giving user input
- Set pivot point to centre in exportOBJ file HOT 1
- Import issue HOT 1
- Certain Materials don't export to sketchfab.com HOT 2
- glTF import-export HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sculptgl.