USDZ is a 3D file format that shows up as AR content on a website.

Posts under USDZ tag

200 Posts

Post

Replies

Boosts

Views

Activity

usdzconverter breaks the axis of rotation
Hello, I have a problem with converting GlTF to USDZ using usdzconverter. After converting, the resulted USDZ file has a displaced axis of rotation, when the original axis is placed in the center of the object. I've attached two screenshots, in the first one axis is correct (the file was converted with a third-party service) and in another one it's not (usdzconverter was used) Is there a way to fix it somehow? Thanks, Mikola
1
0
793
Jun ’22
The camera is stuck for a moment when loading the model
I use Entity.loadAsync to load the USDZ. The camera is stuck for a moment when loading the model. var cancellable: AnyCancellable? = nil     cancellable = Entity.loadAsync(contentsOf: Bundle.main.url(forResource: "vyygabbj_afr", withExtension: "usdz")!)       .sink(receiveCompletion: { error in         DispatchQueue.main.async {          cancellable?.cancel()          cancellable = nil         }       }, receiveValue: { [weak self] ey in         guard let self = self else { return }         self.modelEy = ModelEntity()         self.modelEy.addChild(ey)         self.rootAnchor.addChild(self.modelEy)         ey.availableAnimations.forEach {           ey.playAnimation($0.repeat())         }         DispatchQueue.main.async {           cancellable?.cancel()           cancellable = nil         }     })
0
0
721
May ’22
Changelog for 0.64->0.65 USDZ tools
Hi - I'm a founder at an AR SaaS company that relies on the USDZ conversion tools to deliver quicklooks to our Apple device users. I was wondering if there was a changelog for the 0.64 to 0.65 update that I could access (whether publicly, or under NDA) as our content pipeline has baked in a lot of the old 0.64 quirks, issues and unsupported USD features that we discovered (things like avoiding multi-UV material mapping, or how to ensure GLTF texture transforms come through). If we knew the specific changes made - whether bugs fixed, or additional USD features supported - it would make upgrading much smoother and more predictable. Is there anyone I can contact to get a list like that?
0
0
1k
May ’22
Applying OcclusionMaterial from RealityKit to Reality Composer scene?
I'm aware that you can create a simple scene in RC, import it to Xcode, and then add additional 3D objects with OcclusionMaterial applied to them using RealityKit. However, I would like to accomplish that the other way around, i.e. exporting a .reality-file (or usdz?) from Xcode with OcclusionMaterial applied into RC. Is that possible? If so, what's the workflow?
1
0
1k
May ’22
How to crop 3D model with swift?
I want to crop the usdz model in runtime. I use ModelIO for this. Before: [https://i.stack.imgur.com/yDXXF.jpg) After: [https://i.stack.imgur.com/m9ryg.jpg) First of all, get file from bundle let url = URL(fileURLWithPath: file) } else { print("Object not found in Bundle") } And then I need to access asset let asset = MDLAsset(url: url) What should I do after this step? How am I supposed to use SCNGeometrySource and SCNGeometryElement or MDLVoxelArray classes?
0
0
1.2k
May ’22
USDPython 0.64 setting PATH as Environmental Variable
Dear community, I downloaded the USDPython 0.64 Package for my macOS Big Sur 11 on my new Mac book pro with M1 (13inc). After installing it the .pkg ( that is a modelio) I open the folder in my Applications folder and I double click on the usd.command. I am on .zsh and I did .zshrc and inserted my filepath in my case are export PATH=$PATH:/Users/<myusername>/Applications/usdpython/USD export PYTHONPATH=$PYTHONPATH:/Users/<myusername>/Applications/usdpython/USD/lib/python export PATH=$PATH:/Users/<myusername>/Applications/usdpython/usdzconvert are these correct? I am not sure if that Machintosh HD should be /Users/<myusername> I keep getting the Error: failed to import pxr module. Please add path to USD Python bindings to your PYTHONPATH Any help would be much appreciated
4
0
6.8k
May ’22
Reality Converter fails to convert FBX on M1 Mac
Does Apple have any documentation on using Reality Converter to convert FBX to USDZ on an M1 Max? I'm trying to convert an .fbx file to USDZ with Apple's Reality Converter on an M1 Mac (macOS 12.3 Beta), but everything I've tried so far has failed. When I try to convert .fbx files on my Intel-based iMac Pro, it succeeds. Following some advice on these forums, I tried to install all packages from Autodesk https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-0 FBX SDK 2020.0.1 Clang FBX Python SDK Mac FBX SDK 2020.0.1 Python Mac FBX Extensions SDK 2020.0.1 Mac Still no joy. I have a work around - I still have my Intel-based iMac. But I'd like to switch over to my M1 Mac for all my development. Any pointers? Note: I couldn't get the usdzconvert command line tool to work on my M1 Mac either. /usr/bin/python isn't there.
7
0
4.3k
May ’22
SCNScene.write(to:) for usdz export only works for first call
I am using scene.write(to:"dirpath\name.usdz") to get usdz export functionality into my app (universal, macOS & iOS). My problem is, it ceases to work after the first use, quitting & restarting the app is the only way to re-enable it. I have tried reusing the same scene, and instantiating a new scene (both ways with the exact same node structure), same results every time: first invocation writes a file of ~14MB, any calls after that write 1.5-2k of garbage. I use a unique filename for each write, and check to make sure it doesn't already exist. Any ideas?
1
0
1.8k
Apr ’22
Is there a way to load RealityKit Custom entities?
I've been watching a 2019 Developer Video "Building Apps with RealityKit" and working along with it. It shows how to create a custom entity. It shows how to load entities from .usd files. How do you either load a custom entity, convert an Entity to a custom entity, or maybe move model hierarchy from an Entity to a custom entity? I assume there's a way to do this.
2
0
1.8k
Apr ’22
Photogrammetry 3D model real world size
Hi, I'm using the provided CaptureSample together with HelloPhotogrammetry to create a 3D model. Although I am making sure that there are depth images within the folder (TIF) - after building the model, the model size is tiny. How can I make sure that the model is built in the real world size? or - how can i resize the model to real world size? Thanks.
1
0
1.3k
Apr ’22
Quicklook not using individual texture coordinates of different maps
Hello, I have a gltf file, which I am converting to usdz using threejs online editor. The file is a sofa model, with all its maps baked to complete UV except diffuse fabric map which is tileable to emulate a fabric cloth. So the fabric map has to use an increased scale of 17 so it tiles properly, but the other maps dont need tiling and work on the 1scale value. The problem I am facing is that the Quicklook uses scale of diffuse fabric map and applies on all others as well, distorting the look. how can I control this? i am a windows user. thanks
0
0
518
Apr ’22
Access child components in USDZ with XCode?
I am fairly new to ios development, and i have a rather simple question (i guess): I exported an FBX model from blender with attached child elements (some empty axis). I need those transforms for a certain purpose in my app. However, they won't show up when im placing my model entity in the AR Scene and try to access it's child elements. However, they are showing up in the preview view in xcode when i click on the model file. Can someone please explain why this is and how I can access them? Would be lovely. Thanks for your help in advance!
5
0
2.7k
Mar ’22
Converting to USDZ using the Command Line?
I used to use usdzconvert to convert my .obj files to .usdz (adding the materials via command line parameters). usdzconvert however is written in python 2, which is no longer supported in macos x 10.12. Consequently after the latest update, I can't convert obj files to usdz anymore via command line and have to use the Reality Converter instead. Does anybody happen to know of other ways how to convert .obj files to .usdz using the command line? Thanks, Christoph
0
1
1.3k
Mar ’22
usdzconverter breaks the axis of rotation
Hello, I have a problem with converting GlTF to USDZ using usdzconverter. After converting, the resulted USDZ file has a displaced axis of rotation, when the original axis is placed in the center of the object. I've attached two screenshots, in the first one axis is correct (the file was converted with a third-party service) and in another one it's not (usdzconverter was used) Is there a way to fix it somehow? Thanks, Mikola
Replies
1
Boosts
0
Views
793
Activity
Jun ’22
The camera is stuck for a moment when loading the model
I use Entity.loadAsync to load the USDZ. The camera is stuck for a moment when loading the model. var cancellable: AnyCancellable? = nil     cancellable = Entity.loadAsync(contentsOf: Bundle.main.url(forResource: "vyygabbj_afr", withExtension: "usdz")!)       .sink(receiveCompletion: { error in         DispatchQueue.main.async {          cancellable?.cancel()          cancellable = nil         }       }, receiveValue: { [weak self] ey in         guard let self = self else { return }         self.modelEy = ModelEntity()         self.modelEy.addChild(ey)         self.rootAnchor.addChild(self.modelEy)         ey.availableAnimations.forEach {           ey.playAnimation($0.repeat())         }         DispatchQueue.main.async {           cancellable?.cancel()           cancellable = nil         }     })
Replies
0
Boosts
0
Views
721
Activity
May ’22
Changelog for 0.64->0.65 USDZ tools
Hi - I'm a founder at an AR SaaS company that relies on the USDZ conversion tools to deliver quicklooks to our Apple device users. I was wondering if there was a changelog for the 0.64 to 0.65 update that I could access (whether publicly, or under NDA) as our content pipeline has baked in a lot of the old 0.64 quirks, issues and unsupported USD features that we discovered (things like avoiding multi-UV material mapping, or how to ensure GLTF texture transforms come through). If we knew the specific changes made - whether bugs fixed, or additional USD features supported - it would make upgrading much smoother and more predictable. Is there anyone I can contact to get a list like that?
Replies
0
Boosts
0
Views
1k
Activity
May ’22
Applying OcclusionMaterial from RealityKit to Reality Composer scene?
I'm aware that you can create a simple scene in RC, import it to Xcode, and then add additional 3D objects with OcclusionMaterial applied to them using RealityKit. However, I would like to accomplish that the other way around, i.e. exporting a .reality-file (or usdz?) from Xcode with OcclusionMaterial applied into RC. Is that possible? If so, what's the workflow?
Replies
1
Boosts
0
Views
1k
Activity
May ’22
How to crop 3D model with swift?
I want to crop the usdz model in runtime. I use ModelIO for this. Before: [https://i.stack.imgur.com/yDXXF.jpg) After: [https://i.stack.imgur.com/m9ryg.jpg) First of all, get file from bundle let url = URL(fileURLWithPath: file) } else { print("Object not found in Bundle") } And then I need to access asset let asset = MDLAsset(url: url) What should I do after this step? How am I supposed to use SCNGeometrySource and SCNGeometryElement or MDLVoxelArray classes?
Replies
0
Boosts
0
Views
1.2k
Activity
May ’22
USDPython 0.64 setting PATH as Environmental Variable
Dear community, I downloaded the USDPython 0.64 Package for my macOS Big Sur 11 on my new Mac book pro with M1 (13inc). After installing it the .pkg ( that is a modelio) I open the folder in my Applications folder and I double click on the usd.command. I am on .zsh and I did .zshrc and inserted my filepath in my case are export PATH=$PATH:/Users/<myusername>/Applications/usdpython/USD export PYTHONPATH=$PYTHONPATH:/Users/<myusername>/Applications/usdpython/USD/lib/python export PATH=$PATH:/Users/<myusername>/Applications/usdpython/usdzconvert are these correct? I am not sure if that Machintosh HD should be /Users/<myusername> I keep getting the Error: failed to import pxr module. Please add path to USD Python bindings to your PYTHONPATH Any help would be much appreciated
Replies
4
Boosts
0
Views
6.8k
Activity
May ’22
Reality Converter fails to convert FBX on M1 Mac
Does Apple have any documentation on using Reality Converter to convert FBX to USDZ on an M1 Max? I'm trying to convert an .fbx file to USDZ with Apple's Reality Converter on an M1 Mac (macOS 12.3 Beta), but everything I've tried so far has failed. When I try to convert .fbx files on my Intel-based iMac Pro, it succeeds. Following some advice on these forums, I tried to install all packages from Autodesk https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-0 FBX SDK 2020.0.1 Clang FBX Python SDK Mac FBX SDK 2020.0.1 Python Mac FBX Extensions SDK 2020.0.1 Mac Still no joy. I have a work around - I still have my Intel-based iMac. But I'd like to switch over to my M1 Mac for all my development. Any pointers? Note: I couldn't get the usdzconvert command line tool to work on my M1 Mac either. /usr/bin/python isn't there.
Replies
7
Boosts
0
Views
4.3k
Activity
May ’22
AR Quick Look prevent the first screen from appearing before AR from showing up
Hello, My problem is that I would like to have the first screen (the screen right before entering AR) removed from the AR Quick look. I want it to where when I open the USDZ, it goes straight into AR, and not show the screen before it, similar to how Apple does it when you want to view their iPhone 13 pro in AR.
Replies
3
Boosts
0
Views
1.5k
Activity
May ’22
USDZ model size decrease
I want to remove unnecessary materials or textures in order to reduce the size of the USDZ model I have. How can I manipulate this model with swift? or, I can try any advice to reduce the size of the USDZ model
Replies
2
Boosts
0
Views
3.5k
Activity
May ’22
How to edit and crop 3D model with swift?
How can I crop a 3D model as seen in the photos? Should I use MetalKit or can I handle it with sceneKit and modelIO? I couldn't find any code examples on this topic. Can you share the code snippet Before: [https://i.stack.imgur.com/yDXXF.jpg) After: [https://i.stack.imgur.com/m9ryg.jpg)
Replies
1
Boosts
0
Views
2k
Activity
May ’22
Apple Product Models
Is there any way to download apple product models in .usdz directly from apple website?
Replies
0
Boosts
0
Views
803
Activity
Apr ’22
SCNScene.write(to:) for usdz export only works for first call
I am using scene.write(to:"dirpath\name.usdz") to get usdz export functionality into my app (universal, macOS & iOS). My problem is, it ceases to work after the first use, quitting & restarting the app is the only way to re-enable it. I have tried reusing the same scene, and instantiating a new scene (both ways with the exact same node structure), same results every time: first invocation writes a file of ~14MB, any calls after that write 1.5-2k of garbage. I use a unique filename for each write, and check to make sure it doesn't already exist. Any ideas?
Replies
1
Boosts
0
Views
1.8k
Activity
Apr ’22
Is there a way to load RealityKit Custom entities?
I've been watching a 2019 Developer Video "Building Apps with RealityKit" and working along with it. It shows how to create a custom entity. It shows how to load entities from .usd files. How do you either load a custom entity, convert an Entity to a custom entity, or maybe move model hierarchy from an Entity to a custom entity? I assume there's a way to do this.
Replies
2
Boosts
0
Views
1.8k
Activity
Apr ’22
Photogrammetry 3D model real world size
Hi, I'm using the provided CaptureSample together with HelloPhotogrammetry to create a 3D model. Although I am making sure that there are depth images within the folder (TIF) - after building the model, the model size is tiny. How can I make sure that the model is built in the real world size? or - how can i resize the model to real world size? Thanks.
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’22
Using the Object Capture API with the camera of the Android device.
Can I take photos from an android device or any camera instead of an ipad or iphone while using the Object Capture API? What negative side effects can it have. Note: I'm asking this question because I noticed that the size of the usdz model has grown too much in my experiments. (For example 200mb instead of 20mb)
Replies
1
Boosts
0
Views
1.5k
Activity
Apr ’22
Quicklook not using individual texture coordinates of different maps
Hello, I have a gltf file, which I am converting to usdz using threejs online editor. The file is a sofa model, with all its maps baked to complete UV except diffuse fabric map which is tileable to emulate a fabric cloth. So the fabric map has to use an increased scale of 17 so it tiles properly, but the other maps dont need tiling and work on the 1scale value. The problem I am facing is that the Quicklook uses scale of diffuse fabric map and applies on all others as well, distorting the look. how can I control this? i am a windows user. thanks
Replies
0
Boosts
0
Views
518
Activity
Apr ’22
Access child components in USDZ with XCode?
I am fairly new to ios development, and i have a rather simple question (i guess): I exported an FBX model from blender with attached child elements (some empty axis). I need those transforms for a certain purpose in my app. However, they won't show up when im placing my model entity in the AR Scene and try to access it's child elements. However, they are showing up in the preview view in xcode when i click on the model file. Can someone please explain why this is and how I can access them? Would be lovely. Thanks for your help in advance!
Replies
5
Boosts
0
Views
2.7k
Activity
Mar ’22
Converting to USDZ using the Command Line?
I used to use usdzconvert to convert my .obj files to .usdz (adding the materials via command line parameters). usdzconvert however is written in python 2, which is no longer supported in macos x 10.12. Consequently after the latest update, I can't convert obj files to usdz anymore via command line and have to use the Reality Converter instead. Does anybody happen to know of other ways how to convert .obj files to .usdz using the command line? Thanks, Christoph
Replies
0
Boosts
1
Views
1.3k
Activity
Mar ’22
USD Command / usdzconvert /Terminal
Hello friends, Im using Terminal to convert .glb file to .usdz file with USDPython-0.65 which I download from Apple developer website. I was using usd command properly since yesterday. Im getting this errors. https://ibb.co/PDmB3qn Anybody having this trouble too?
Replies
0
Boosts
0
Views
1.4k
Activity
Mar ’22
Generate USDZ thumbnails
Nevermind, will be using https://github.com/Shopify/screenshot-glb
Replies
1
Boosts
0
Views
1.6k
Activity
Mar ’22