hjoykim / THREE

c# port of Three.js
MIT License
131 stars 24 forks source link

WPF airspace problem #53

Closed jingweilim closed 10 hours ago

jingweilim commented 2 weeks ago

Hi, I am having z index issues in the WPFDemo. I think this is due to using OpenTK.winforms controls in a wpf app. I tried using Microsoft.DwayneNeed, but I was unable to fix it. Does anyone know how to fix it?

hjoykim commented 2 weeks ago

Can you show me the screen and source of what happens regarding the z-index error?

jingweilim commented 2 weeks ago

airspaceIssue Screenshot of z index overlapping with telerik navigation view

winForm I think the issue is with using winformhost in GLRenderWindow.xaml

hjoykim commented 2 weeks ago

Hello

Try GLWpfControl instead of Windows FormsHost.

hjoykim commented 2 weeks ago

as mentioned above Using GLWpfControl Attached is an example project.

Please let me know the results. GLWPFDemo.zip

jingweilim commented 2 weeks ago

Hi hjoykim, thanks for the answer. I will let you know in a few days as I am oversea

jingweilim commented 1 week ago

Hi hjoykim, I tried using GLWpfControl and it works, Thanks!

Unfortunately there was some clipping problems with ImGUI. ImGUI

hjoykim commented 1 week ago

hello I think it was caused by Orthographic projection in ImGuiManager. please show me your ImGuiManager and its integration source?

jingweilim commented 6 days ago

Sorry I can't insert code from my laptop, will have to use pictures instead. Not much changes from ImGuiManager, all reference to GLControl changed to GLWpfControl. displaySize changed to use actual width and height ImGUI2 ImGUI3

hjoykim commented 6 days ago

It's the same file, but it's very strange. The results I ran are shown in the screen below. image In the attached project file, Please check ImGuiManager.cs . GLWPFDemo241107.zip

jingweilim commented 5 days ago

Odd, It appears to be clipped on my screen ImGUI4

I found a hack by making the clipping window larger ImGUI5