Game Development Community

Model in GuiObjectView texture is not render correctly when Window maximized or minimized

by vincent kway · in Torque Game Engine Advanced · 02/17/2011 (11:12 pm) · 1 replies

Hi guys,

I'm facing some problem with the model I set into GuiObjectView. I'm currently using TGEA 1.8.2 and I can't find a solution to it yet.

The model that I set into Guiobjectview, it's texture is not render correctly when I maximize or minimize the window in window mode.

When I test it on my pc, the model will become black color when I scale the window size.

Is there anyone of you facing the same problem before ?

Please guide. Thanks.

#1
02/21/2011 (7:26 pm)
I have solved this problem by using a weird solution. If you are facing the same problem like mine maybe you can use this method to solve your problem.

Engine Version: TGEA 1.8.2.

Problem: Happen when you resize your application window. The texture of the model inside GuiObjectView is not rendered correctly.

Solution: The model that you set into the GuiObjectView must have 2 texture map on it. In materials.cs, define the first material without turning ON the emissive. For the second material, turn on the emissive.

EG:

new Material(bamboo_tex)
{
baseTex[0] = "bamboo";
};

new Material(bamboo2_tex)
{
baseTex[0] = "bamboo2";
emissive[0] = true;
};

Then when you resize your application window, there will be no texture render problem.

If anyone still using TGEA 1.8.2, maybe we can investigate this problem together.