Game Development Community

[BUG 1.1A] Pixel Shader 2.0 issue

by Joshua Halls (Xerves) · in Torque 3D Professional · 12/26/2009 (6:58 pm) · 4 replies

Getting the following error from a procedural shader (pretty much a bucketload of these).

I don't recall this being an issue in 1.01 as SM2 worked fine in it. Stole a Netbook and was curious what it could/couldn't do and these errors are causing some issues. When SM3/4 cards are forced into SM2 I get the same errors as well.

The Repopulation/common/shaders/procedural/9f86c46ff260fc71_P.hlsl(74,12): error X5608: Compiled shader code uses too many arithmetic instruction slots (69). Max. allowed by the target (ps_2_0) is 64.
Failed to initialize material 'm01hands'

About the author

Part of the team that works on The Repopulation, a SciFi based MMO using a heavily modified version of the Torque MMO Kit - T3D. I also take care of the T3D version of the Torque MMO Kit.


#1
12/26/2009 (7:02 pm)
http://www.torquepowered.com/community/forums/viewthread/106163

I think there is a fix here for this. Will try it and report back. Seems to be the issue though.
#2
12/27/2009 (12:44 pm)
Still the same issue with the fix. Pretty sure this is a known issue though as some others had to back out some material changes to get rid of this issue.
#3
12/28/2009 (1:05 pm)
We're aware of this issue and will be fixing it during the 1.1 beta.

THREED-838
#4
03/10/2010 (12:32 pm)
This issue still remains in 1.1beta

Graphic cards using pixel shader 2.0 continue to fail if pixel specular is turned on (1).

"FAIL: An undetermined error occurred (80004005)
C:/Torque/Torque 3D 2009 Pro 1.1 Beta 1/My Projects/New Project/game/shaders/procedural/9f86c46ff260fc71_P.hlsl(74,12): error X5608: Compiled shader code uses too many arithmetic instruction slots (74). Max. allowed by the target (ps_2_0) is 64."


The following happens when running with card profile:
Attempting to create GFX device: ATI Radeon Xpress 1150 (D3D9)
Device created, setting adapter and enumerating modes
Cur. D3DDevice ref count=1
Pix version detected: 2.000000
Vert version detected: 2.000000
Maximum number of simultaneous samplers: 16
Number of simultaneous render targets: 4
Hardware occlusion query detected: Yes
Using Direct3D9Ex: No
WMIVideoInfo: DxDiag initialized
Initializing GFXCardProfiler (D3D9)
o Chipset : 'ATI Technologies Inc.'
o Card : 'Radeon Xpress 1150 '
o Version : '7.14.0010.0449'
- Scanning card capabilities...
GFXCardProfiler (D3D9) - Setting capability 'autoMipMapLevel' to 1.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureWidth' to 2048.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureHeight' to 2048.
GFXCardProfiler (D3D9) - Setting capability 'maxTextureSize' to 2048.
GFXCardProfiler (D3D9) - Setting capability 'lerpDetailBlend' to 1.
GFXCardProfiler (D3D9) - Setting capability 'fourStageDetailBlend' to 1.