Open haran2001 opened 3 years ago
Scaling shader based actors beyond a point leads to either the actor completely disappearing or a distorted rendering of the actor.
import numpy as np from fury import window, actor
dirs = np.random.rand(4, 3) colors = np.random.rand(4, 3) 255 centers = np.array([[1, 0, 0], [0, 0, 0], [-1, 0, 0], [0, 1, 0]]) 10 scales = np.array([1, 5, 10, 100])
sdfactor = actor.sdf(centers=centers, directions=dirs, colors=colors, primitives=['torus', 'torus', 'torus', 'torus'], scales=scales)
scene = window.Scene() scene.background((1.0, 0.8, 0.8)) scene.add(sdfactor)
current_size = (1024, 720) showm = window.ShowManager(scene, size=current_size, title="Visualize SDF Actor")
interactive = True
if interactive: showm.start()
- [x] Relevant images (if any) ![issue1](https://user-images.githubusercontent.com/56040092/116596846-863ccf80-a942-11eb-8925-3df9ac66ec21.gif) - [x] Operating system and versions (run `python -c "from fury import get_info; print(get_info())"`) {'fury_version': '0.6.1.post185+g8d8cb76', 'sys_version': '3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]', 'sys_platform': 'win32', 'numpy_version': '1.20.1', 'scipy_version': '1.6.2', 'vtk_version': '9.0.1', 'matplotlib_version': '3.3.4', 'dipy_version': '1.3.0'}
Thank you for the feedback @haran2001
Description
Scaling shader based actors beyond a point leads to either the actor completely disappearing or a distorted rendering of the actor.
Way to reproduce
dirs = np.random.rand(4, 3) colors = np.random.rand(4, 3) 255 centers = np.array([[1, 0, 0], [0, 0, 0], [-1, 0, 0], [0, 1, 0]]) 10 scales = np.array([1, 5, 10, 100])
sdfactor = actor.sdf(centers=centers, directions=dirs, colors=colors, primitives=['torus', 'torus', 'torus', 'torus'], scales=scales)
scene = window.Scene() scene.background((1.0, 0.8, 0.8)) scene.add(sdfactor)
current_size = (1024, 720) showm = window.ShowManager(scene, size=current_size, title="Visualize SDF Actor")
interactive = True
if interactive: showm.start()