TGEA Strange Text Problem
by Gerald Fishel · in Torque Game Engine Advanced · 01/31/2007 (8:54 pm) · 2 replies
Not sure what happened with that last post, sorry.
I'm currently in the process of modifying TGEA to run in an ActiveX control. I've got it working mostly, but I've run into a strange problem. Everything works except when drawing text most of the text is missing, only a few interspersed letters show up. This is a screenshot showing what is happening. I'm going to keep investigating, but I was wondering if maybe somebody has an idea of what could cause this to happen.

Thanks,
Gerald
I'm currently in the process of modifying TGEA to run in an ActiveX control. I've got it working mostly, but I've run into a strange problem. Everything works except when drawing text most of the text is missing, only a few interspersed letters show up. This is a screenshot showing what is happening. I'm going to keep investigating, but I was wondering if maybe somebody has an idea of what could cause this to happen.

Thanks,
Gerald
#2
01/31/2007 (11:37 pm)
Oops, sorry, as it turns out there was another functional difference; I wasn't calling createFontInit, so all of the font generation functions were working with a NULL hdc, and I guess were loading font cache files that were generate with a previous build. All of the rendering is working fine now.
Torque Owner Gerald Fishel
Development Ninja
1) It displays fine when I build and run the original demo with my version of DX SDK, and with my video card, so it's not a library or hardware issue.
2) The only functional difference in the codebase is that in Win32WinMgr::createWindow instead of creating a new window, I just assign the HWND of the ActiveX control to winState.appWindow.
Could it have something to do with the window class settings? Or the window styles, etc?
All of the materials and shaders work fine in the demo, it's just the text drawing that wigs out.
Best Regards,
Gerald