Itoo Software Forum

Author Topic: Point Cloud - hard to select  (Read 560 times)

RealViz

  • Sr. Member
  • ****
  • Posts: 343
Point Cloud - hard to select
« on: May 27, 2024, 10:37:08 AM »
Hello,
So I manually installed Max2Arnold to test FP 9. I was really looking forward to Ivy and also the new PointCloud. However, with PointCloud, I ran into a rather annoying thing right from the start. The individual elements are now very hard to select. Previously, all you had to do was hit a point to select an element. Now it's almost impossible and the only way to select is with Rect. selection.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2562
Re: Point Cloud - hard to select
« Reply #1 on: May 27, 2024, 11:46:16 AM »
Hi,

I'm sorry to hear you're facing trouble with it. I just performed some quick tests with the current beta and was able to select the Forest object(s)/items in the Custom Edit mode within the Points-Cloud Viewport Display mode without any issues. If possible, please feel free to send us your scene - preferably simplified and containing only the problematic object(s). Ideally, if you can reproduce it in a minimal scene, it would be greatly appreciated. Thanks in advance.

Best regards,

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4442
    • iToo Software
Re: Point Cloud - hard to select
« Reply #2 on: May 27, 2024, 12:38:48 PM »
This has been changed for performance reasons:

When you hover the cursor over a Point-cloud object, the plugin must check each dot, and return a valid "hit" when intersecting.
This is done at CPU level, and we noticed that may cause viewport lag with dense objects.

For this reason, we limit the checking process only to a number of dots by object.
Since we changed significatively the Point-cloud mode (this is described in the FP9 release notes), hit-testing process is affected as well.

Initially we have defined a limit of 1000 dots by object for testing. This may be changed in forestpack.ini:

Quote
We included several parameters in the configuration file (forestpack.ini) for fine tuning:
   
  • cloudPointsByObject (default: 250000): number of points of each Forest object. Setting it to 0, reverts to the classic Point-cloud mode.
  • cloudHitTestMaxPoints (default: 1000): maximum number of points used for hit-testing (to select items on viewport). You can reduce it, to improve hit-testing performance.
  • cloudSubSelDensity (default: 300): percent of points for selected items on Custom Edit mode.
  • cloudSubUnselDensity (default: 100): percent of points for unselected items on Custom Edit mode.

Depending of your feedback while the beta, me may increase this default value (although you may change it manually). But please note this also affects viewport performance.

Also usually moving the cursor a bit over nearest dots returns a valid hit, letting you to select the Forest object.

3DS Max includes a hit-testing mode at GPU level, but is disabled by default (we unknown the reasons).
But even enabling it (which can be done from Maxscript), i think it's not available for third-party plugins.

Carlos Quintero
iToo Software

RealViz

  • Sr. Member
  • ****
  • Posts: 343
Re: Point Cloud - hard to select
« Reply #3 on: May 27, 2024, 12:51:02 PM »
Thanks, higher cloudHitTestMaxPoints value works fine. Thx

RealViz

  • Sr. Member
  • ****
  • Posts: 343
Re: Point Cloud - hard to select
« Reply #4 on: June 06, 2024, 09:47:46 AM »
After longer testing, 10000-20000 seems to be the optimal value. The impact on performance is not significant. For large scenes, more objects (not the FP, but the objects themselves within the scene) slow down far more than this value.
Just my output so you can possibly adjust the value for the final version of FP.

OU9561

  • Jr. Member
  • **
  • Posts: 57
Re: Point Cloud - hard to select
« Reply #5 on: June 08, 2024, 09:57:51 PM »
Hey, just wanted to second that with the new beta selecting cloud points Forest objects is almost impossible (at least for me!) I keep getting frustrated and just going to the select by name max menu.
I appreciate the increased performance... but maybe you can strike a better compromise.
Just my 2 cents!

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4442
    • iToo Software
Re: Point Cloud - hard to select
« Reply #6 on: June 09, 2024, 08:47:19 AM »
Quote
Hey, just wanted to second that with the new beta selecting cloud points Forest objects is almost impossible (at least for me!) I keep getting frustrated and just going to the select by name max menu.
I appreciate the increased performance... but maybe you can strike a better compromise.

Hi, Definitively the default value for hit-testing (1000 dots) seems too low. For next beta, we'll increase it to 10k.

Please try changing it at C:\Users\<your user name>\AppData\Local\Autodesk\3dsmax\<your max version>\ENU\en-US\plugcfg\forestpack.ini:
cloudHitTestMaxPoints=10000

Thank you all for the feedback.
Carlos Quintero
iToo Software