Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Corruptinator | |
Old Version | Published before Godot 3 was released. |
Hello! After messing around with Blender, I learned that its possible to automatically wrap a seamless texture to an object (Using Cycles Nodes), whether it has UV Mapping or Not:
The way it works is that it uses the Object’s Texture Coordinates to tell the mapping of how the texture should be automatically wrapped around the object.
So is there any way to somehow recreate the automatic texturing in Godot’s MaterialShader Language or the MaterialShader Graph? If so then it would save a lot of headaches in UV mapping. If not then I could always bake this to a separate texture and export it through DAE exporter. But I just wanted to ask out of curiosity.
As far as I can tell, this kind of method would be useful for natural elements such as hills, caves, a dark cavern, or an evil dungeon…
P.S. If anybody is curious about the “Blend” Slider in the Image Tex Node, that’s to blend the texture to eliminate the noticeable seams.
Aren’t texture coordinates usually baked into the vertices? I haven’t used Blender though so I don’t really know how that works, but maybe you can associate the texture coordinates with the vertices of the exported model somehow.
raymoo | 2017-03-06 18:58
“whether it has UV Mapping or Not:” ; “it uses the Object’s Texture Coordinates”
Well… how are you texturing if there are no UVs? ^^ To clarify: UV = texture coordinates = an attribute found on all vertices of a mesh (usually) that are then used in the shader.
I don’t think Godot has any built-in tool to generate UVs like that.
You can eventually program a shader that uses another attribute to map textures (positions? Colors?) but that’s pretty specific.
Also I can’t see your image, the link is maybe private, oversized or something.
Zylann | 2017-03-06 20:26
Hang on, I’ll see what’s wrong with the image.
Corruptinator | 2017-03-07 01:32
Image Fixed, Hopefully…
Corruptinator | 2017-03-07 01:45
Any idea on how that can be done?
Corruptinator | 2017-03-07 01:50