Page 1 of 2

AppCSXCAD incorrect render on Debian 9

Posted: Sun 03 Feb 2019, 19:30
by dlharmon
The image below shows what I get on Debian 9 x64 (VTK6), Intel graphics, following instructions from http://www.openems.de/index.php/Compile ... ource.html, "build from GitHub" today. I also tried the openEMS-v0.0.35.tar.bz2 release. The v0.0.34 release would not build on my machine. A 6 month old build had the same problem. The microstrip on top is obscured by a ground plane below among other things.
Screenshot from 2019-02-03 09-52-42.png
Screenshot from 2019-02-03 09-52-42.png (214.54 KiB) Viewed 10975 times
This is what it looks like on Windows 10 (binary 0.35-42 package)
via.png
via.png (204.51 KiB) Viewed 10975 times
Any ideas what could be wrong here? I have attached dump.xml in case anyone wants to open this on their machine. It's not just this model that appears wrong, but everything I have tried.

Thanks

Re: AppCSXCAD incorrect render on Debian 9

Posted: Sun 03 Feb 2019, 21:18
by dlharmon
On a Debian testing (10, buster) machine with ATI graphics, and using the Debian package https://packages.debian.org/buster/openems, I get the same result.

Re: AppCSXCAD incorrect render on Debian 9

Posted: Wed 06 Feb 2019, 18:48
by thorsten
Yes I'm aware of this issue I think, it has something to do with vtk and alpha depth peeling. I will look into it...

Re: AppCSXCAD incorrect render on Debian 9

Posted: Mon 17 Jun 2019, 23:23
by bveidt
I'm also having rendering problems.

Here's a old rendering of a horn model:
Ying-horn-model.png
Ying-horn-model.png (79.35 KiB) Viewed 10692 times
Recently I re-rendered that model (with no changes) and it looks like this:
Screenshot_20190617_125841.png
Screenshot_20190617_125841.png (81.07 KiB) Viewed 10692 times
Many features in the model are no longer visible so something is wrong. What's the difference? I'm pretty certain that between the two renderings I upgraded from Ubuntu 16.04 to 18.04.I rebuilt openEMS v.0.0.35 (using instructions from the wiki) after the OS upgrade.

Also, when I run AppCSXCAD from within Octave I get warnings like this:
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1530, resource id: 148897852, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1561, resource id: 148897852, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1578, resource id: 148897852, major code: 130 (Unknown), minor code: 3
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1602, resource id: 148897852, major code: 130 (Unknown), minor code: 3
I'm running Kubuntu 18.04, openEMS 0.0.35, CSXCAD 0.6.2, Octave 4.2.2

Hope this helps track down the problem.



Regards,

Bruce

Re: AppCSXCAD incorrect render on Debian 9

Posted: Tue 18 Jun 2019, 20:44
by thorsten
Do you use the release version? Or the latest from github?
If not the latest, please try these first:
https://openems.de/index.php/Compile_fr ... rom_Github

Re: AppCSXCAD incorrect render on Debian 9

Posted: Wed 19 Jun 2019, 00:39
by bveidt
Yes, I'm using the latest version: 0.0.35.
One deviation from the installation instructions was to substitute libvtk6-dev and libvtk6-qt-dev for libvtk5-dev and libvtk5-qt4-dev because version 5 is no longer on Ubuntu.

Re: AppCSXCAD incorrect render on Debian 9

Posted: Wed 19 Jun 2019, 01:30
by bveidt
I just built the development version and AppCSXCAD still has problems correctly rendering solid models.

Re: AppCSXCAD incorrect render on Debian 9

Posted: Wed 19 Jun 2019, 21:05
by thorsten
As far as I see it on my system the renderings look okay, but I can remember that I saw this problems at some times.
I think it has something to do with your vtk version. I'm using vtk8.2 currently but I guess Ubuntu 18.04 will ship a much older version.
Can you attach the xml file such that I can confirm that it looks okay for me?

Re: AppCSXCAD incorrect render on Debian 9

Posted: Thu 20 Jun 2019, 04:03
by dlharmon
I upgraded from VTK 6.3 to VTK 7.1.1 (latest available in Debian testing), rebuilt from Git and still get incorrect (slightly different?) rendering with the previously posted XML file. VTK 8.2 is not even in Debian unstable yet.

Re: AppCSXCAD incorrect render on Debian 9

Posted: Thu 20 Jun 2019, 09:35
by thorsten
Debian unstable seems to be very slow to adopt new versions...

The renderings look good for me unfortunately, which means I have a hard time finding and fixing the issue...

In any case I have added changes last year for vtk8. Look for lines like this:

Code: Select all

#if VTK_MAJOR_VERSION>=8
in QCSXCAD/ QVTKStructure.cpp

Maybe you can try if this already works for vtk 7

Otherwise I have to find and setup e.g. an Ubuntu machine to try to recreate the issue...