Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate materials from text prompts in Unity. Useschatgpt anddall-e models.

placeholder_t2m

T2M.mp4

Updates

  • Support for URP and HDRP available now, download from theReleases Section.
  • For URP, importEditor Coroutines into the project from the Package Manager, if it's not available by default.

Usage

  • 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 toProject Settings -> T2M -> paste your API key
  • Right click in the Project Window, click onCreate - > 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 fordall-e-3) for textures.
  • Click on Generate. The textures and materials are generated and saved in theAssets/T2M Materials folder.

Note

  • 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.

Contributing

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).

License

MIT License

Acknowledgement

Thankful to Keijiro Takahashi for hisAI Command Project.


[8]ページ先頭

©2009-2025 Movatter.jp