Post

Replies

Boosts

Views

Activity

Comment on How to add a sort of engraving type of text to a mesh in SceneKit?
you were right about the ballooning at the equator, i figured it out after a few days though normal map core image filter: http://flexmonkey.blogspot.com/2016/04/creating-procedural-normal-maps-for.html convert to metal https://ikyle.me/blog/2022/creating-a-coreimage-filter-with-a-metal-kernel and passing it to the shader by wrapping it like: let imageProperty = SCNMaterialProperty(contents: normalMapCGImage) material.setValue(imageProperty, forKey: "normalMap")
Aug ’24
Comment on How to add a sort of engraving type of text to a mesh in SceneKit?
after i posted this i asked around and normal maps seem to be the unanimous answer however im not sure how to implement them. i cant use blender because the text is meant to be programmatically generated. i read that i could create a normal map on the fly and then use that but im still figuring out how to make it work with my shader (the material + light source). i also discovered "add normals" which by default gives a disco ball effect to a mesh as well
Jul ’24