Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to use mtlFX shaders? #184567
02/19/08 09:11
02/19/08 09:11
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hi there, sorry if this is silly question

but is there any "Step by Step Tuts" that talk about how to use shaders that included in the mtlFX like for example the "fx_water_env" ...

Thanks in advance

Re: How to use mtlFX shaders? [Re: Mysterious] #184568
02/19/08 13:10
02/19/08 13:10
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
just include the script and use my.material=fx_water_env;

Last edited by bomber; 02/19/08 13:13.

"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know."
————Donald Rumfeld
Re: How to use mtlFX shaders? [Re: bomber] #184569
02/26/08 09:56
02/26/08 09:56
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I've the same problem with A7.07.6.
I've these lines in my script :

#include <acknex.h>
#include <default.c>
#include "mtlFX.c";

and assigned fx_bump action to the model in WED,

I've also copy the "mtlFX.c" to my working folder
but still not work, my model shown in black color.

I've tried to rename my model to "marine.mdl" and
copy it to ..\project\shadertest\ directory and it
work perfectly, so I think it isn't a bug, am I
missing something? I remember it works in previous
version.

Anyone have a glue?

Thanks.

Re: How to use mtlFX shaders? [Re: vlau] #184570
02/26/08 13:04
02/26/08 13:04
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
I use mtlFX.c for terrain only, and I tested the water and post processing shader collection are OK. But same as you I fail to apply those shader on model and level block, the model and level block just dark. I guess those shaders are not design for sunlight so I found another shader and use external .fx for models.

I think in 7.08 everything will become simplify.

Re: How to use mtlFX shaders? [Re: vlau] #184571
02/26/08 13:42
02/26/08 13:42
Joined: Jul 2002
Posts: 1,364
Minbar
M
MaxF Offline
Serious User
MaxF  Offline
Serious User
M

Joined: Jul 2002
Posts: 1,364
Minbar
Me too done the same and the model is just black

Apply shader "mtl_specBump2" to my model using WED and MED, have one texture for colour and second one for normal - the model is just black

No joy

It would be much easier if WED had a built in shader node editor or link editor. (not talking about shader viewer)





Last edited by MaxF; 02/26/08 13:53.
Re: How to use mtlFX shaders? [Re: MaxF] #184572
02/26/08 14:18
02/26/08 14:18
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Thank you both. Just curious why it work with
shadertest demo?

I'll study shadertest.c to see if there are any
magic behind it.

Re: How to use mtlFX shaders? [Re: vlau] #184573
02/27/08 01:12
02/27/08 01:12
Joined: Feb 2008
Posts: 17
USA
R
RAM Offline
Newbie
RAM  Offline
Newbie
R

Joined: Feb 2008
Posts: 17
USA
If you start with the A7_lite_C_project template you can use the mtlfx.c with in WED just as you would an A6 project, I got the shaders to work, but it’s not backwards compatible with the other scripts , at least in my tests. Although you could do your own programming to get things working, I haven't got that far.


Moderated by  Blink, Hummel, Superku 

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