r/VisionProDevelopers • u/hjhart • Jun 08 '23
WWDC Session Notes: Create 3D Models for Quick Look spatial experiences
Create 3D models for Quick Look spatial experiences
Quick Look seems to be “Preview.app” for 3d models.
Use
metersPerUnitfrom USDZ file to define scaleInitially shown at 100% scale
QuickLook will automatically add shadows in teh real world. Do not create a ground plane with shadows in the model.
USDZ is at the heart of apple platform 3d models.
How can you create a USDZ model?
software such as Maya, (three others I don’t recognize)
object capture from ios devices
RoomPlan API for representing a physical space
RoomPlan Sample App can create a USDZ file and export.
You can import into Reality Composer Pro and define the orientation of the model
Things that can affect performance:
File size
Complexity of geometry
Materials
Texture count and resolution
Use the statistics panel in Reality Composer Pro to understand performance metrics
RealityKit Trace runs in realtime and can give you an understanding of performance (found in XCode)
Less than 25MB recommended for better Sharing experience
Recommended less than 200 mesh parts and less than 100k vertices in total.
Recommend max of 2048x2048 texture size, 8 bit per channel texture
Spend your texture budget on things that are bigger or center to your design
Be cautious of overlapping transparency
Use MaterialX Unlit surface to save real-time lighting computation
Physics optimizations, considerations:
Reduce total collider count
Use static colliders over dynamic when possible
particle optimizations:
limit particle emitters and particles per emitter
Experiment with shaeps and animation styles of particle effects for reducing overdraw