Hide at a distance from the camera - works but slooooowwww
-
Hello again.
I was playing with the ruby and make a little plug in to hide everything away from the camera.
Like this:



It work perfectly! but slow like a turtle! this scene above take about 20 seconds
Here is the script:
model=Sketchup.active_model eye=model.active_view.camera.eye selection = Sketchup.active_model.selection selection.each { |entity| distance=eye.distance(entity.bounds.center) if distance > 20000 entity.hidden = true end }I think that calculate the center of all items is very hard work. Maybe you guys have a way that don't make the cpu calculate so hard. Or maybe what is taking time is to calculate the distance, then teh ideia is bad after all.
-
You could also adjust the fog settings.
-
well the idea is to work with large models, and don't have to manually hide objects to give more frame rate. I thinks fog don't help with less entities to display.
-
Fog generally tends to slow down the framerate.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement