Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some items generated by ai have wrong orientation #3

Open
tdl1001 opened this issue Apr 13, 2023 · 3 comments
Open

some items generated by ai have wrong orientation #3

tdl1001 opened this issue Apr 13, 2023 · 3 comments

Comments

@tdl1001
Copy link

tdl1001 commented Apr 13, 2023

Items generated by ai will have rotation (0, -90, -90), may of them look good, but some will have wrong orientation.
For example:
2023-04-13 203903

The ChatGPT return:

{
    "area_name": "Reception_Area",
    "X": 0.0,
    "Y": 0.0,
    "Z": 0.0,
    "area_size_X": 1055.422119140625,
    "area_size_Z": 1136.84423828125,
    "area_objects_list": [
        {
            "object_name": "Coffee_Table_1",
            "X": -202.7110595703125,
            "Y": 0.0,
            "Z": 315.69482421875, 
            "Length": 203.2,
            "Width": 93.04,
            "Height": 62.23,
            "Material": "Mahogany"
        }
    ]
}

In this extension, DeepSearch maybe found ('Coffee_Table_1', '/NVIDIA/Assets/Extensions/Samples/ActionGraph/samples/Desk/Desk.usda'),
then I will get a fallen desk with orientation(0, -90, -90).
But if I search in DeepSearch panel, and then drag the desk.usda to 3d scene panel, I will get a upright desk with orientation (0, 0, 0).

@tdl1001
Copy link
Author

tdl1001 commented Apr 15, 2023

I saw there is an attribute with name of "upAxis" in the Desk.usda file, how can I get the value in python script?

@tdl1001
Copy link
Author

tdl1001 commented Apr 15, 2023

I found this approach, but don't know if it is the best one.

        stage_ref = Usd.Stage.Open(item_path)
        if UsdGeom.GetStageUpAxis(stage_ref) == UsdGeom.Tokens.z:
                rotation = ...

@ShreyaKrishnarth
Copy link

My deepsearch is not able to generate 3D Objects can anyone help please? Although its generating the greyboxes but not real objects and also the objects its looking for does'nt match with my asset[Warning] [omni.example.airoomgenerator.deep_search] Search Results came up with nothing for Small_Cardboard_Box_1. Make sure you've configured your nucleus path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants