Questions tagged [xtk]

The X Toolkit (XTK) is a WebGL framework for Scientific Visualization.

XTK is a WebGL framework providing an easy-to-use API to visualize scientific data on the web. No background or knowledge in Computer Graphics is required.

158 questions
0
votes
1 answer

How do I get the volume coordinates from a tri-planar set of 2D images in XTK?

I have an application where I would like to get the volume coordinates from a tri-planar set of 2D images (axial, sagital, coronal), similar to what is displayed in the bottom panel of Lesson 13. I do not need the 3D view currently, so this feels…
0
votes
1 answer

xtk 2D renderer linking with onMousedown position

Is there a way to link three 2D renderers together so that when one is clicked on the other two move to the slices of the point that was clicked? Here is an example of what I mean. The current onMousedown behavior in a 2drenderer is to adjust window…
neurovis
  • 21
  • 5
0
votes
1 answer

VTK model animation

First of all .. congratulations on creating such an awesome library for the community. I've been looking at XTK for examples on how to load up scenegraph files and more importantly for our application, how to visualization VTK model animations. Is…
0
votes
1 answer

Doesn't XTK support query parameters (especially with periods) in file names?

I'm using edge XTK by directly including http://get.goXTK.com/xtk_edge.js in my html. Following code snippet shows how I'm referring to files on my server in XTK. var skull = new X.mesh(); skull.file =…
0
votes
1 answer

modifying the lengthY of some cubes is slow

I want to write a 3d version of a fft. (Like this:https://wiki.mozilla.org/File:Fft.png) So I created a few bars and in an outside function, my first aproach was to set the lengthY to a value. Then I call bar.modified() to force it to be…
Christian
  • 6,961
  • 10
  • 54
  • 82
0
votes
1 answer

Spatial transformation of volumes

I have 2 nifti image volumes that I would like to display together using XTK. Both of them are already converted to NRRD using Mevislab's relevant ITK modules. Both volumes were acquired in the same MR session, but they differ in spatial…
0
votes
1 answer

volume image data in the XTK toolkit

I have read here: Is there a way to use a Custom cross-sectional slicer of 3d image data? ... that the nrrd parser stores the image data as a 3D array. I want to be able to access this array in my scripts. How can this be done? I would like to use…
neurovis
  • 21
  • 5
0
votes
3 answers

How change the event in [XTK]

Hello, I wonder how do I change my mouse event because I would like to X.Caption activates only when I right-clicked on it. thank you very much
0
votes
1 answer

2D rendering of NRRD volume slicing direction reversed?

In the example given at http://jsfiddle.net/gh/get/library/pure/xtk/lessons/tree/gh-pages/13/#run, the Z orientation shows a mirror view of the 3D view. Is there a way to make them the same direction? Thanks
0
votes
1 answer

Displaying objects other than a volume in the renderer2d

I am using the xtk toolkit. Is there a way to render objects other than 1 volume (with a labelmap) in the renderer2d. For example I have been able to add a sphere to the 3d renderer, but not the 2d? I am trying to build in a simple region of…
neurovis
  • 21
  • 5
0
votes
2 answers

Need XTK example on how to use X.shaders

Can someone provide an example on how to use X.shaders in XTK ? I need to use custom shaders to apply texture and color with alpha component for vertices.
George Neil
  • 357
  • 1
  • 4
  • 14
0
votes
2 answers

Not visualizing ASCII STL file correctly

My problem seems similar to Not able to visualize a loaded data , but I have no console errors and I have already added the '-allow-file-access-from-files' flag to my Chrome Browser. Here's my Java coding, window.onload = function() { var r = new…
Karijuana
  • 314
  • 1
  • 2
  • 13
0
votes
1 answer

Object Instancing using XTK?

I have seen an instancing example in the following link. http://www.vasava.es/lab/webgl/instancing_batch/ Is it possible to do this using XTK or three.js?
George Neil
  • 357
  • 1
  • 4
  • 14
0
votes
2 answers

The camera's up, focus and position values after interaction

After interacting with the XTK camera in some way -- translation, rotation, zooming -- is there a way to retrieve from the camera the new values of the position, the focus and the up vector? It looks like the getter and setters are defined in the…
Matt
  • 737
  • 5
  • 10
0
votes
1 answer

Alpha component for object._colors in XTK

Is it possible to have Alpha component for object._colors ? var object = new X.object(); var c = object._colors; var color = new Array(4); c.add(color[0], color[1], color[2], color[4]);//Is this Allowed ..? I am having the R,G,B,A…
George Neil
  • 357
  • 1
  • 4
  • 14