XEffects - Reloaded - New Release (V 1.4)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
luthyr
Posts: 69
Joined: Wed Dec 30, 2009 5:47 pm

Post by luthyr »

HLSL vertex shader compilation failed
error X3506 unrecognized compiler target 'vs_3_0'
I was getting this error on my own project and found this thread through google.

It seems I was able to fix it by recompiling the Irrlicht source code. Since I don't have the DirectX SDK from 2004, I had to disable DX8, but it seems to be working now.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Thanks for the insight luthyr! To everyone having this problem: Recompile Irrlicht, that's the only solution for now.

I'll investigate this personally for the next release of Irrlicht and make sure there are no issues related to this.

Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Geomaster
Posts: 71
Joined: Tue Oct 21, 2008 3:39 pm

Post by Geomaster »

I have a really strange problem. At first, I had 'unrecognized compiler targets' even with my own shaders, but now here's what happens in my own project (all directories are fine and the paths to shaders are OK, I checked it):

Code: Select all

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL vertex shader compilation failed:
error X3501: 'vertexMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found

'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Loaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
'Breakthrough.exe': Unloaded 'C:\WINDOWS\system32\D3DCompiler_42.dll'
HLSL pixel shader compilation failed:
error X3501: 'pixelMain': entrypoint not found
I'm using D3D9 and XEffects are used only for post-processing, so I really can't find where is the problem.

Any solutions to this?

EDIT: Here's what I get with OGL:

Code: Select all

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"

GLSL shader failed to compile
(0) : error C0000: syntax error, unexpected $end at token "<EOF>"
(0) : error C0501: type name expected at token "<null atom>"
[FIXED!]
The path was a little bit messed up (Winblows stuff) and I ran into the flipped textures problem. So I used the solution by stefbuet and worked perfectly! Ty!
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Yep, those errors usually indicate it's getting zero-length strings for the shaders. Glad you got it sorted.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
tnrwns
Posts: 2
Joined: Sat Jan 23, 2010 6:15 am

Post by tnrwns »

I use 2 light in game. one is near the player and other cover large area.

but shadow is so bright. I want dark shadow.

Thank you.
pippy3
Posts: 155
Joined: Tue Dec 15, 2009 7:32 am

Post by pippy3 »

I'm having trouble running the newest Xeffects:

Code: Select all

ATI Radeon 9600 / X1050 Series ati2dvag.dll 6.14.10.6706
HLSL pixel shader compilation failed:
(16): error X5608: Compiled shader code uses too many arithmetic instruction slots (69). Max. allowed by the target (ps_2_0) is 64.

HLSL pixel shader compilation failed:
(16): error X5608: Compiled shader code uses too many arithmetic instruction slots (85). Max. allowed by the target (ps_2_0) is 64.
(1): error X5609: Compiled shader code uses too many instruction slots (101). Max. allowed by the target (ps_2_0) is 96.
I get this error in DX. OpenGL doesn't even start...
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Your video card doesn't have the required shader support to run XEffects, sorry.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
MikeDee
Posts: 35
Joined: Wed Nov 18, 2009 11:41 pm

Post by MikeDee »

Does XEffects work with Irrlicht 1.7.1 ?
thespecial1
Posts: 135
Joined: Thu Oct 30, 2008 11:56 am
Location: UK
Contact:

Post by thespecial1 »

is there a new version in the works that doesnt require recompiling irrlicht???
Last edited by thespecial1 on Tue Mar 30, 2010 1:36 pm, edited 1 time in total.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Post by ACE247 »

Ehh, recompiling Irrlicht??? :?
Since When? All one has to do is change XEffects a little to make it work with Irr 1.7.1
thespecial1
Posts: 135
Joined: Thu Oct 30, 2008 11:56 am
Location: UK
Contact:

Post by thespecial1 »

ACE247 wrote:Ehh, recompiling Irrlicht??? :?
Since When? All one has to do is change XEffects a little to make it work with Irr 1.7.1
interesting, especially since Blindside said
BlindSide wrote:Thanks for the insight luthyr! To everyone having this problem: Recompile Irrlicht, that's the only solution for now.

I'll investigate this personally for the next release of Irrlicht and make sure there are no issues related to this.

Cheers
care to highlight the changes as it's showing runtime errors for shader/pixel v2 for many ??????

;0)
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Post by ACE247 »

Ok,thanks for the update.
Must have missed that.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

thespecial1 wrote:is there a new version in the works that doesnt require recompiling irrlicht???
The problem is with the Irrlicht dll (It's compiled using an incompatible DirectX SDK version), I might just recompile a dll for 1.7.1 with the correct DirectX SDK myself and upload that to ease the problems for users.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Nerexis
Posts: 27
Joined: Sun Dec 09, 2007 4:18 pm

Post by Nerexis »

Yep, XEffects is working with this correct dll:
http://nerexis.boo.pl/IrrlichtDLL171.rar
(win32-gcc)
Enjoy
Last edited by Nerexis on Thu Apr 01, 2010 3:59 pm, edited 1 time in total.
Nerexis
Sorry for bad English.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Awesome! Thanks Nerexis.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Post Reply