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.

159 questions
10
votes
1 answer

Reading ASCII VTK with XTK

I'm trying to use XTK to display 3D CFD data on my webpage. I can generate ASCII VTK files containing my data (mesh points, velocity, pressure) following the format guide here and I can visualize it it Visit. When I try loading into XTK however,…
Lukas Bystricky
  • 1,152
  • 5
  • 13
  • 33
8
votes
2 answers

File format of the VTK file to be used as input for XTK

I have a .vtk file at remote server. I am accessing it via http (I verified that the url of the file is correct, in fact I can download it from the browser). I've also tried to remove the blank spaces from the file as suggested in xtk volume…
AkshayJ
  • 761
  • 6
  • 15
4
votes
1 answer

Can I output a mayavi plot as .vtk file to embed in a web app?

Okay, a little background here. I made a script that plots a dataset as 3d line plots using mlab.plot3d(), multiple times in Mayavi, after reading it from an xlsx file. Now, I am trying to make a web app to see the created 3d models in a web browser…
3
votes
1 answer

Changing the color of a pixel in a XTK Renderer2D

Currently, I display a .dcm file using XTK in a Renderer2D. Is it possible to change the color of some pixels in this renderer ? Thank you in advance :)
user2363392
  • 75
  • 1
  • 7
3
votes
2 answers

Finding world coordinates from screen coordinates

There's many answers to this problem, but I'm not sure that they all work with XTK, such as seeing multiple answers for this in Three.JS, but of course XTK and Three.JS don't have the same API obviously. Using a ray and Matrix seemed very similar to…
Karijuana
  • 254
  • 1
  • 2
  • 12
2
votes
0 answers

Convert volume to STL file?

I pulled the rep from XTK/K. Now I am able to load my created NII files into the slicer with the thresholding method. Now I am able to threshold my pixel data within the volume object. Is it possible to convert the thresholded volume which is…
Resident
  • 21
  • 2
2
votes
1 answer

windowing for DICOM should use rescaleSlope and rescaleIntercept

How do I do DICOM windowing in XTK? Just converting window width and center to WindowHigh and WindowLow doesn't produce the correct image. Shouldn't the code use the rescale slope and rescale intercept tags from the DICOM header to calculate the…
2
votes
1 answer

Xtk : Can't display label map

I slightly changed demo #11 to load my images instead of the demo's. I can load my MRI image just fine, see Demo. It also works if I load my label map as the main volume. window.onload = function() { // create and initialize a 3D renderer …
static_rtti
  • 46,349
  • 44
  • 123
  • 180
2
votes
1 answer

XTK Error while loading dicom files

After careful reading of several threads about the same kind of problems, I still don't know whats is going on with my dicom loading problem. here is the thing: i have a dicom dataset constituted of 193 .dcm files which are listed on my server in a…
JLecoeur
  • 35
  • 5
2
votes
2 answers

How can we change the opacity of image on 2Drender?

I would to know if there is a function that change the opasity of image on 2D render (like the action of hover on the canvas) thanks a lot,AMAL
AMAL JERBI
  • 69
  • 7
2
votes
1 answer

HTML example to use the non-compiled development version of xtk does not work

I'm trying to run the development version of xtk (it's the 1st time I use github, and I'm fairly new to javascript...): I did as indicated in https://github.com/xtk/X/wiki/X:DevelopersHeadsUp, forked xtk, cloned it into my computer and run…
roberto
  • 495
  • 4
  • 11
2
votes
1 answer

Displaying .dcm files with XTK's X.volume()

According to the lesson 15 I pass .dcm file to the volume. I get no errors (e.g. no parsing errors I faced before) but nothing is displayed. What could be wrong with the .dcm files? Here is a excerpt of the code I use: function demo(file){ var…
John Doe
  • 8,304
  • 10
  • 45
  • 68
2
votes
3 answers

XTK: Could not find the given container

I am using jQuery to dynamically create a div and then pass the id of that div as the container of a renderer3D. When I do: r.container = id I see an error in the JS console reading "Couldn't find the given container". I have checked and the div…
user1578214
  • 141
  • 1
  • 4
2
votes
1 answer

Is xtk_edge ready to use?

Is xtk_edge version ready for use? I've found a significant shift in apis from the previous version. What does the word "edge" mean for end user's like me, who has to determine if this version can be rolled into my project? Should I continue to use…
2
votes
3 answers

add mouseevents to webgl objects

im using xtk to visualize medical data in a webgl canvas. currently im playing around with this lesson: lesson 10 this library is pretty good but not very well documented. i want to get rid of that gui and add some mouseevents. if i load the mesh…
p0rter
  • 879
  • 2
  • 10
  • 28
1
2 3
10 11