Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity
This package enables interactive previews of Texture3D assets in Unity's Inspector window. You can directly download the Unity package in the Release section (https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity/releases)
https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity
Last synced: 3 months ago
JSON representation
This package enables interactive previews of Texture3D assets in Unity's Inspector window. You can directly download the Unity package in the Release section (https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity/releases)
- Host: GitHub
- URL: https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity
- Owner: raphael-ernaelsten
- License: mit
- Created: 2017-10-10T12:55:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T10:23:33.000Z (about 7 years ago)
- Last Synced: 2024-08-03T13:14:34.322Z (6 months ago)
- Language: C#
- Homepage:
- Size: 2.85 MB
- Stars: 238
- Watchers: 17
- Forks: 37
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity3d - Texture3DPreview-for-Unity - This package enables interactive previews of Texture3D assets in Unity's Inspector window. (Open Source Repositories / Editor)
- awesome-opensource-unity - Texture3DPreview-for-Unity - This package enables interactive previews of Texture3D assets in Unity's Inspector window. (Open Source Packages / Editor)
- awesome-unity-open-source-on-github - Texture3DPreview-for-Unity - Enables interactive previews of Texture3D assets in Unity's Inspector window (Inspector)
README
# **[Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) preview for [Unity](https://unity3d.com)**
## This package enables interactive previews of [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) assets in Unity's Inspector window.
**[You can directly download the Unity package by clicking here or by going in the Release section](https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity/releases)**
----------
### Previews and thumbnails of [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) asset
When importing the Texture3D asset, Unity will automatically render a preview of the Texture3D to display in the Project window.
![Texture3D asset thumbnail](https://i.imgur.com/K9IhLF3.jpg)
When selecting a Texture3D asset in the Project windows, Unity will display an preview of the Texture3D in the Inspector.
![Texture3D asset preview](https://i.imgur.com/Lm5Kykw.gif)
----------
### Previews of a [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) field on a GameObject's component
To enable Texture3D field preview on a GameObject's component, add
[Texture3DPreview]
in front of the declared field.![Texture3D field preview in Inspector](https://i.imgur.com/ru8u1qK.gif)
----------
### Requirements
- Shader model 3 capable graphic card
- Unity 2017.1+----------
### TODO
- Preview non uniform Texture3D in their respective ratio (currently all previews will be cube)
- Add alpha blend mode for rendering previews----------
### Know issues / limitations
- Previews are currently in additive mode
- Previews of multiples Texture3D assets don't work
- Sometimes, the preview of a Texture3D field becomes empty----------
### Contact
Feel free to contact me for any comment or suggestion. Twitter : @raphernaelsten
----------
### Acknowledgment
The sample Texture3D asset provided with this package was made using [MRI scans found on this website](https://neil.fraser.name/news/2007/11/19/).
Here's the process :
- selected [the right-to-left gif](https://neil.fraser.name/news/2007/RL.gif)
- rescaled it to 128x128 and extracted all the frames using [VirtualDub](http://www.virtualdub.org/)
- used [Unity's VFX Toolbox Image Sequencer](https://forum.unity.com/threads/release-thread-vfx-toolbox-image-sequencer.438465/) to resample the frames count and lay them on an images sheet
![Images sheet](https://i.imgur.com/hJvhZ78.jpg)
- used a custom tool to build a Texture3D (basically create a Texture3D with the correct size then copy the images from the sheet as slices) from this sheet and save it as an asset