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
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Multi Model Materials #188886
03/16/08 20:06
03/16/08 20:06
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
It's been a while since I looked at shaders and materials for A6, so please forgive my ignorance if this proves to be a dumb question



Can you assign multiple/different shader/material effects to a model?

I have a model with 8 skins and would like to assign different shaders like normal and bump mapping, reflection etc.

Is this possible?

Any pointers or assistance much appreciated.


The Art of Conversation is dead : Discuss
Re: Multi Model Materials [Re: indiGLOW] #188887
03/17/08 14:06
03/17/08 14:06
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
yes, just apply an fx file to each skin, and you can use materials and models at the same time, it's very much possible, we're using this feature as well


- aka Manslayer101
Re: Multi Model Materials [Re: indiGLOW] #188888
03/17/08 16:57
03/17/08 16:57
Joined: Feb 2008
Posts: 4
G
GBStudio Offline
Guest
GBStudio  Offline
Guest
G

Joined: Feb 2008
Posts: 4
Quote:

yes, just apply an fx file to each skin, and you can use materials and models at the same time, it's very much possible, we're using this feature as well




I have the same problem. I do apply the fx files to the model (as external files), and I have placed the fx files and the textures in the folder, but the shaders don't work. I have no idea what is wrong. Please explain in more detail.

Kindest Regards
GBStudio

Re: Multi Model Materials [Re: GBStudio] #188889
03/17/08 19:29
03/17/08 19:29
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
Just to clarify, I have not had a problem as yet

I was enquiring as to the potential of this method and if GS supported it. However, it does seem like I would gain also from some explanation of this process, so if there are a few pointers going it would be much appreciated.

I've just got in from work and will be sitting down to investigate this further, maybe I will even shed a little light on the process myself.

Quick shout out to mpdeveloper_B, thanks for the reply much appreciated, very interesting indeed.

Thanks again

EDIT:

A little research later and I would like to restate the question, to be sure that I asked correctly. In my image above, I have selected the 3rd skin in the stack, Skin Name: #material183. I would like to apply a shader to only this skin, e.g a bump map shader. I only want it applied to this skin. Is that possible? If so what are the limitations? I am reading about 4 model skins and 4 externals in the manual, does this apply here?

Thanks in advance for any help

Last edited by indiGLOW; 03/17/08 20:27.

The Art of Conversation is dead : Discuss
Re: Multi Model Materials [Re: indiGLOW] #188890
03/18/08 09:17
03/18/08 09:17
Joined: Feb 2008
Posts: 4
G
GBStudio Offline
Guest
GBStudio  Offline
Guest
G

Joined: Feb 2008
Posts: 4
Quote:

A little research later and I would like to restate the question, to be sure that I asked correctly. In my image above, I have selected the 3rd skin in the stack, Skin Name: #material183. I would like to apply a shader to only this skin, e.g a bump map shader. I only want it applied to this skin. Is that possible? If so what are the limitations? I am reading about 4 model skins and 4 externals in the manual, does this apply here?




I was searching the forum for multiple shaders on the same model, and I found this:

http://www.coniserver.net/ubbthreads/showflat.php?Cat=0&Board=UBB3&Number=685645

I think for applying a fx file to one skin, you should check the "effect setup", then open definition file roll, and choose the fx file you want. I guess the fx file would be added only to that skin.

But when I apply the fx files to the model skins (and of course I place the fx files and texture files in the game directory) the shaders don't work!!! It is two days that I'm searching the forum, wiki, manual, etc... but I didn't find any reason for that. The shaders work when I apply them to the entities in code, so the shaders are correct. But when I apply them to the model skins in med they don't work.

I wish someone who knows the solution helps us...

Kindest Regards
GBStudio

Re: Multi Model Materials [Re: GBStudio] #188891
03/18/08 15:16
03/18/08 15:16
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quote:


I was searching the forum for multiple shaders on the same model, and I found this:

http://www.coniserver.net/ubbthreads/showflat.php?Cat=0&Board=UBB3&Number=685645

I think for applying a fx file to one skin, you should check the "effect setup", then open definition file roll, and choose the fx file you want. I guess the fx file would be added only to that skin.

But when I apply the fx files to the model skins (and of course I place the fx files and texture files in the game directory) the shaders don't work!!! It is two days that I'm searching the forum, wiki, manual, etc... but I didn't find any reason for that. The shaders work when I apply them to the entities in code, so the shaders are correct. But when I apply them to the model skins in med they don't work.

I wish someone who knows the solution helps us...

Kindest Regards
GBStudio




maybe the shaders you are using needs more than one skin(like normal mapping) and trying access the via entity(like tries to get entities(what shader apllied to) 1st and 2nd skin). This shaders must be applied to entity, but i guess a small retouch will solve the problem.


3333333333
Re: Multi Model Materials [Re: Quad] #188892
03/18/08 16:10
03/18/08 16:10
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany


no science involved
Re: Multi Model Materials [Re: fogman] #188893
03/19/08 11:24
03/19/08 11:24
Joined: Feb 2008
Posts: 4
G
GBStudio Offline
Guest
GBStudio  Offline
Guest
G

Joined: Feb 2008
Posts: 4
Quote:

maybe the shaders you are using needs more than one skin(like normal mapping) and trying access the via entity(like tries to get entities(what shader apllied to) 1st and 2nd skin). This shaders must be applied to entity, but i guess a small retouch will solve the problem.




You are right, there may be a problem with the shaders I'm using.

Quote:

Here you go:

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/816663/an/0/page/0#Post816663




Good Job! Congratulations

Here is the link to my file:

http://host-a.net/KooKoo/multi%20shaders.zip

I really have no idea what is wrong with it...

Thanks for your time
Kindest Regards
GBStudio

Re: Multi Model Materials [Re: GBStudio] #188894
03/21/08 16:02
03/21/08 16:02
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
Thanks for the great links guys, I am busy putting the core level geom together, expected to be completed this weeked and then I want to have a crack at getting some nice normal mapping shaders applied.

Thanks for all your help, I will post some screenies when I get it working.


The Art of Conversation is dead : Discuss
Re: Multi Model Materials [Re: Quad] #188895
03/22/08 16:24
03/22/08 16:24
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Quote:


But when I apply the fx files to the model skins (and of course I place the fx files and texture files in the game directory) the shaders don't work!!! It is two days that I'm searching the forum, wiki, manual, etc... but I didn't find any reason for that. The shaders work when I apply them to the entities in code, so the shaders are correct. But when I apply them to the model skins in med they don't work.

I wish someone who knows the solution helps us...





I read in the manual I think it was that the fx files had to be in the model folder/directory. I am not 100% but maybe it wouldn't hurt to give it a try.

If not, maybe run the shaders via your action for the model.

eg: if(my.skin == 1){my material = bumpmap_shader etc etc}


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Page 1 of 2 1 2

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