STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
234
IN-GAME
1,550
ONLINE
Founded
November 8, 2013
All Discussions > Help > Topic Details
Elmo Oct 7, 2018 @ 3:25am
Blender Cycles - Automatically apply textures
Hii! :)
Saw this video that shows textures applied automatically in Blender Render.
https://gfycat.com/SpryWelltodoDogfish

Is it possible for it to do the same when importing qc in Cycles Render (or Eevee Render in the future)?

Offtopic, there is a addon that imports source models directly into Blender without using Crowbar - https://github.com/REDxEYE/io_mesh_SourceMDL
Last edited by Elmo; Oct 7, 2018 @ 3:28am
Originally posted by Momo:
If you don't know where the video is from then I'm afraid that the addon I linked is the closest we are to being able to apply textures quicker.
< >
Showing 1-5 of 5 comments
Zappy Oct 7, 2018 @ 3:38am 
No. Source uses VTF-format textures, and there doesn't seem to be a Blender plugin that imports VTFs into Blender. And if it could, Blender would have to find the VMT material files of the model (which are typically very far from the QC/DMX/SMD files), look for $BaseTexture in the VMTs, and load the VTFs specified by $BaseTexture (which are sometimes not even in the same directory as the VMTs). Even then, what about VMTs that use special options, like the Refract shader or completely overriding $BaseTexture with $Detail?

So no, even with a VTF import plugin, it's simply not possible to automatically do this with the Cycles renderer, Eevee renderer, nor "Blender" renderer, unless you're okay with Blender Source Tools looking through every single folder on your computer until it finds what it's looking for, making it possibly take hours to import a model.
Last edited by Zappy; Oct 7, 2018 @ 5:46am
Momo Oct 7, 2018 @ 3:54am 
There Is a way to import VTFs and VMTs in Blender with the help of a few surprisingly unheard of addon:
https://github.com/REDxEYE/io_texture_VTF

Where did you find that video? This is the first time I see such functionality, but if it exists, it can be done for Cycles, it just needs to link the textures differently so they work with Cycles.

It is otherwise theoretically possible to automatically import textures, like for example prompting the user to pick the game's root folder and then by parsing the QC and the model materials finding the proper textures, but that would be quite difficult to program and would be prone to issues. For now, feel free to try the addon above, it should make things a bit quicker than having to convert every single VTF before importing the texture into Blender.
Last edited by Momo; Oct 7, 2018 @ 3:55am
Zappy Oct 7, 2018 @ 4:11am 
Originally posted by Momo:
There Is a way to import VTFs and VMTs in Blender with the help of a few surprisingly unheard of addon: -Link- -
"Surprisingly unheard of" indeed. Actually searching for "Blender VTF plugin" or such simply shows results about "it's not worth making such a plugin, just use VTFEdit to convert it to PNG".
Last edited by Zappy; Oct 7, 2018 @ 4:12am
Elmo Oct 7, 2018 @ 5:21am 
Originally posted by Momo:
Where did you find that video? This is the first time I see such functionality, but if it exists, it can be done for Cycles, it just needs to link the textures differently so they work with Cycles.
Sorry, no clue where the video is from.


Originally posted by Momo:
There Is a way to import VTFs and VMTs in Blender with the help of a few surprisingly unheard of addon:
https://github.com/REDxEYE/io_texture_VTF
That looks interesting.
The author of this thread has indicated that this post answers the original topic.
Momo Oct 7, 2018 @ 10:01am 
If you don't know where the video is from then I'm afraid that the addon I linked is the closest we are to being able to apply textures quicker.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: Oct 7, 2018 @ 3:25am
Posts: 5