matt1corey,
@matt1corey@iosdev.space avatar

Looking to provide a bit 3D depth to my bulb icons for Signals on Vision Pro - any idea what tools/API I should consider?

daniel,
@daniel@social.telemetrydeck.com avatar

@matt1corey I've had a lot of success with transform3DEffect, which was also recommended to me by people in the know https://developer.apple.com/documentation/swiftui/view/transform3deffect(_:)

matt1corey,
@matt1corey@iosdev.space avatar

@daniel I played around briefly with this, but it didn’t seem to have any effect on my Path views - will definitely revisit it

daniel,
@daniel@social.telemetrydeck.com avatar
matt1corey,
@matt1corey@iosdev.space avatar

@daniel So are you using it to add the curve to those panels? What I’m looking for is to lift the Shape object off the window (which I can do), but also to provide a depth to them. So they would stick out from the window, but still be anchored to them in the back.

I actually assumed that I’d be able to provide a ‘lineDepth’ to the StrokeStyle I’m using to draw my shapes, but it does not exist. I can only assume that this would be far more complex in 3D than I expect.

daniel,
@daniel@social.telemetrydeck.com avatar

@matt1corey ooh I get it now! Yeah I'm just moving and rotating the panels, not actually extruding them. I don't know if that's actually possible

matt1corey,
@matt1corey@iosdev.space avatar

@daniel Got it - thanks. I can get some ok results with a z-index offset and a shadow, but it’s still a 2D shape - not really what I had in mind (and for some reason, applying a shadow to the base of the bulb draws a huge rectangular shadow 🤷‍♂️). I also don’t think this shadow reacts to the lighting, which actually makes some sense.

Maybe SceneKit is the way to go? Will look there next

daniel,
@daniel@social.telemetrydeck.com avatar

@matt1corey ooh bit I like it already

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines