This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TDA2PXEVM: SurroundView 3D usecase - demo car image replace

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hello,

We have project with SRV 3D use case.

A request  from the customer to replace Embedded demo car image with custom image is received:

"...If we change car image file(obj file) on Demo UI how can we change? Please, provide us some guide...."

Platform used is TDA 2Px EVM + VSDK 3.05


BR

Simo

  • Attached is  a document on updating car model

    TI_MeshGen_v2.pdf

  • Hi Shashank,

    Thanks for the document.

    Our customer start working with the guide and has some questions. Please check below:

    =================================================================

    * Condition :  Referred to TI_MeshGen_v2.pdf and what engineer did.

    - 3D Object file is converted to .pod file by PVRGeoPOD tool.

    - Car image file(bmp texture file) is matched to the made .pod file with PVR Shaman tool.

    - Made .pod file path and bmp file path same.

     

    * Questions :

    1. How can we change the 3D model position with provided tool?
    • Axes are can be changed but, 3D model cannot be moved to wanted position.
    • Seems to have to follow the guide but received 3D object file’s center position and guide’s center position are different.

     

    1. Where is <install dir> and where is srv folder?
    • In guide, it commented to make <install dir>/srv/models folder then save converted file.

    But it seems not clear.

    Engineer tried with two models folders below, but it doesn’t work.

     

    1. \vision_sdk\apps\tools\surround_vision_tools\ViewToWorld_Mesh_tool
    2. \vision_sdk\apps\src\hlos\modules\sgxRenderUtils

     

    1. And for complying to guide, found car.cpp in above (b.) folder only and it was modified. But build is failed.

    Does it need to be built? If so, please provide exact build guide and environment.

     

    1. If new Car image can be adapted, how can it be made as default?
    • Want to know how to change default index of car image.

     

    1. Does it need to update CARIMG_SET.LZ4 in Out folder of ViewToWorld_Mesh_tool along with AppImage?

    If so, for adding a new model to ViewToWorld_Mesh_tool, which code should be changed?

  • Simo,

    Do you have source code release for the Mesh tool? I think the sdk release is only executable so will not have all the needed files.

    For other questions

     Questions :

    1. How can we change the 3D model position with provided tool? -> This is somewhat tricky and not covered by the mesh tool since this is an external tool. I will reach out to the concerned GPU experts and see if they have any answers.
    2. For path locations etc: Please refer to my comment above, you may not have source code package, if so please request.
    3. The mesh tool allows you to choose any car model, so when you are able to import your new model, you can dump out the lz4 file corresponding to that model. You would have to update car.cpp as per document to be able to choose that car. The car model to choose can be set from the srv_params.txt file.
    4. The lz4 file will be generated by the mesh tool, once you are able to include the new model in the tool, the new car model will be automatically dumped in the lz4

    Regards

    Shashank

  • Hi Shashank,

    Below is customer engineer’s comments and attachment: 

    car-image.zip

    ------------------------------------------------------------------------------------------------------------

    I tried build by updating 'Car.cpp' to add a new Carimg, but failed due to C++ build error.

    Maybe because there are no necessary libraries in Build.

                     

    So, I didn't build it directly by updating the code,

    I tested it by running '3dvis.exe'(mesh tool) already released in 'vision_sdk\apps\surround_vision\ViewToWorld_Mesh_tool'.

                     

    Once I tried it to output the existing 'sedan' without changing the model.

                     

    After executing 3dvis.exe', I could see that 'V2W_IDX.BIN', 'V2W_LZ4', 'CARIMG_IDX.BIN' and 'CARIMG_SET.LZ4' are generated.

    And then I put these files into SD card and tested.

                     

    But, as a result, it output distorted image like the attached file.

    Maybe it seems that 'LUT_IDX.BIN' and 'LUT_SET0.LZ4' files are not matched with 'CARIMG_IDX.BIN' and 'CARIMG_SET.LZ4'.

    If my guess is right, please let us know how can we generate 'LUT_IDX.BIN' and 'LUT_SET.LZ4' matching with Car Image.

    Or, if it's wrong, please give us correct guide.

    --------------------------------------------------------------------------------------------------------------

    Thanks

    Simo

  • Simo,

    Are the corrupted images with the existing sedan model present in the tool?

    You may have to run calibration one more time to ensure that the right files are created.

    Shashank

  • Hi Shashank,

    Thanks for your support. Please find below customer comments:

    -----------------------------------------------------------------------------------------------------------------------------------------

    As following your answer, I generated 'CARIMG_IDX.BIN' and 'CARIMG_SET.LZ4' of the model to be changed to 'Mesh tool' and then proceeded calibration.

    Then, I could see that the model was changed properly in '2: 4CH ISS Cap + ISS ISP + Surround View(DSP1) + Display' mode and '4: 3D SRV 4CH ISS Cap + ISP + DeWarp + Synthesis(DSP1) + Display' mode.

    However, when executing the '6: 3D + 2D SRV 4CH ISS Cap + ISS ISP + DeWarp + Synthesis (DSP1) + RearView + Display' mode which will mainly be used, does not show any images and the operation stops.

    I attach the log output when executing each mode and the file in the 'TDA2px' folder of SD card.

    Would you please let me know the cause and how to resolve it?

    Thank you so much for your support.

     

    The attached file file is including : Output images of mode 4 and 6; Log files of mode 2,4 and 6; Binary / LZ4 files in SD card during test.

    Attached file:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/20190711_5F00_CarImage_5F00_Replace.7z

  • Hi Shashank,

    Case '6: 3D + 2D SRV 4CH ISS Cap + ISS ISP + DeWarp + Synthesis (DSP1) + RearView + Display' is modified by MMS.

    We need to check for this case our modification.

    BR

    Simo

  • Ok

    Please debug on your end. If there are no more queries, please close this thread. We can have a separate one on importing new car models.

    Shashank

  • Last mentioned issue is caused because of calibration big size data.

    If there are no more questions from the questomer thread will be closed this week.

    thanks,

    Simo