Open viric opened 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:
CINDER_GL_ANGLE
to the Preprocessor DefinitionsOpenGL32.lib
from Linker | Input | Additional Dependenciescinder-$(PlatformToolset)_d.lib
to cinder-$(PlatformToolset)-ANGLE_d.lib
xcopy /y "..\..\..\..\lib\msw\x86\libGLESv2.dll" "$(OutDir)"
xcopy /y "..\..\..\..\lib\msw\x86\libEGL.dll" "$(OutDir)"
xcopy /y "..\..\..\..\lib\msw\x86\d3dcompiler_46.dll" "$(OutDir)"
I should probably point out that I only tested for Win32, as I am not sure ANGLE supports x64 at all.
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?
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.
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.
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)