cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

PVZ Optimizer Fail optimization

LS_9776545
12-Amethyst

PVZ Optimizer Fail optimization

 Hi everyone, in my project I need to optimize some PVZ with complex geometry. PVZ it's 330MB, when I try to optimize with Vuforia Studio Optimzer tool the operation fail adn I need to close broser windows and re-open Vuforia Studio. 

 

I also tried to setup a procedure as described here: https://community.ptc.com/t5/Vuforia-Studio/Optimize-PVZ-before/m-p/649592 and all is working fine for models without complex geometry. 

 

Anyone has some help?

ACCEPTED SOLUTION

Accepted Solutions

Hi @RolandRaytchev, I found a solution to crashes of PVSOPTIMIZER. 

 

I edited the recipe file related to "pvsoptimize_low_vuforia.rcp", in particular I change "adapter/mergeFacesToBody" from 1 to 0 and all it's working fine for me. 

 

I verified this setup also for "pvsoptimize_med_vuforia.rcp". 

 

Note that, the procedure did not fail with all pvz models. 

 

Thank you for your support. 

 

 

View solution in original post

3 REPLIES 3

Hi @LS_9776545 ,

 

in the meantime it seems that the name of the tool changed from  pvaroptimizer.exe to pvsoptimize.exe (in the same directory) - which give the correct goal -  event to optimize the pvz (pvs  for assembly  +ol - for part geometry) files (pvz is only a compressed like zip format for the files)  So the first step is to convert the format form native data e.g. Creo Data to pvz and the second point is to optimize. For the different native data we have for each transfer the corresponding rcp or pvr config files (in the recipe directory) e.g. catia2pvdirect_import3d_dt.rcp for catia direct file format or fbx2pv.pvr for fbx convert. You can find some basic information / hints about the options of recipe format in 

https://www.ptc.com/support/-/media/6C5E1160BB734412869ABAB3CF34555A.pdf?sc_lang=en

chapter "Introduction to Recipe Editing ... " but there is no description of all options available.

You can find some additional information in the Tech support articles  (to see these article it requires PTC tech support account)

   https://www.ptc.com/en/support/article/CS54858

https://www.ptc.com/en/support/article/CS21380

the Creo Help:

http://support.ptc.com/help/creo/view/r6.0/en/index.html#page/creo_view_mcad_adapters%2FTheRecipe_Editor%2FA_Introduction_to_the_Recipe_Editor.html%23

 

http://support.ptc.com/help/creoview_hc/creoview50/en/index.html#page/creo_view_mcad_adapters%2FConfig-PVSChange%2FPVSChangeConfigAdvanced%2Fpvschangebatch_Command_Line_Options.html%23

 

Where you can find  particular option  e.g. you can search in the help for an option used in pvr or pvs file to see if there is an description and what the option means.  So far I know the rcp and pvr files contains all possible options which are applicable to an format  and the options are set to defaults values (recommended) Therefore I do think that some change of these options will make a sense – because it require very advance experience in this area. I want to mention them here for the sake of completeness

For the optimization the option are in the rcp files with the specific name e.g.  pvsoptimize_low_vuforia.rcp will be used for the low optimization of the geometry.

The first point will be to call your files in the cmd shell commando and to see what are the result.

calling  :

 

 

pvsoptimize.exe -h
pvsoptimize 8.0.0 - Build: 0.55.0.0-N2LLJl x86e_win64
Copyright (C) 2000-2021 PTC Inc. All Rights Reserved.

Optimize Creo View PVS & PVZ files for Augmented Reality Experience.

Files in:  *.pvz *.pvs

Command Line : pvsoptimize [options] <files>

where options can be:-
  @<file>    : Read options from the response file <file>
  -?, -h     : For basic help page
  -d<depth>  : Set the conversion file depth
  -H         : For extended help page
  -epdconnect: Enable EPD.Connect orientated conversion
  -mockup    : Enable MockUp orientated conversion
  -o<name>   : Set output file basename
  -p<name>   : Set output base path
  -j<name>   : Get job from <name>
  -r<name>   : Set recipe file to <name>
  -a<file>   : Package additional <file> with output
  -attrxml<name> : Add extra attributes to components from <name>
  -vc        : Disable all console print-out
  -vc1       : Redirect all console print-out to stdout
  -vc2       : Redirect all console print-out to stderr (default)
  -ve[n]     : Increment or set (if [n] is given) the error reporting level,
               -ve0 disables all error reporting, default 1
  -vL<file>  : Append all printed output to <file>
  -vl<file>  : Direct all printed output to <file>
  -vn<file>  : Direct all printed output to new log file <file>_#.log
  -vp<n>     : Set the process verbosity flag
  -vt        : Give the current date/time stamp with all print outs
  -vw[n]     : Increment or set the warning reporting level, see -ve

Files cannot be given from stdin

 

e.g. you can direct the outputs to a file and then check if the process did print some error referring for some problem occuring during the report.

When you mentioned that you use some pvz that are 330 MB and more - this could be critical based on the complexity. The question is - if  is is   possible to reduce the geometry before the pvz creation - some simplification actions could be done already in the native cad  format. For example you could omit some parts which are not visible or not relevant.  e.g. When we export Creo Native data to pvz we can create first some simplified representations containing only relevant parts -> where  also some small part are omitted. Also we can check if there are some geometry errors (in Creo Geom Checks) and fix them etc.

 

Other helpful related links  to commuity post are :

https://community.ptc.com/t5/Vuforia-Studio/Vuforia-studio-CAD-optimisation/m-p/626768#M6687?&art_lang=en&posno=1&q=pvr%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/CAD-optimizer-eliminating-parts/m-p/554698#M3413?&art_lang=en&posno=2&q=pvr%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/How-to-associate-my-image-texture-UV-on-my-3D-Model/m-p/657032#M7868?&art_lang=en&posno=3&q=pvr%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/CAD-Import-and-Optimization-Parameters-in-Vuforia/m-p/702065#M9069?&art_lang=en&posno=4&q=pvr%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/facing-problem-while-uploading-file-which-is-having-size-more/m-p/660272#M8022?&art_lang=en&posno=5&q=pvr%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/publishing-image-jpg-png-etc-into-AR-experience/m-p/591427#M4958%3F&art_lang=en&posno=3&q=pvs%20options&DocumentType=Community%20Forum&source=search

 

https://community.ptc.com/t5/Vuforia-Studio/Updating-pvz-files/m-p/558404#M3565%3F&art_lang=en&posno=4&q=pvs%20options&DocumentType=Community%20Forum&source=search

 

 

 

 

Hi @RolandRaytchev, I found a solution to crashes of PVSOPTIMIZER. 

 

I edited the recipe file related to "pvsoptimize_low_vuforia.rcp", in particular I change "adapter/mergeFacesToBody" from 1 to 0 and all it's working fine for me. 

 

I verified this setup also for "pvsoptimize_med_vuforia.rcp". 

 

Note that, the procedure did not fail with all pvz models. 

 

Thank you for your support. 

 

 

Thanks for the feedback.

In this case means 

adapter/mergeFacesToBody 0  - means false - that it will not marge faces to body /solid and you will have some unattached surface - so far for the display is not critical  but could have some effect when you select such unattached surfaces traying to select a particular components.

I do not know what   your source CAD system is,  but similar issues we will have on Parts coming form Creo Parametric when the Components have some geom check.s or there are some intersections between component solid. In this case the solution is to check the geometry when we try to fix the geom check , respectively to avoid intersections . So if you use other cad system and you have some problem with such models with playing sequences or selecting of components you can check the geometry  and try to fix with the available tools 

Announcements

Top Tags