Gamestudio Links
Zorro Links
Newest Posts
bestwinsite
by winsite3. 05/30/24 04:10
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
3 registered members (SBGuy, AndrewAMD, VoroneTZ), 912 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A dumb question #120002
03/28/07 22:27
03/28/07 22:27
Joined: Jun 2002
Posts: 3,682
Coppell, Texas
Ran Man Offline OP
Expert
Ran Man  Offline OP
Expert

Joined: Jun 2002
Posts: 3,682
Coppell, Texas
Hi,

I'm trying to learn shaders now and I have a basic question about them.

Okay so, the way I understand it, shaders only affect entities, right?

That means that I would have to make everything in my level either a .mdl or a .hmp, or a .wmb file to make the shaders appear on them.

Do I understand this correctly?

Shaders do not work on blocks, unless they are made an entity by a .wmb file, right?

Or else, how would I assign a material to them? Aggghh, i don't get it.


Cougar Interactive

www.zoorace.com
Re: A dumb question [Re: Ran Man] #120003
03/28/07 22:54
03/28/07 22:54
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Quote:

Shaders do not work on blocks, unless they are made an entity by a .wmb file, right?



No, that's not right. You can assign a material, and therefore even a fixed function effect or a shader to blocks. You have to write a material, whos name exactly matches the name of the texture you want to affect. Then you need to set d3d_automaterial to 1 before loading a level. The material definition will the be applied to all surfaces that have the texture with the same name assigned.

However, this will be significantly slow. I recommend to use ffes andshaders exclusively for models (.mdl) and sprites.


Always learn from history, to be sure you make the same mistakes again...
Re: A dumb question [Re: Uhrwerk] #120004
03/28/07 23:18
03/28/07 23:18
Joined: Jun 2002
Posts: 3,682
Coppell, Texas
Ran Man Offline OP
Expert
Ran Man  Offline OP
Expert

Joined: Jun 2002
Posts: 3,682
Coppell, Texas
Aha!

Thanks for pointing that out.
I see it in the manual now.

I gave you 5 stars.



Cougar Interactive

www.zoorace.com
Re: A dumb question [Re: Ran Man] #120005
03/29/07 21:04
03/29/07 21:04
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Thank you! That was an easy one...


Always learn from history, to be sure you make the same mistakes again...

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