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
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
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,679 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problems with ent_mtlset #228889
09/23/08 09:46
09/23/08 09:46
Joined: Oct 2004
Posts: 150
Germany
T
tkunze Offline OP
Member
tkunze  Offline OP
Member
T

Joined: Oct 2004
Posts: 150
Germany
I assigned the same material to an entity with ent_mtlset and directly
by setting my.material. The render result is completely different and
i have no clue why and how to change this.

Any help is appreciated.

You can download the sample on the link below.

I do need ent_mtlset because i would like to use the relief shader from slin
and assign it to multi material models.


Code:
action testblock1() {
	my.material = dm_brick01;
}

action testblock2() {
	ent_mtlset(my,dm_brick01,1);
}



Sample Project

Picture: Block on the left using ent_mtlset shows not the expected result, on the right with my.material everything works fine


Re: Problems with ent_mtlset [Re: tkunze] #228906
09/23/08 12:57
09/23/08 12:57
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I played around with it for a while.
The shader is not visible for me when I apply it to both blocks with ent_mtlset, it works fine when setting the material for both as my.material and if I do it as you had it, the shader works on both blocks but vecAmbient is different.
I am not sure because I may missed something important, but I´d say that this is a bug..

Re: Problems with ent_mtlset [Re: Slin] #228922
09/23/08 14:15
09/23/08 14:15
Joined: Oct 2004
Posts: 150
Germany
T
tkunze Offline OP
Member
tkunze  Offline OP
Member
T

Joined: Oct 2004
Posts: 150
Germany
Thanks for looking into. It is really strange that the shader does not work at all if it is assigned with ent_mtlset to both blocks.
Now i am confident that it is not completely my fault and i will move it bugs.

The relief shader looks really great. Thanks for sharing it.


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