Lighting effecting Gui controls
by Kirk Haynes · in Torque Game Engine Advanced · 03/25/2007 (8:31 am) · 4 replies
I'm using a bitmap as a 2D floor plan for an Interior. It seems that when a certain light is scoped in the scene it effects the bitmap image drawn in the floor plan portion of GuiWindowControl. It sort of blurs the image a bit. The code to draw the 2D image is using GFX->drawBitmapStretchSR( texture, dstRegion, srcRegion);
Any ideas if there's something that I can do to kill this effect, like turn off lighting, or something else? I don't know specifically which object is causing this effect, but I'm assuming it's a light.
Any ideas if there's something that I can do to kill this effect, like turn off lighting, or something else? I don't know specifically which object is causing this effect, but I'm assuming it's a light.
#2
Is this a custom GUI object? Make sure when rendering to disable shaders before calling drawBitmapStretchSR (see the other GUI object render methods for details).
03/26/2007 (10:31 am)
Definitely - I'd like to see this too.Is this a custom GUI object? Make sure when rendering to disable shaders before calling drawBitmapStretchSR (see the other GUI object render methods for details).
#3
These are the items that are being called in the control:
GFX->clearBitmapModulation();
GFX->drawBitmapStretchSR( texture, dstRegion, srcRegion);
renderChildControls( offset, updateRect);
Nothing out of the ordinary.
I'm using the orcbase and all it's features at present. Today while the interface was up and just sitting there while I was on the phone, I noticed that the 'blur' happend when one of the blobs that follow the path from the main room all the way down the hall and back passed right infront of my 3D view, and then went away after it went out of view.
03/26/2007 (10:56 am)
It's a custom control derived from GuiBitmapCtrl. I left in everything that was already being called and simply added some source region code to display a certain part of the texture.These are the items that are being called in the control:
GFX->clearBitmapModulation();
GFX->drawBitmapStretchSR( texture, dstRegion, srcRegion);
renderChildControls( offset, updateRect);
Nothing out of the ordinary.
I'm using the orcbase and all it's features at present. Today while the interface was up and just sitting there while I was on the phone, I noticed that the 'blur' happend when one of the blobs that follow the path from the main room all the way down the hall and back passed right infront of my 3D view, and then went away after it went out of view.
#4
04/01/2007 (7:32 pm)
Is the effect related to the blobs or the light? Can you post a few shots of it happening and how it should look - it might give me an idea of what's going on.
Torque Owner Stefan Lundmark