cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

Geometric sample with ANGLE: black window #1734

Open viric opened 7 years ago

viric commented 7 years ago

I have been trying to run the Geometric sample with ANGLE x64 on Windows, and I can't make it work. I only get a window completely black. I tried the 'Debug' target.

I had to fix the build recipe for Angle/Debug in the sample, as it lacked x64 and Debug_ANGLE targets (that included the angle flags).

Why is it giving just a black window?

(I'm running master of one week ago)

paulhoux commented 7 years ago

Hi,

because of the huge number of targets Cinder is currently supporting (Windows, Mac, Linux, Android, each with their own set of back-ends), the team has not yet been able to setup automated testing for all platforms. Therefor, not all samples support all targets and platforms yet. The Geometry sample is one of them.

However, you can manually make a few changes to the project to make it work with ANGLE. See this post for more information. I've checked and can confirm the steps mentioned in the post are still correct:

I should probably point out that I only tested for Win32, as I am not sure ANGLE supports x64 at all.

viric commented 7 years ago

I could build it with ANGLE without trouble (doing changes like those you mention). It just gives me a black window when I run it.

Have you checked whether it paints fine for you?

paulhoux commented 7 years ago

Yes, it works fine. I can tell it's using ANGLE because the Params window is disabled (it's not compatible with ANGLE). Lines are not anti-aliased, which is also an indication it's running on ANGLE. Other than that, the sample works fine and I can switch between primitives using the space bar.

viric commented 7 years ago

Interesting. Whatever I try, with ANGLE with this sample, I only get a black window. Other samples work fine for me.

I can click on the black window, and the window title gets updated with vertices/lines numbers, though. It is not hanged.