Posts

Post marked as solved
2 Replies
584 Views
Hi, I'm trying to load some sample 3D models into my app, and I cannot figure out how to make lightning work. The model looks lighted up in Reality Composer Pro and preview but looks extremely dark when loaded. Any ideas on how to fix it? The model is the Earth one you can easily get in composer pro when clicking add and searching for Earth. No other modifications have been made, thanks var body: some View { Model3D(named: "EarthTest", bundle: realityKitContentBundle){ model in model.resizable() .scaledToFit() .rotation3DEffect(Rotation3D(angle: .degrees(isRotating), axis: .y)) .onAppear{ withAnimation(.linear(duration: 30).repeatForever(autoreverses: false)) { isRotating += 359 } } } placeholder: { ProgressView() } }
Posted
by JuanSE0.
Last updated
.