[CLOSED] 3rd part integration

Answered
0
0

It would be possibile to integrate a 3d viewer that is attached

or have any suggestions for a newbie?

A test file is provided in \examples\k.vds

and the main page is \examples\index.html.

It uses canvas, soome scripts (loco.js) and wasm.

Thank you

Attachment
  • You must to post comments
Best Answer
0
0

Hi Davide,

Sorry for the delay. Here is the sample project! Please take a look and let us know if you have any questions.

Best,

Levie

  • Levie (ITG)
    Did you find everything you need in here, Davide?
  • You must to post comments
0
0

this is my attempt. I’m using InitScript of windof class,

But.

  1. how can i refer to canvas object in this script ? I’m using var canvas = document.getElementsByName(“canvas3D”)[0]   but I know that isn’t correct.
  2. If I move the window I can’t do gestures… only the original windows position is running ok
  3. It seems the X,Y point of gestures detected by loco.js are some “delta” away from the original mouse point click.

 

Attachment
  • Luca (ITG)
    We’ll send you the sample project, it shows everything you need for this.
  • You must to post comments
0
0

Yes i0m trying it with other vds.

 

Do you think loco.js in necessary or it can be ported in some way to your framework using your canvas widget.

  • You must to post comments
0
0

Hi Davide,

Is this what you’re trying to accomplish with Wisej? http://demo.wisej.com/3dviewer/. I’ll post the code shortly.

  1. Click Load Server File
  2. Click Project Files
  3. Click k.vds

Do you have some more .vds files we can use to test it out?

 

Best,

Levie

  • Davide Mercanti
    Thank you for the sample. I’ve setup a new “Proof of concept” project . My attempt is to use desktop and windows components. I’ve done a good job with your awesome framework… but I get a strange behavior. It seems that loco.js (for gestures) can’t handle multi windows/canvas envoronment. It runs good only on the first opened window, in the other windows there are funny event… Is there a workaround?
  • Davide Mercanti
    Would it be possible to delete loco.js and use the wiseJ gesture recognition? In practice loco supports both mobile gestures and particular mouse functionality for the desktop environment: CLICK LEFT + MOVE => ROTATE (dvl.Renderer.Rotate) CLICK RIGHT + MOVE => ZOOM (dvl.Renderer.Zoom) CLICK RIGHT + CLICK LEFT + MOVE => PANm(dvl.Renderer.Pan) MOUSE WHEEL => ZOOM (dvl.Renderer.Zoom) CLICK LEFT => CLICK / TAP (dvl.Renderer.Tap)
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.