- Notifications
You must be signed in to change notification settings - Fork12
Generate materials from text prompts in Unity
License
NotificationsYou must be signed in to change notification settings
aniketrajnish/Text-To-Material-Unity
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Generate materials from text prompts in Unity. Useschatgpt
anddall-e
models.
T2M.mp4
- Support for URP and HDRP available now, download from theReleases Section.
- For URP, import
Editor Coroutines
into the project from the Package Manager, if it's not available by default.
- Download the
.unitypackage
from theReleases Section. - Create/Login to your OpenAI account and get your API key fromhere.
- Import the package in your Unity Project.
- Go to
Project Settings -> T2M -> paste your API key
- Right click in the Project Window, click on
Create - > T2M
to open the Text-To-Material window. - Enter the prompt describing the type of material and texture of the material you want to create.
- Choose the model to use, the image size, and the quality (only for
dall-e-3
) for textures. - Click on Generate. The textures and materials are generated and saved in the
Assets/T2M Materials
folder.
gpt-4
anddall-e-3
might not be available for all the users.- The resposne generated by AI can sometimes not be in the proper format that we expect it to be for parsing. In such cases, just click on generate again. It works >90% of the time.
Contributions to the project are welcome. Currently working on:
Support for URP & HDRP materials.[Done!]- Support more texture maps. (Metallic map, Smoothness map, Roughness map etc.)
- Support for materials based on different shaders.
Better prompts for texture generation, to ensure seamless textures.[Done!]- Support for materials based on custom shaders (ig ambitious).
MIT License
Thankful to Keijiro Takahashi for hisAI Command Project.
About
Generate materials from text prompts in Unity
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published