I think this is the same issue I've described here: https://developer.apple.com/forums/thread/691674
Your script is correct, and you can confirm by opening the created "HelloWorldZ.usdz" file in USDView.
However, it looks like "displayColor" is not supported by apple AR viewers (AR Quick Look / Reality Composer). You have to create textures and shaders if you want colors there, otherwise they'll look pink / purple. I have not been able to find any official Apple documentation on this (if anyone can that'd be awesome), I only found a post on usd-interest google group from 2019 which reported the same: https://groups.google.com/g/usd-interest/c/8hD2rzRboeg/m/PSgIPlLCBgAJ with the answer:
And I was just told that ARQL does not currently support vertex displayColors in any capacity - neither without a bound material (as in the example I provided), nor as something read via a UsdPrimvarReader shader to feed to a UsdPreviewSurface... the only primvars currently supported in ARQL are texture coordinates for feeding a UsdUVTexture shader.
Topic:
Graphics & Games
SubTopic:
General
Tags: