SFraissTU / BA_PointCloud

PointCloud-BachelorThesis
BSD 2-Clause "Simplified" License
185 stars 42 forks source link

dynamic change of point budget #23

Open E251-1Baugeschichte opened 4 years ago

E251-1Baugeschichte commented 4 years ago

Is there a way to dynamically change the point budget while the viewer is running (as it is possible with point size). Therefore, is there a "reload" function that can be called to get the point budget from the Point Cloud Set again or is there need to implement this update into V2Renderer or V2TraversalThread?

also: the tuwien email adress seems to be not working anmyore

SFraissTU commented 4 years ago

Hi! No this is currently not possible. It should be rather easy to implement though, as the point budget has to be passed, as you said, from the dynamic point cloud set to the V2Renderer and then to the V2TraversalThread. I think it should be possible to simply change it while everything is running, without things breaking down, but I am not 100% certain at the moment. Haven't had the time to test it.

Are you sure about the tuwien email adress? I'm still using it and it seems to work fine for me. Did you get an error mail?

Cheers, Simon

E251-1Baugeschichte commented 4 years ago

Hi, I now managed to get it working with the following procedure

first of I copied the "protected override void Initalize" into a public void called "reInitalize", then

on button down:

on button up (if pointSet is disabled):

It is not very "dynamic" as you cannot see the points adding, but for now seems to sufficient. Do you see any issue with the procedure? I am worried, that this start multiple V2Renderer instances every time I change the point budget, or are all gameobjects (even if invisible) properly destroyed?

E251-1Baugeschichte commented 4 years ago

using the email adress I still get this error back image

SFraissTU commented 4 years ago

Hi! If you do it this way, I would advice you to call V2Renderer's "ShutDown" function before disabling the dynamic point cloud set to make sure the rendering threads are cancelled and all objects are properly deleted. You should be able to see in the unity editor if game objects are still alive or not.

The issue with the address is very strange - even if not entirely unexpected -, as other people can still reach me. I will try to figure this out. In the meanwhile, please contact me at e01425602@student.tuwien.ac.at

Simon

(Sorry for closing the issue first, this was a mistake)