104 questions
1
vote
0
answers
74
views
How to Create a 3D Texture with Depth from Slices for KTX2 in Three.js?
I’m trying to create a 3D texture with depth using KTX2 files for volume rendering in Three.js. I have a KTX2 file that, when extracted using,produces 64 slices named output_depth*.png, each of size ...
0
votes
1
answer
145
views
Mayavi volume does not render colors, until altered interactively. Thus can't save in the batch mode
I am working on a 3D visualization, in which I would like to mark part of the space, thus drawing something like a semi-transparent cloud in a given color.
I was googling for recipes and here is what ...
1
vote
0
answers
168
views
Pose estimation of 3D object and 2D picture, but it's X-ray volumetric data (DRR of CT/MRI)
How can I localize 2D projections in (dense, transparent) 3D volumes? I seem to only find algorithms that work on datasets with non-transparent surfaces. Those algorithms rely on geometric assumptions ...
0
votes
1
answer
182
views
what the difference of PBR(physically-based-rendering) and volume rendering?
I have konw:
Volume Rendering: We know the focal point of the camera, and the connection between the focal point and the pixel can create a ray.
We can sum the colors of all points on this ray to ...
0
votes
1
answer
431
views
Making a 3D model in VTK solid instead of hollow inside
I'm trying to create 3D model of the skull using VTK [example]:(https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/HeadBone/)
#!/usr/bin/env python
# noinspection ...
1
vote
0
answers
101
views
Direct Volume Rendering in Java - how does an RGB transfer function work?
I am creating a direct volume rendering application with the goal of writing at least 2 2d transfer functions and a 3d transfer function for determining colour and opacity values for voxels.
I have a ...
1
vote
0
answers
86
views
OpenGL eye position to texture space
I'm following this tutorial by nVidia for implementing a fluid simulation, however i'm confused about this part in the the ray marching algorithm section.
The ray direction is given by the vector ...
1
vote
0
answers
311
views
How should I render an atmosphere between objects and a cubemap in OpenGL
I have got a scene with an object and a cubemap in OpenGL.
My atmosphere shader(rayleigh scattering) renders to a quad which is right infront of the camera.
This of course obstructs vision on my ...
0
votes
1
answer
138
views
How to convert vector (k1, k2) to RGBA (r, g, b, a) in volume?
I have a 3d array representing a volume. Every voxel keeps a vector (k1, k2) as its local principle curvature.
Now, I need to visualize this volume by color (just like the picture below). So I need to ...
1
vote
1
answer
2k
views
Nearest neighbor interpolation in GLSL
I have a GLSL fragment shader as part of a pipeline that renders slices of two 3D volumes blended together. For one of the volumes, I would like to use nearest neighbor interpolation since it is a &...
1
vote
1
answer
468
views
Volumetric Rendering in WebGL
I have a 3D array dataset of scientific data that is to be rendered using WebGL. This is the code that I have wrote and this is the result that I have achieved so far.
I am clueless for two things ...
2
votes
1
answer
567
views
How best to create a filled volume of Lorenz Attractor in python for volume rendering
I am trying to create a 3D array to then perform volume rendering on (in other software or volume rendering packages) of strange attractor like Lorenz Attractor. It is easy enough to plot the ...
0
votes
1
answer
427
views
How can I speed up the compositing raycasting function?
I'm currently working on a volume rendering project in python where I use a compositing ray casting function to produce an image, given a 3D volume consisting of voxels. The function (which I show ...
0
votes
1
answer
163
views
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 ...
7
votes
1
answer
1k
views
How to visualize 3D scalar field with Helix.SharpDX Volume Rendering?
I have a task to visualize 3D field of scalars using Helix Toolkit. The input array contains double values without limitations, but usually somewhere between [-50000, +50000]. The scalar value affect ...
2
votes
1
answer
2k
views
GPU ray casting (single pass) with 3d textures in spherical coordinates
i' am implementing an algorithm of volume rendering "GPU ray casting single pass". For this, i used a float array of intensity values as 3d textures ( this 3d textures describes a regular 3d grid in ...
1
vote
0
answers
227
views
Why the OpenTK(C#) based rendering to texture showed nothing
My project aims to render to texture based on OpenTK (Version 3.0.1.0, C#). Most codes were translated from this tutorial which using C++.
I just want to use an texture(int backfaceTex) in the ...
2
votes
1
answer
1k
views
OpenGL How to calculate worldspace coordinates from frustum aligned vectors?
I am a graphics programming beginner working on my own engine and tried to implement frustum-aligned volume rendering.
The idea was to render multiple planes as vertical slices across the view ...
0
votes
1
answer
393
views
How to visualize 3D volume?
I had tried the following demo code in Matlab. I'm using Matlab 2018b
load('spiralVol.mat');
h = volshow(spiralVol);
But I'm getting a black screen.imshow() is working properly. Is it related to ...
0
votes
0
answers
500
views
When to apply phong shading in volume data?
I have a volume dataset, that I can render(this was part of a homework)
I have already implemented ray casting using front-to-back composition and I want to integrate phong-shading. For computing the ...
2
votes
0
answers
180
views
Volume reconstruction from 3D image gradient in Matlab
For 2D images- Gx and Gy gives the information on vertical and horizontal edge infromation respectively. Angle of the gradient direction vector can be calculated from inverse of tan(Gy/Gx) and edge ...
1
vote
1
answer
408
views
How can I create a surface file using multiple DICOM files in JavaScript using Papaya?
I am trying to do volume rendering using one of the open source project. I want to create a surface file from my DICOM images. I know this is possible by using mango viewer exe; but I want to do it ...
1
vote
0
answers
446
views
Volume rendering in vtk(python) using low data of grid
I would like to do volume rendering in vtk(python) using low data of grid and scalar values.
The Data which I have is like below
#{
# "Field Quantity": "p(x,y,z,f)"
# "Field Quantity Units": "...
1
vote
0
answers
133
views
Convert from Simple Ray Casting to X-Ray Rendering
I am referring to the code by Lebarba for Volume Rendering. What I am trying to do is the X-Ray Rendering rather than Ray casting.
Here is the result for the Ray casting with the code
RayCasting
...
1
vote
1
answer
1k
views
How to render a Float32Array cube with vtk.js?
I want to render a 3D volume with vtk.js. My issue is that all the tutorials/examples in the vtk.js documentation load and render vti files. In my case, my data is just a Float32Array which contains ...
1
vote
1
answer
580
views
Large-scale volume rendering and visualization libraries for terabyte-size data
I want to visualise 3D volumes of data that span between a few gigabytes to a few terabytes. One solution would be to roll my own but this may take some time. To avoid this I am currently exploring ...
2
votes
1
answer
3k
views
Writing to an empty 3D texture in a Compute Shader
I am attempting to create an empty 3D texture, the dimensions and format of which are loaded in at runtime. I then want to modify the values of this texture, which I am then volume rendering with a ...
0
votes
1
answer
2k
views
Volume Rendering in OpenGL using 2D textures
Why we have to align the textures in different directions depending on the perspective of the camera? Shouldn't it be the same?(If I enabled depth test)
Edit 1:
I used my own program to test it.
...
0
votes
1
answer
9k
views
3D texture sampling in OpenGL
I am currently trying to learn ray casting on a 3D texture using something like glTexImage3D. I was following this tutorial from the start. My ultimate goal is to produce a program which can work like ...
3
votes
0
answers
1k
views
Rendering a surface (or a smoothed volume) from a numpy array with VTK
I'm discovering VTK and want to use it to plot a 3D numpy array. So far, I've managed to convert a numpy array to a vtk.Volume and displaying it but from there I am having a hard time getting ...
0
votes
1
answer
2k
views
Ray-Volume Intersection in OpenGL
I am making a volume renderer. I have successfully read the volume and have few classes ready from my ray tracer. Now problem is how to do Ray and Volume (It's size is 256 * 256 * 256) intersection so ...
8
votes
2
answers
708
views
How could I polygonise a bool[,,]
If anyone cares, I'm using WPF....
Beginning of story:
I got a series of gray-scale images(slices of a model). The user inputs a "range" of gray-scale values to build a 3D model upon. Thus I created ...
0
votes
1
answer
3k
views
VTK how to Import 3D image data via imageImport on c++ for Volume Rendering
Through VTK Python API, we can import/make 3d image data and Volume Rendering as follow:
And the Python code is:
# coding=utf-8
import vtk
from numpy import *
import random
num = 74
# We begin by ...
1
vote
1
answer
578
views
How to volume render simple 3D Data via yt-project
yt-project is a nice toolkit for volumetric data.
But the dataset it used is a bit of complex, such as Enzo data.
So if I only want to volume render a simple 3d data via yt-project, how to load data? ...
1
vote
1
answer
963
views
How to do the blending in Volume Rendering using GLSL?
This introduces the method of Volume Rendering using obsolete API of OpenGL. But now, I want to complete the Volume Rendering using GLSL and I have finished some parts of it. My question is how to do ...
0
votes
1
answer
1k
views
How to use the hardware's 3D texture sampling with a flipbook style volume texture?
A question sort of addressing the problem and another question asking a related question.
I have a 2D texture that has 12x12 slices of a volume layered in a grid like this:
What I am doing now is ...
1
vote
1
answer
896
views
What is the function of the TransferFunc in Volume Rendering using GLSL?
I have a problem in Volume Rendering using GLSL. The source code can be found in the following link https://github.com/toolchainX/Volume_Rendering_Using_GLSL. In the fragment shader named raycasting....
-1
votes
2
answers
945
views
vtkOpenGLExtensionManager Extension GL_VERSION_1_2 could not be loaded
I'm getting this error at runtime when launching my C# volume rendering program.
I saw that I'm not the only one, but still did not find any solution. I read that it could be a NVidia related error. ...
0
votes
0
answers
402
views
Directx11 Volumetric Render Positioning
So I have been looking into volumetric rendering using raycasting and i found an tutorial blog here http://graphicsrunner.blogspot.co.uk/2009/01/volume-rendering-101.html
Now I managed to get this ...
0
votes
2
answers
2k
views
Volume rendering using ray-casting- flowing through the volume
I'm working on my volume rendering application (C# + OpenTK).
The volume is being rendered using raycasting, i found a lot of inspiration on this site:
http://graphicsrunner.blogspot.sk/2009/01/...
2
votes
1
answer
3k
views
Unity 3D textures - Loading 2D Texture Array
I'm having an issue creating a 3D texture and filling it with images. What I want to do is creating a Volumetric/3D texture with the RGBA values of my images, and put it in order in the texture. In ...
0
votes
0
answers
114
views
Mesh vertex rotation in Matlab
I have a 3D matrix in Matlab that was created using a volume MRI scan. I then use matlab toolbox iso2mesh (vol2surf) to convert this volume to a surface mesh and then extract the nodes/vertex ...
1
vote
2
answers
2k
views
Draw multiple planes in vtk python api
I am trying to render an indoor scene with floor and walls and box like furniture in it using vtk in python. I figured how to draw a single plane in vtk (see code below). But I cannot figure out how ...
2
votes
1
answer
2k
views
VTK - Volume Rendering from a Rectilinear Grid
I'm developing a C++ application that uses VTK for some visualization. I need to read a .vtr file (RectilinearGrid) and render it using VTK volume rendering features.I tried to do that with Paraview ...
0
votes
0
answers
637
views
3D volume rendering in MATLAB
I started with the vol3d function from MATLAB file exchange for the 3D display part but its slowing down the entire application.
I am working on a MATLAB based GUI. Need to display a volume of size ...
0
votes
0
answers
192
views
maintain resolution in mayavi or vtk during object rotation
In my application a user interacts with a 3D volumetric rendering. The data is quite noisy, but there are objects of interest buried in the noise. My users are able to get a good geometric sense of ...
0
votes
1
answer
401
views
volume rendering raycasting artifacts
I am trying to implement a simple raycasting volume rendering in WebGL.
It is kind of working, but there are some artifacts when you rotate the volume around (i.e. the head appears deformed).
Live ...
0
votes
1
answer
371
views
mayavi enthought volume rendering buggy gui
I think I have come across a genuine bug. It seems that something very strange and certainly unintuitive is happening with the colortransferfunction(CTF) interface.
I'll describe here what I've shown ...
0
votes
1
answer
238
views
Hounsfield values in volume rendering
I am wondering how the hounsfield values are handled when visualizing CT datasets. Since the range of the HU unit contains negative values which might be problematic to handle (for example when ...
2
votes
1
answer
1k
views
Volume rendering from inside volume
We've been doing lots of work trying to volume render 3D cloud fields in WebGL. The approach we've taken so far is outlined here - the start position of each ray is the current position in the front ...