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

Is there a way to render points in XTK that scale with zoom?

Parts of a brain have been rendered with XTK [nightly] at: http://mindboggle.info/. however, if you zoom out, you can see that the red points/cubes don't scale.
satra
  • 3
  • 1
0
votes
1 answer

Renderer size in xtk

Playing with xtk (http://www.goxtk.org). How do you impose a size to the renderer? I'm asking because upon calling init on the renderer, the container div grows. I'm not using width or high 100% as in the examples, I'm using an absolute size. Thanks…
0
votes
1 answer

Bounding box of models and center of rotation of the camera in xtk

Trying out http://www.goxtk.com, great stuff! Is there a quick way to get the bounding box for a model or some other point that could be used as the center of rotation of the camera? Worst case, what's the best way to loop over the points? Thanks…
0
votes
0 answers

How to annotate the model

I've visualized the model through the XTK .js, but how can I annotate it freely.Should I annotate the model by getting the coordinates? I tried to go for some tutorials but didn't find the answer
wwx
  • 1
0
votes
1 answer

Why does the xtk.js nrrd loader load my file in asp.net-core local site, but not in production in Azure?

I can load and view my .nrrd file with no problem in the development local environment in asp.net core, but when I push to Azure and view the site I get an error "Uncaught TypeError: can't access property "split", d is null parse". The network…
0
votes
1 answer

Loading failed for VTK files hosted on server

I'm trying to host my vtk files on a server, like this demo file http://x.babymri.org/?pits.vtk, so that I can: p.file = 'http://x.babymri.org/?pits.vtk'; r.add(p); However, when using my own file link for p.file, I got following error: Error:…
Josh
  • 11
  • 3
0
votes
1 answer

XTK lesson 13 (ami example) - Removing the boundary lines in slices obtained from 2D volume rendering

I've implemented XTK lesson 13 from the AMI examples (this - https://fnndsc.github.io/ami/#xtk_lesson13) by passing a set of DICOM images. In the slices obtained, there are these colored dotted lines that I'm assuming is a boundary of some sort. I…
Zephyr
  • 1,612
  • 2
  • 13
  • 37
0
votes
0 answers

Is this a valid way to use componentDidMount?

Im trying to use the xtk visualization library with react. Im running into a type error that says that default.a.renderer3D is not a constructor. Can anyone tell me why this is happening, this is my first time using react so Im guessing its a really…
0
votes
1 answer

Using XTK or AMI.js to display Freesurfer while/pial objects on T1.mgz

I'd like to recreate a web version of FreeSurfer pial/white surfaces overlaid on T1.mgz similar to the first freeview image at https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/PialEdits_freeview. Using XTK I can get something that hints at…
Ben Wagner
  • 37
  • 1
  • 5
0
votes
1 answer

Transfer Functions in xtk

How would I go about plugging in a transfer function to determine coloring and opacity in xtk based on pixel scalar intensity and / or gradient magnitude. This may be a separable 1d transfer Functions or a 2d transfer function. In addition to VTK,…
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
0
votes
1 answer

--AMI JS-- Creating segmentation LUT

I have a question regarding the use of segmentation LUTs in AMI JS (not XTK but there is no ami js tag yet!). Particularly what I want to do is to load a segmentation / labelmap layer and display it with the right colors, one for each label. My…
Albert Alises
  • 1,018
  • 1
  • 8
  • 19
0
votes
1 answer

xtk renderer3D's pick() produce errors in webgl2 enabled browsers

Has anyone used xtk with webgl2 to do the pick() call? specifically renderer3d's. Error: WebGL: drawArrays: Feedback loop detected...renderer3D.js:1977:7 Error: WebGL: readPixels: Out-of-bounds reads with readPixels are deprecated, and may be slow.…
mei
  • 67
  • 9
0
votes
1 answer

XTK : How to render compressed dicom files(.dcm) in 3D & 2D

I am able to render '.dcm file' using X.renderer3D() and X.renderer2D(). But the issue is, the image is not displayed completely. When I manually uncompress and test, it is working fine. We can try to uncompress and render it at run-time, but it…
0
votes
0 answers

"Invalid Object Id" from THREE.js WebGL framework

Sorry for my bad english. I use a loader to load OBJ file with MTL file. Everything seems to work, but when I try to add my mesh to the scene, I get this error: "xtk.js:260 Uncaught Error: Invalid object id" Do you have an idea ? My code:
0
votes
1 answer

XTK - Toolkit.. the cube moves by should only rotating

Im a newbie in 3D computer graphics and seen an odd thing. I used the XTK-Toolkit, witch is great with DICOM. I add a cube in the scene and translated it far from the center (http://jsfiddle.net/64L47wtd/2/). when the cube rotate it looks like it is…
vagus1975
  • 13
  • 5