Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
7.70 Shader Viewer includes #250218
02/06/09 17:09
02/06/09 17:09
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
I just downloaded 7.70 public beta. I tried to run shaderTest.c in the projects/shadertest folder. However, it can't find any of the .fx files. I did not make any changes to the source code.

Why are there duplicates of the mtlFx.c and mtlView.c files (from code folder) in the shadertest folder? If I remove these, then the .fx files are found, but on most of the effects I get errors like:

Error in effect:
mtl_specBump(15): error X3000: syntax error: unexpected token 'bumpOut'
>float3 DoSpecular(bumpOut In,float3 Normal, float fSpecular)

Why won't the shader viewer correctly load the necessary files?

Re: 7.70 Shader Viewer includes [Re: yorisimo] #250246
02/06/09 20:41
02/06/09 20:41
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Workaround: copy the mtlFx.c and mtlView.c files from code folder into the shadertest folder, the older files don“t work with shadertest.c example.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: 7.70 Shader Viewer includes [Re: rojart] #250260
02/06/09 22:43
02/06/09 22:43
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Better remove them. You should not copy duplicates of include files into a project folder, or else youll probably get the same problem again with the next update.

These errors are from mixing old files from an old version with new files from a new version.

Re: 7.70 Shader Viewer includes [Re: Spirit] #250367
02/07/09 14:59
02/07/09 14:59
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Of course, but I mean to copy it if you want to change the mtlFx.c and mtlView.c files for you own project.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P

Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1