Matias Lavik
b893d8376e
Merge pull request #23 from mlavik1/lighting-improvements
...
Added lighting setting to DVR shader. Added specular lighting.
2020-07-28 21:14:55 +02:00
Matias Lavik
7b0d571bab
README.md: Replaced Youtube video with a PeerTube video
2020-07-28 21:02:35 +02:00
Matias Lavik
1e0367d400
Added lighting setting to DVR shader. Added specular lighting.
2020-07-27 11:48:42 +02:00
Matias Lavik
8728b0c7fe
Added some more comments to the new runtime GUI code.
2020-05-26 20:17:42 +02:00
Matias Lavik
174f2e263b
Merge pull request #20 from mlavik1/runtimegui
...
Runtime (in-game) GUI
2020-05-26 18:58:23 +01:00
Matias Lavik
bd5b40e6fa
More runtime GUI: Dataset importer, dataset editor: change visibility window, load TF, rotate object, set render mode
2020-05-26 19:46:40 +02:00
Matias Lavik
b187faeeb0
Runtime GUI WIP: OpenFileDialog/OpenDirectoryDialog + runtime GUI.
2020-05-25 19:54:02 +02:00
Matias Lavik
c6dcc731a7
Added "remove plane" button to slicing renderer window.
...
Renamed SlicingPlaneAnyDirection -> CrossSectionPlane.
Added more comments.
2020-05-24 20:42:15 +02:00
Matias Lavik
d3a6049884
Optimised histogram texture generation: Calculate the reciprocal once and then multiply by this for each sample value, rather than using the Mathf.InverseLerp function.
...
Also use GameObject.FindObjectsOfType rather than EditorWindow.GetWindow to find existing windows, since the latter instantiates one.
Added some comments.
2020-05-24 15:27:16 +02:00
Matias Lavik
59fee4cdaf
Merge pull request #19 from mlavik1/volumeserialisation
...
#18 : Serialise volume data
2020-05-24 13:40:09 +01:00
Matias Lavik
c5e61078c4
#18 : MaterialFactory + made serialised classes inherit from ScriptableObject - if not they get serialised every OnInspectorUpdate (=> terrible performance). The downside of this is that you will not be able to save imported datasets as an asset.
2020-05-24 14:15:06 +02:00
Matias Lavik
9c0254ad54
#18 : Serialise volume dataset an transfer function - to make sure it doesn't disappear when entering play mode.
2020-05-24 12:37:41 +02:00
Matias Lavik
acc72a4be0
Added a small offset to the boundary check in the Maximum Intensity Project shader code.
2020-05-13 22:13:02 +02:00
Matias Lavik
c4286951aa
Dupliace material when spawning a dataset (to make sure they don't use the same material)
2020-05-13 21:46:49 +02:00
Matias Lavik
a7daad2cbd
Added endianness-setting to raw dataset importer
2020-05-13 09:00:54 +02:00
Matias Lavik
5af2d825eb
Update README.md
2020-05-12 20:56:08 +02:00
Matias Lavik
3ef8b4061f
Fixed rotation
2020-05-12 16:36:22 +02:00
Matias Lavik
88cc0a543c
Misc code cleanup + GUI improvement: THe VolumeRenderedObject inspector now has more settings. The MeshRenderer and MeshFIlter has been moved to a child object, making the GUI less messy.
2020-05-12 16:19:39 +02:00
Matias Lavik
247224b1db
Fix for DICOM import failing on missing "slope" or "intercept" elements. Also made it ignore non-DICOM files.
2020-05-12 08:46:34 +02:00
Matias Lavik
1651e8418c
Update README.md
...
Added contact info. Added some tips for VR performance.
2020-05-11 09:45:43 +02:00
Matias Lavik
c4c9c70761
Use Hounsfield Units for DICOM data values. This makes imported DICOM files look better with the default transfer function. Also added a "Value Range" editor window.
2020-05-11 08:31:54 +02:00
Matias Lavik
3ea340b54c
Update README.md
2020-05-10 21:35:37 +02:00
Matias Lavik
7bc11f1c09
Update README.md
2020-05-10 21:09:07 +02:00
Matias Lavik
14ae8ed07a
GIF
2020-05-10 21:06:58 +02:00
Matias Lavik
59f480f73d
Update README.md
2020-05-10 21:06:20 +02:00
Matias Lavik
ba33a9b2cf
Added missing license + screenshots/gifs.
2020-05-10 20:57:52 +02:00
Matias Lavik
abd2c3b845
Added missing 3rdparty license.
2020-05-10 20:40:51 +02:00
Matias Lavik
83a462947e
Show slider for "visible value range" in VolumeRenderedObject's inspector (when using isosurface rendering mode)
2020-05-10 18:43:41 +02:00
Matias Lavik
311fd7762e
Update README.md
2020-05-10 18:14:09 +02:00
Matias Lavik
6432acac3b
Merge pull request #17 from mlavik1/dicom
...
#4 : Dicom importer
2020-05-10 16:17:02 +01:00
Matias Lavik
f65a2f13b4
Set DirectVolumeRenderingMaterial's minVal to 0 (by default)
2020-05-10 17:09:12 +02:00
Matias Lavik
d36986c61d
Histogram texture now has maximum 1024 samples (=> less memory usage + fixed error or large datasets)
2020-05-10 16:54:27 +02:00
Matias Lavik
105a931fe4
DICOM importer (using the openDicom library)
2020-05-10 15:30:11 +02:00
Matias Lavik
fcbf604438
Added some error handling in the RawDatasetImporter: Check that the dimension does not exceed the file size.
2020-05-08 18:33:22 +02:00
Matias Lavik
5b2c0ba6de
Fixed a mistake in the dataset importer window: It now shows the correct dimenson names ("X - Y - Z" and not "X - X - X")
2020-05-08 08:39:23 +02:00
Matias Lavik
34f31ce8a0
Merge pull request #16 from mlavik1/texture-formats
...
#14 : Texture formats
2020-02-26 19:03:27 +01:00
Matias Lavik
01e47a3052
Centralised code for setting material properties, and made sure the gradient texture is null when not needed.
2020-02-26 18:55:58 +01:00
Matias Lavik
d012728c2e
#14 : Use RHalf/RFloat (not RGBA) texture format for data texture. Use half precision floating point format for TF textures.
2020-02-26 18:29:44 +01:00
Matias Lavik
ebda446929
Merge pull request #15 from mlavik1/tf-saveload
...
#8 : Save/load transfer functions
2020-02-26 08:47:31 +01:00
Matias Lavik
ecb7f6e4c9
Apparently TransferFunction2D was a MonoBehaviour (not on purpose)
2020-02-26 08:46:36 +01:00
Matias Lavik
9a838724a5
#8 : Save/load transfer functions
2020-02-25 21:01:58 +01:00
Matias Lavik
00d1aa900e
Merge pull request #12 from mlavik1/negative-datavalues
...
Fix for negative data values not working properly
2020-02-20 09:38:24 +01:00
Matias Lavik
d2f3086da9
Fix for negative data values not working properly
2020-02-20 09:33:11 +01:00
Matias Lavik
982d19f2a3
Merge pull request #9 from denistribouillois/FixDepthEdgeIssue
...
Fix depth edge issue
2020-02-06 19:02:55 +01:00
Matias Lavik
ca6e198d5f
tabs->spaces
2020-02-06 19:02:04 +01:00
Denis Tribouillois
c60f9a327e
Fix depth edge issue
2020-02-06 16:12:48 +01:00
Matias Lavik
ff8fb3f9f8
Moved all classes into a separate namespace ("UnityVolumeRendering"). Added support for removing control points in the transfer function GUI.
2020-02-04 20:59:13 +01:00
Matias Lavik
1b00074bb0
New sample data sets + "ini"-file parser.
2020-02-04 20:09:51 +01:00
Matias Lavik
c71577b77a
Depth support: Volume should now intersect correctly with other meshes. This can be disabled by disabling the shader feature "DEPTHWRITE_ON", for improved performance.
2020-02-04 16:52:00 +01:00
Matias Lavik
2a4537158f
Removed manix.dat. Apparently the source I got this from did not have the right to redistribute it, so I have no choice but to remove it. I will upload more samples soon.
2020-02-04 10:12:55 +01:00