stephomi / sculptgl Goto Github PK
View Code? Open in Web Editor NEWDEVELOPMENT STOPPED I'm now working on Nomad Sculpt instead
Home Page: https://stephaneginier.com/sculptgl/
License: MIT License
DEVELOPMENT STOPPED I'm now working on Nomad Sculpt instead
Home Page: https://stephaneginier.com/sculptgl/
License: MIT License
node-webkit can make desktop application by html5.
just adding package.json
then node-webkit
makes your site like this:
package.json
:
{
"main": "index.html",
"name": "SculptGL",
"single-instance": false,
"window": {
"title": "SculptGL",
"toolbar": false,
"frame": true,
"width": 1024,
"height": 768,
"position": "center"
},
"nodejs": true,
"webkit": {
"plugin": true
}
}
I found in ScupltGL can not display correctly in all IOS browers, but IOS claims it support WEBGL, and i test another webgl matcap sample base on matcap, and it's work fine.
pls check this link for test video:
https://vimeo.com/185645917
When trying to export an object as .obj with vertex count 3 424 770 it fails with this error in the console.
[15157:0803/161750:ERROR:nw_shell.cc(335)] RangeError: Invalid string length
at Object.g.addMesh (file:///tmp/.org.chromium.Chromium.3ad4ro/sculptgl.min.js:11:17294)
at Object.g.exportOBJ (file:///tmp/.org.chromium.Chromium.3ad4ro/sculptgl.min.js:11:15551)
at Object.g.saveFileAsOBJ (file:///tmp/.org.chromium.Chromium.3ad4ro/sculptgl.min.js:11:24691)
at Object.f._onClick (file:///tmp/.org.chromium.Chromium.3ad4ro/sculptgl.min.js:3:31103)
[15157:0803/161750:INFO:CONSOLE(11)] "Uncaught RangeError: Invalid string length", source: file:///tmp/.org.chromium.Chromium.3ad4ro/sculptgl.min.js (11)
When going down one level to 856 194 vertices exporting works fine without any error in the console.
When you activate or deactivate the dynamic topology, the "sculpting & painting" panel always unfold.
This would be useful for me trying to match the curves of a reference picture
To reproduce, open http://selfsamegames.com/temp/non-manifold.sgl, select the cylinder, and remesh. (I use blender's select non manifold
command to check for non manifold vertices)
The example file has very bad geometry, but I've found that this can happen under normal sculpting situations or when remeshing multiple objects together.
I would like to request an option to build for Windows.
I use a wacom Intuous 4.
Pen Pressure doesn't seem to work under windows 7.
Hi there, with these 2 tags added to the sculptGL app page:
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
sculptGl could be added as a full screen app to the Android/Apple home screen and would open without the address bar/tabs.
I think that would be very nice. Thanks for considering!
I cannot find a download for the index.html file. Where is it?
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 .. thanks
We have some problem to build sculpt web with your sources.
could you please explain how to build sculpt web
thank you
I cannot find which license is SculptGL under.
The top bar menus (File, Scene, etc.) won't open in iOS browsers. (I've tried both chrome and safari apps)
the iOS version 10.3.1
Note: these menus do work with android
I just know use "dynamicToggleActivate()" function to enabled dynamic topology ,but i want to know that How to set dynamic topology enabled by default
thanks.
in your code which is for sketchfab, commit sha: 7dd7233, when I run the index.html page on my local server, sphere can't rotate when mousedown on the blank area and mousemove, but when I do this thing in https://labs.sketchfab.com/sculptfab/, the sphere can rotate.
how did this happen?
yarn add electron yarn add electron-packager yarn standlone
should be
yarn add electron yarn add electron-packager yarn standalone
Thank you for a tremendous application!
In the last couple days, exporting .stl and other export types seems broken. giving this error in Chrome and Firefox is giving this error:
sculptgl.js:11 Uncaught TypeError: Yr is not a functionsaveFileAsSTL @ sculptgl.js:11_
onClick @ sculptgl.js:10
I'm not sure if this is a bug or a feature, but changing to a lower resolution then changing back will modify the mesh (even if you did nothing at the lower resolution). The following images show what happens when you make some sort of changes to the mesh (in this example making some creases), then drag the resolution slider back and forth a few times.
Again, not sure if this is expected behavior or not, but thought I would point it out just in case.
The masking tool has an unexpected behaviour with dynamic topology, I tried to show you in this video.
hope there could be a cooler ui. data gui only a demo way
and feature like image project painting
could i help you anything?
So I've been trying to figure out how to delete an object, so I figured I'd hit the "delete" key, but that seems to delete the entire scene, I'd expect it to delete an object, and I'd also expect a similar menu item as well.
Hi, I'd really love it if I had the ability to have multiple views.
Essentially my process is to set the background image to something I'm trying to model and it would be awesome if I could have an multiple views on the sculpted model so that I can compare it to the images I'm modeling from.
SculptGL is pretty good and It's easy to use.
However I found the REMSHE not work as expect. When the object has been remeshed , the location and the size of the object are changed.
If the object is exported to stl, the size of the object is changed imported by SculptGL, both the size and the location are changed by other softwares, such as blender.
Uncaught TypeError: Cannot set property 'viewportWidth' of null sculptgl.min.js:136
SculptGL.onWindowResize sculptgl.min.js:136
SculptGL.start sculptgl.min.js:126
(anonymous function) (index):27
c jquery-1.10.1.js:3074
p.fireWith jquery-1.10.1.js:3186
x.extend.ready jquery-1.10.1.js:433
q
I get this on standard Chrome and Canary.
After using dynamic topology, paint tool change mesh resolution while painting. I show you here.
Can I add a custom URL in my 3d library preview page, and open the appointed model file just like:
http://XXXXXXX.com/sculptgl?
fileOpen/Importfile+[file path in web server]
And what function should I call?
I would like to share 3d art work, and allow visitor to revise & co-creat it, I think it's funny,
Thanks for awesome web app
Is there a way to render PBR on the background as well? And I cant find out how to add HDR images. Maybe someone can guide me?
PS: Thank you Stéphane for this amazing script!
When you are using the paint tool (or any other) and use the shortcut "c" to modify the intensity, the paint tool shift to the crease tool, every time. This happend only when you used the shortcut key.
The Show grid mark box does not update correctly, when you clear a scene.
The local/world camera view hardly detect the graphics tablets taps, it works fine with a mouse.
I show you in this video. https://dl.dropboxusercontent.com/u/69554201/ScuptGLBug001.mp4
Browser: Chrome 28.0.1500.71
OS: Linux
Graphic: Nvidia GeForce 9600M Driver 173.14.37
sculptgl.min.js:138
Uncaught TypeError: Cannot set property 'viewportWidth' of null
Currently brushsize needs to be changed via the ui or the + - buttons.
This currently provides a relatively slow workflow. Would be great to have the shortcuts somewhere on the left side which lets them be used by the left hand.
Or even better would be a modal resize operator. Keep a button pressed and then drag left or right to increase or the decrease the size fluidly. Same goes for pressure. I think for a fast workflow this is an essantial feature to have very quick access to size and pressure of a brush.
Blender has a shortcut on F and Shift+F for size and pressure.
I saw there was a circle at where the mouse moved or click, I use other controller to do the mouse thing, but could you tell me how to add the circle to my controller? there are the X-position and Y-position on the page of my controller, which part of the code add the circle at the position? thanks
1 Front view
Ctrl+1 Back view
2 Rotate view up
Ctrl+2 Pan view up
3 Left side view
Ctrl+3 Right side view
4 Rotate view left
Ctrl+4 Pan view left
5 Toggle perspective/orthographic view
6 Rotate view right
Ctrl+6 Pan view right
7 Top view
Ctrl+7 Bottom view
8 Rotate view down
Ctrl+8 Pan view down
9 Redraw screen
0 Camera view
Ctrl+Alt+0 Set camera to viewport
/ Toggle local view
. (dot/period) Zoom on selection
When the option Scale and center is set, not only the view size of the imported object is resized, but also its data is changed.
The size of the objects is indeed resized.
The redirect_uri is currently HTTP only. It should also support HTTPS.
I'll make another PR when I can.
Hello.
Congratulations for the excellent work you have done.
When I do "voxel remeshing" creates an OBJ file to be 1k and not working.
I do not understand the issue.
It's really annoying that I can't translate a mesh that has its eyes as separate objects. Please add an option to select multiple objects
wavefront obj
file seems like cant store vertex color. whereas ply
format can do.
i think sculptgl should have to save coloring information about model.
http://en.wikipedia.org/wiki/PLY_(file_format)
http://paulbourke.net/dataformats/ply/
http://www.mathworks.com/matlabcentral/fx_files/5459/1/content/ply.htm
It would be awesome (and I'm sure difficult) to make it so that when painting you have the option of not painting through the other side of the object.
So for example, imagine you do a bunch of negative painting, and you wanted to paint a hole into a shape, it would be nice if you weren't able to punch through the other side of the sphere.
use it with a mesh that already contains self-intersection will lead a crash.
Can this web page thing use LeapMotion as an input device?
If can, could you tell how to add it to the web page? (no need to say too much details, I even didn't know which part of the code should change)
thanks
PS: I use your code to do some programming won't be used in commercial category, just to develop the page
Hello,
I tried to use the settings page to create a custom url, to configure the hotkeys.
If I try to assign a hotkey to brush, such as brush:b for example, it does not work.
Works fine for other commands though.
Nicolas
Would be really nice if the window size and UI settings were persisted on exit, so that they are restored next time the application is opened.
Thanks for a really great application! 👍
Square/skin ahpla texture and import alpha tex image no longer work after your new update for the javascript es6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.