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

clearplot() before plot3d() "breaks" default shader #16

Open
cbecker opened this issue Feb 24, 2017 · 3 comments
Open

clearplot() before plot3d() "breaks" default shader #16

cbecker opened this issue Feb 24, 2017 · 3 comments

Comments

@cbecker
Copy link

cbecker commented Feb 24, 2017

I am not sure why this is happening, but I get no colors shown if I do:

using Displaz

fig = Displaz.newfigure()
clearplot(fig)
plot3d!(fig, rand(3,10), color=[Colors.RGB(1.0,1.0,0.0) for i=1:10])

In contrast to it working if I do

using Displaz

fig = Displaz.newfigure()
plot3d!(fig, rand(3,10), color=[Colors.RGB(1.0,1.0,0.0) for i=1:10])

This may have to do with the shader set by plot3d!, but from what I see it is hardcoded to generic_points.glsl, could it be that it's being overriden by Displaz itself (the binary)?

@cbecker
Copy link
Author

cbecker commented Feb 24, 2017

From what I see it has to be with the displaz backend. A workaround is to pass the shader to -clear:

using Displaz

fig = Displaz.newfigure()
clearplot(fig, "-shader generic_points.glsl")
plot3d!(fig, rand(3,10), color=[Colors.RGB(1.0,1.0,0.0) for i=1:10])

I am not sure whether this is an intended behavior, nor where to go to fix it.

@c42f
Copy link
Owner

c42f commented Feb 24, 2017

Yes, I'm afraid this is an inconsistency in the C++ code, which leads a weird double life as a GUI lidar viewer and scriptable 3D window... See

c42f/displaz#131

@cbecker
Copy link
Author

cbecker commented Feb 27, 2017

Thanks, I see it's a know issue. At least so far we have that workaround, it's been useful to me.

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

No branches or pull requests

2 participants