Questions tagged [jsc3d]

A web 3d object viewer using pure javascript and html canvas

This project provides a 3d object viewer for presenting 3d models and small scenes on a web page. JSC3D is coded entirely in Javascript and requires an HTML canvas to perform rendering and interactions.

It is designed to be widely compatible with most major browsers that support HTML5 Canvas feature. JSC3D has been tested on Opera, Chrome, Firefox, Safari, IE9 and more.

link: https://code.google.com/p/jsc3d/

14 questions
2
votes
1 answer

How to assign a texture to an OBJ file using multiple textures in jsc3d

I used the jsc3d viewer to import a group parts of a 3d object in .obj format with texture defined. And i would like to be able to assign new textures to each separate part. For example, i have my .obj file loaded, with 10 differents parts. All the…
Al vlad
  • 23
  • 1
  • 5
1
vote
2 answers

addEventListener with mousewheel doesn't work in Firefox

I have a few event listener and it works in all browsers except mousewheel in Firefox (in Chrome and other it works perfect). It should zoom in and zoom out when I scrolling. It's JSC3D library. Code is below // setup input handlers. //…
Megadevice
  • 23
  • 1
  • 8
1
vote
2 answers

Getting started with JSC3D. Creat a simple file viewer in JSC3D. File not loading

I have just started using JSC3D. I have followed the getting started guide in the documentation: https://code.google.com/p/jsc3d/wiki/GettingStarted The code seems fine but my file does not seem to load, the loading bar just freezes.
Mr Boom
  • 41
  • 3
  • 10
0
votes
1 answer

How can I read a c3d file on Python?

I'm trying to read a c3d file on Python with the btk library but I didn't succeed. I downloaded the library here https://code.google.com/archive/p/b-tk/downloads for Windows 10 (64 bit) and then wrote this code:
0
votes
1 answer

jsc3d is there any way to detect 2 mesh collision?

I have a project using jsc3d to render a 3d object. the project needs to put new accessories into the current figure. I need to check if the accessory collision with the main part so the output 3D models can print though 3d printer. is there any way…
0
votes
0 answers

Sending canvas data to a php file to be uploaded

I'm trying to use JSC3D to render avatars for my website, like if they change the appearance it re-renders and uploads to server, etc, etc. Most likely I can figure that out, however I cannot get it to send the data to the php script, I receive no…
Amicon Interactive
  • 123
  • 1
  • 1
  • 5
0
votes
1 answer

3D model embedded in Canvas autorotation

How exactly we could auto rotate the 3D model embedded within a canvas. Please find the implemented code below: HTML: It seems you are using an outdated browser that does not support…
0
votes
0 answers

Position of stl object is changing for some reason, why?

using this function and beside that more code, everything works perfect, object is always positioned in the center of the screen. But I want to translate object, to move it for example, along Xaxis. JSC3D.Matrix3x4.prototype.translate = function(tx,…
commandos2389
  • 175
  • 1
  • 10
0
votes
1 answer

Javascript scope, assiging values

I have this "small box" in .php file but in html section: X:
and in other file, .js, I have : JSC3D.Matrix3x4.prototype.translate = function(tx, ty,…
commandos2389
  • 175
  • 1
  • 10
0
votes
1 answer

JSC3D: translating object

I am trying to translate object in space, and I have this function which should translate object, its stored in .js file JSC3D.Matrix3x4.prototype.translate = function(tx, ty, tz) { this.m03 += tx; this.m13 += ty; this.m23 += tz; }; but in…
commandos2389
  • 175
  • 1
  • 10
0
votes
0 answers

Jsc3d: How to rotate, scale, move stl objects?

Can someone explain, write, how to reach mesh vertices using jsc3d, and then move each vertice so stl object can rotate. Especially, I would like to see Matrix3x4 with realistic numbers in it ? If You can move vertices for particular angle it would…
commandos2389
  • 175
  • 1
  • 10
0
votes
1 answer

How do I add hot spots in a jsc3d model?

I have a 3D model loaded in my web page using jsc3d. Is there a way to place a hot spot (a clickable area) over my model so that when it is clicked I could zoom in and rotate the model to a specific set or coordinates?
gemega
  • 23
  • 6
0
votes
1 answer

Rotate scene about Up vector in jsc3d

I'm using jsc3d to load and display some 3d objects on a canvas. The viewer has already a built-in feature that allows to rotate the "view coordinates" (correct me if i'm wrong) about the Y axis by dragging the mouse. The rotation is performed…
deblocker
  • 7,629
  • 2
  • 24
  • 59
0
votes
1 answer

image addition on already created jsc3d 3d object

Is it possible to add an external image or text on an already jsc3d created 3d object.For example if any canvas imagedata needs to be stored on the created 3d object,then is it possible?
Guest
  • 25
  • 4