Grid rendering incorrectly in glviewer

Asked by Matt Kesseler

Hi all. I've been working on my simulation and the code is working well for the most part. However, after setting grids to appear in the general view using the controller (by pressing g in the simulation view), I've noticed that the gridlines don't render very well when I line the view up with a co-ordinate axis. This effect can clearly be seen in the below image, and occurs in both orthogonal and perspective views, regardless of subdivision size.

http://postimg.org/image/q29lk93vp/

Please let me know if it is possible to resolve this display issue. Additionally, is there any way of coding the python script to include these grids automatically, without having to manual activate them with the controller and view?

Kind regards,

Matt.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Jan Stránský (honzik) said :
#1

Hi Matt,

> Hi all. I've been working on my simulation and the code is working well
> for the most part. However, after setting grids to appear in the general
> view using the controller (by pressing g in the simulation view), I've
> noticed that the gridlines don't render very well when I line the view up
> with a co-ordinate axis. This effect can clearly be seen in the below
> image, and occurs in both orthogonal and perspective views, regardless of
> subdivision size.
>

> http://postimg.org/image/q29lk93vp/

I have tried grid on two computers
- laptop, Ubuntu 14.04, qt4 build, with the same problem you showed on
the picture.
- desktop, Ubuntu 15.10, qt5 build, and it looked smooth as I would expect.
So qt4 vs qt5 could be one reason. However, some other software or hardware
differences may be the source problem as well, I am not really familiar
with this issue, so probably somebody else (Anton?) could help more..

>
> Additionally, is there any way of coding the python script to include
> these grids automatically, without having to manual activate them with the
> controller and view?
>

###############################
renderer = yade.qt.View()
renderer.grid = (True,True,True) # or some other combination of True/False
for x,y,z
###############################

cheers
Jan

Revision history for this message
Anton Gladky (gladky-anton) said :
#2

Difficult to say, it can be a graphic driver problem.
Anyway for a real post-processing I would recommend
to use VTK export.

Regads

Anton

Revision history for this message
Matt Kesseler (evxmk9) said :
#3

Thanks Jan Stránský, that solved my question.

Revision history for this message
Matt Kesseler (evxmk9) said :
#4

One more thing, is it possible to have the minor gridlines appear from the start in the python code as well? I.e. what happens when you press period in the viewscreen.

Revision history for this message
Best Jan Stránský (honzik) said :
#5

Hi Matt,
sorry, I did not understand your comment.. could you please clarify it a
bit, perhaps with some picture? Anyway, everything you do in the GUI should
be possible in Python as well..
Jan

2016-02-04 12:57 GMT+01:00 Matt Kesseler <
<email address hidden>>:

> Question #284508 on Yade changed:
> https://answers.launchpad.net/yade/+question/284508
>
> Status: Solved => Open
>
> Matt Kesseler is still having a problem:
> One more thing, is it possible to have the minor gridlines appear from
> the start in the python code as well? I.e. what happens when you press
> period in the viewscreen.
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Matt Kesseler (evxmk9) said :
#6

Thanks Jan Stránský, that solved my question.