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")
Topic: Graphics & Games SubTopic: SceneKit Tags:
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
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jul ’24
Comment on URLSession Token Authentication: What's the 'correct' way to do it?
if i am understanding this correctly, you're saying we should refrain from setting the bearer token manually like this? if let token = Peach.OAuthToken { mutableURLRequest.setValue("Bearer (token)", forHTTPHeaderField: "Authorization") } which would be confusing because how else would you set it?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’25
Comment on how do you pass a texture to a metal shader in swiftui?
works great, although it only accepts one image? i have a shader that samples a color ramp and a noise texture so it would be helpful to have more in the future
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
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")
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
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
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Playing apple music from AVFoundation for visualization
is there an update on this? i think the intended functionality is that using a song request from MusicKit you should be able to create a waveform/visualizer based on the sound data? sort of like soundcloud's app
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Why did the song Ids change? [explanation inside]
so is it better to relate an album in our own database to an ISRC rather than an ID? it seems like albums dont return ISRC's though
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24