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

Reloading renderer3d with new data

I am trying to use XTK to display VTK files that are dynamically generated as a result of some scientific calculation. For this, I am attempting to call the following JavaScript function with a new result_file every time I submit a form (using…
0
votes
2 answers

Load volume in xtk without initializing a renderer

I'm using xtk to read remote NIfTI volumes into an application. My sole objective is to obtain a volume object so I can extract its data; I don't need to render anything. The examples I've seen all initialize a renderer and attach a volume before…
Tal Yarkoni
  • 2,534
  • 1
  • 17
  • 12
0
votes
1 answer

XTK volume dimension on pixel

I use this function var _dimensions = v.dimensions; to extract the different dimensions of a volume(.gz.nii) ,Now i would to know if there is a relation bitween the dimension on pixel of the image and the dimension for emample hight_px = A *…
AMAL JERBI
  • 89
  • 1
  • 8
0
votes
1 answer

How we canfire a window resize event with XTK?

How we can fire a window resize event with XTK? ANd is it possible to extract the width and the higth of the image witch is into the canvas ? Best, AMAL
AMAL JERBI
  • 89
  • 1
  • 8
0
votes
1 answer

XTK change the height and width of a canvas

I would know if it possible to change the height and the width of a canvas genarated after the init of a X.render2D of a volume object(.nii.gz)
AMAL JERBI
  • 89
  • 1
  • 8
0
votes
0 answers

xtk mesh loading errors

I'm trying to load several freesurfer files (.pial, .inflated) and the javascript console is recording these errors: Uncaught RangeError: ArrayBuffer length minus the byteOffset is not a multiple of the element size. Other things load fine, such…
Greg B
  • 609
  • 6
  • 19
0
votes
1 answer

interactor issue using Chrome

I'm using Chrome 24.0.1312.56 (portable version) and 25.0.1364.97 m (installed version) to display some 3D contents. The interation in the 3D scene is not optimal. When I click and move slowly, there is no rotation in the scene. If I move quicker,…
lolo
  • 11
  • 4
0
votes
2 answers

X.matrix.rotate doesn't seem to work

So, I've been having problems with xtk's var rotate = m.rotate($ANGLE, $IAXIS); function for quite some time now. Basically, what I would like to do is rotate a single object in space around a certain axis without moving other objects or the…
Marija
  • 11
0
votes
1 answer

xtk volume rendering with .vtk file created from matlab

I am beginning with XTK. I would like to load a .vtk file in order to make volume rendering into XTK. This .vtk file has been created with a matlab function which saves a 3D data array (voxel) into vtk format : function savevtk(array, filename) % …
user1773603
0
votes
2 answers

render model in XTK to part

I'm a big doubt. Would loading the model in the scene and after this object is fully charged, then I would begin to load another model means That reason is behind the panos.O That I am loading multiple models and my project is taking much to open…
0
votes
1 answer

Loading .nii file in xtk in 3D

As in the one for DICOM files, would it be possible to have a simple example of displaying a .nii file with XTK?
Robert Parcus
  • 1,029
  • 13
  • 19
0
votes
1 answer

xtk volume.image property

I am returning to using the xtk library after a short break and I am having issues using the volume.image getter method documented here. Is this method still supported or was it dropped in moving from version 8 to version 9?
neurovis
  • 21
  • 5
0
votes
2 answers

I can not change the name of my opacity.Its change.Its change?

Would anyone know how to change the name of the menu opacity to a name of my choice in Slice? Thank's.
0
votes
1 answer

Display Crosshairs in XTK 2D View

Is there a way to display the colored x,y,z crosshairs that are visible in the 3D volume view in 2D slices (like in lesson 13)? Thanks! Nolan
0
votes
1 answer

deactivating all standard mousevents XTK

I've got a volume and a mousemove event within a mousedown event. what I want to achieve is to move the mouse while the button is still pressed, change the slice via IndexX++/-- AND stop the volume from being rotated. I need to "pause" all standard…
p0rter
  • 961
  • 2
  • 13
  • 28