Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 793 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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