{"id":13676546,"url":"https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity","last_synced_at":"2025-04-29T07:32:46.941Z","repository":{"id":201511308,"uuid":"106417158","full_name":"raphael-ernaelsten/Texture3DPreview-for-Unity","owner":"raphael-ernaelsten","description":"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)","archived":false,"fork":false,"pushed_at":"2017-10-30T10:23:33.000Z","size":2984,"stargazers_count":239,"open_issues_count":0,"forks_count":35,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-11T18:43:03.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphael-ernaelsten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-10T12:55:48.000Z","updated_at":"2024-11-06T20:44:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fdd48ec-8426-411b-a523-ef9e22267bec","html_url":"https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity","commit_stats":null,"previous_names":["raphael-ernaelsten/texture3dpreview-for-unity"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphael-ernaelsten%2FTexture3DPreview-for-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphael-ernaelsten%2FTexture3DPreview-for-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphael-ernaelsten%2FTexture3DPreview-for-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphael-ernaelsten%2FTexture3DPreview-for-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphael-ernaelsten","download_url":"https://codeload.github.com/raphael-ernaelsten/Texture3DPreview-for-Unity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251456047,"owners_count":21592283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:00:29.406Z","updated_at":"2025-04-29T07:32:41.924Z","avatar_url":"https://github.com/raphael-ernaelsten.png","language":"C#","readme":"# **[Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) preview for [Unity](https://unity3d.com)**\n\n## This package enables interactive previews of [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) assets in Unity's Inspector window.\n\n**[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)**\n\n----------\n\n### Previews and thumbnails of [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) asset\n\nWhen importing the Texture3D asset, Unity will automatically render a preview of the Texture3D to display in the Project window.\n\n![Texture3D asset thumbnail](https://i.imgur.com/K9IhLF3.jpg)\n\nWhen selecting a Texture3D asset in the Project windows, Unity will display an preview of the Texture3D in the Inspector.\n\n![Texture3D asset preview](https://i.imgur.com/Lm5Kykw.gif)\n\n----------\n\n### Previews of a [Texture3D](https://docs.unity3d.com/ScriptReference/Texture3D.html) field on a GameObject's component\n\nTo enable Texture3D field preview on a GameObject's component, add \n\n    [Texture3DPreview]\nin front of the declared field.\n\n![Texture3D field preview in Inspector](https://i.imgur.com/ru8u1qK.gif)\n\n----------\n\n### Requirements \n\n - Shader model 3 capable graphic card\n - Unity 2017.1+\n\n----------\n\n### TODO \n\n - Preview non uniform Texture3D in their respective ratio (currently all previews will be cube)\n - Add alpha blend mode for rendering previews\n\n----------\n\n### Know issues / limitations\n\n - Previews are currently in additive mode\n - Previews of multiples Texture3D assets don't work\n - Sometimes, the preview of a Texture3D field becomes empty\n\n----------\n\n### Contact\n\nFeel free to contact me for any comment or suggestion. Twitter : @raphernaelsten\n\n----------\n\n### Acknowledgment\n\nThe sample Texture3D asset provided with this package was made using [MRI scans found on this website](https://neil.fraser.name/news/2007/11/19/).\n\nHere's the process :\n - selected [the right-to-left gif](https://neil.fraser.name/news/2007/RL.gif)\n - rescaled it to 128x128 and extracted all the frames using [VirtualDub](http://www.virtualdub.org/)\n - 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\n ![Images sheet](https://i.imgur.com/hJvhZ78.jpg)\n - 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\n","funding_links":[],"categories":["Open Source Repositories","C#","Inspector","Open Source Packages"],"sub_categories":["Editor"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphael-ernaelsten%2FTexture3DPreview-for-Unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphael-ernaelsten%2FTexture3DPreview-for-Unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphael-ernaelsten%2FTexture3DPreview-for-Unity/lists"}