Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Shading? #29

Open
banesullivan opened this issue Oct 13, 2019 · 2 comments
Open

Shading? #29

banesullivan opened this issue Oct 13, 2019 · 2 comments

Comments

@banesullivan
Copy link
Contributor

Are there any ways to shade a mesh? For example, when viewing a mesh without any scalar data, it's rather difficult to interpret:

import pyvista as pv
from pyvista import examples

pvmesh = examples.download_dragon()

import odysis as ody
mesh = ody.Mesh.from_vtk(pvmesh)

ody.scene(mesh=mesh)
ody.plot()

Screen Shot 2019-10-13 at 1 27 32 PM

@banesullivan
Copy link
Contributor Author

Whoops this is a duplicate-ish of #5 (I should really look around before posting issues)

@martinRenou
Copy link
Owner

No worries!

Well, the thing is that Odysis is made for analysing data bound to meshes (after some computation). If there are no data, there is nothing to analyse.

Also, concerning lights and shading, the problem I find with lights computation in shaders is that it alters the color-mapping colors.. So I find it pretty annoying.

One way we could fix this would be by adding the possibility to enable/disable lightings in shaders.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants