I have absolutely no idea why this is happening so I would want to ask for a confirmation that this is common or if it's just happening with my old computer.
Note: Using DirectX.
First create a .cs with this (and then exec it somewhere, of course):
Code: Select all
function createRend()
{
if(!isObject(RendViewUpdater))
{
%tickObj = new ScriptTickObject(RendViewUpdater);
%tickObj.setProcessTicks(true);
%tickObj.tNT = "PreBin1";
PreBin1.enable();
MissionCleanup.add(%tickObj);
%playGuiRendWindow = new GuiBitmapCtrl() {
position = "100 100";
extent = "150 150";
};
PlayGui.add(%playGuiRendWindow);
%tickObj.miniWindow = %playGuiRendWindow;
}
}
function RendViewUpdater::onInterpolateTick(%this, %delta)
{
(%this.miniWindow).setNamedTexture(%this.tNT);
}
function RendViewUpdater::onRemove(%this)
{
(%this.miniWindow).delete();
}
singleton ShaderData( TestCopy_Shader )
{
DXVertexShaderFile = "./xintexV.hlsl";
DXPixelShaderFile = "./xintexP.hlsl";
samplerNames[0] = "$inputTex";
pixVersion = 2.0;
};
singleton GFXStateBlockData( TestCopy_stateblock )
{
zDefined = true;
zEnable = false;
zWriteEnable = false;
samplersDefined = true;
samplerStates[0] = SamplerClampPoint;
};
singleton PostEffect( PreBin1 )
{
isEnabled = false;
renderTime = "PFXAfterBin";
renderBin = "SkyBin";
shader = TestCopy_Shader;
stateBlock = TestCopy_stateblock;
texture[0] = "$backbuffer";
target = "#PreBin1";
};
In the same folder as the .cs add these two files:
xintexV.hlsl
Code: Select all
struct VertToPix
{
float4 hpos : POSITION;
float2 uv : TEXCOORD0;
};
VertToPix main( VertToPix In )
{
return In;
}
xintexP.hlsl
Code: Select all
struct ConnectData
{
float2 texCoord : TEXCOORD0;
};
uniform sampler2D inputTex : register(S0);
//--------------------------------------------------------------
//Main
//--------------------------------------------------------------
float4 main( ConnectData IN ) :COLOR
{
float4 color1 = tex2D(inputTex, IN.texCoord);
return color1;
}
Run the desert level of a full project and in the console type:
Code: Select all
createRend()
Then the scene isn't correctly rendered in first person (render first person must be disabled in the Player datablock for the error to show) and with a particular weaponImage equipment.
It will render incorrectly if:
-You have the Ryder Pistol equipped.
-You have no image equipped ( in the console: LocalClientConnection.player.unmountImage(0); )
-You have the vehicle turret equpped ( in the console: LocalClientConnection.player.mountImage(TurretImage,0); Note: funny in third person.)

It will be alright otherwise (another weapon equipped, like the Lurker Rifle):

I really need to know if it's just my version of Torque 3d (not up to date) or if the issue it's still around.
And, um, do you know why it may be happening? Why it happens for some weapons but not for others?
Thanks a lot for your help.