AppCSXCAD incorrect render on Debian 9

Install support for openEMS

Moderators: thorsten, sebastian

dlharmon
Posts: 6
Joined: Sun 17 Feb 2013, 01:44

AppCSXCAD incorrect render on Debian 9

Post by dlharmon » Sun 03 Feb 2019, 19:30

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 3842 times
This is what it looks like on Windows 10 (binary 0.35-42 package)
via.png
via.png (204.51 KiB) Viewed 3842 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
Attachments
dump.xml
(39.88 KiB) Downloaded 138 times

dlharmon
Posts: 6
Joined: Sun 17 Feb 2013, 01:44

Re: AppCSXCAD incorrect render on Debian 9

Post by dlharmon » Sun 03 Feb 2019, 21:18

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.

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: AppCSXCAD incorrect render on Debian 9

Post by thorsten » Wed 06 Feb 2019, 18:48

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...

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: AppCSXCAD incorrect render on Debian 9

Post by bveidt » Mon 17 Jun 2019, 23:23

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 3559 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 3559 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

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: AppCSXCAD incorrect render on Debian 9

Post by thorsten » Tue 18 Jun 2019, 20:44

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

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: AppCSXCAD incorrect render on Debian 9

Post by bveidt » Wed 19 Jun 2019, 00:39

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.

bveidt
Posts: 13
Joined: Sat 26 May 2018, 00:07

Re: AppCSXCAD incorrect render on Debian 9

Post by bveidt » Wed 19 Jun 2019, 01:30

I just built the development version and AppCSXCAD still has problems correctly rendering solid models.

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: AppCSXCAD incorrect render on Debian 9

Post by thorsten » Wed 19 Jun 2019, 21:05

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?

dlharmon
Posts: 6
Joined: Sun 17 Feb 2013, 01:44

Re: AppCSXCAD incorrect render on Debian 9

Post by dlharmon » Thu 20 Jun 2019, 04:03

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.

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: AppCSXCAD incorrect render on Debian 9

Post by thorsten » Thu 20 Jun 2019, 09:35

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...

Post Reply