f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Log should be behind model window by default (Windows)

Open astandarduser opened this issue 3 years ago • 7 comments

Each time I open a model the log window is always directly covering the model window, not sure if it's possible currently but would be great to have it set behind the model window regardless of errors

astandarduser avatar Aug 10 '22 01:08 astandarduser

Indeed, that would be nice. We will take a look if this is possible.

But why is the window opening every time ? Do you have errors ?

mwestphal avatar Aug 10 '22 01:08 mwestphal

Deleted MTL's are probably a big reason, always end up deleting them

astandarduser avatar Aug 10 '22 02:08 astandarduser

I know many artists do the same

astandarduser avatar Aug 10 '22 02:08 astandarduser

What error do you have exactly ? Do you think F3D should avoid warning in that case ?

mwestphal avatar Aug 10 '22 12:08 mwestphal

I'll get it for you tomorrow, it's always about missing mtls as I mentioned. It's worth keeping the warning so people know why their texture isn't loading but the logging window should still show up behind regardless, that's the case for all 3d software I have used

astandarduser avatar Aug 10 '22 15:08 astandarduser

What error do you have exactly ? Do you think F3D should avoid warning in that case ?

ERROR: In D:\a\f3d\f3d\dependencies\vtk\IO\Import\vtkOBJImporter.cxx, line 867 vtkOBJPolyDataProcessor (000002633F28DE60): material 'lambert5SG' appears in OBJ but not MTL file?

astandarduser avatar Aug 11 '22 00:08 astandarduser

Ok, I think this is a fair warning, you may want to edit your obj to avoid it. Anyway, we will take a look at putting the window behind.

mwestphal avatar Aug 11 '22 02:08 mwestphal

vtkF3DWin32OutputWindow::Initialize calls vtkWin32OutputWindow::Initialize() which calls ShowWindow(win, SW_SHOW); at the end. The ShowWindow call activates the vtkOutputWindow window and steals focus.

jiangsheng avatar Oct 05 '23 03:10 jiangsheng

Thanks for the investigation! I will see of the right way to fix this in VTK.

mwestphal avatar Oct 05 '23 06:10 mwestphal