Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distorted rendering due to scaling #427

Open
3 tasks done
haran2001 opened this issue Apr 29, 2021 · 1 comment
Open
3 tasks done

Distorted rendering due to scaling #427

haran2001 opened this issue Apr 29, 2021 · 1 comment
Labels
type:Bug Fix Something isn't working

Comments

@haran2001
Copy link
Contributor

haran2001 commented Apr 29, 2021

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

  • Code example
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()
  • Relevant images (if any)
    issue1

  • 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'}

@skoudoro skoudoro added the type:Bug Fix Something isn't working label Apr 29, 2021
@skoudoro
Copy link
Contributor

Thank you for the feedback @haran2001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug Fix Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants