Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: ent_decal and particle material V7.10 [Re: jcl] #224088
08/28/08 12:42
08/28/08 12:42
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I changed the code to use effect_load(), but it makes no difference, the decal is still one big black square:

function shader_road()
{
my.material = road_shader;

//if(lightmap_level == 1){road_shader.effect = "multitex4_ps1_0sha.fx";}
//if(lightmap_level != 1){road_shader.effect = "multitex4_ps1_0ans.fx";}

effect_load(road_shader,"multitex4_ps1_0sha.fx");

road_shader.ambient_red = road_ambient.x;
road_shader.ambient_blue = road_ambient.y;
road_shader.ambient_green = road_ambient.z;

road_shader.diffuse_red = road_diffuse.x;
road_shader.diffuse_blue = road_diffuse.y;
road_shader.diffuse_green = road_diffuse.z;
}


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: ent_decal and particle material V7.10 [Re: William] #224098
08/28/08 13:49
08/28/08 13:49
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I'm not sure if I understand the problem right: Your code assigns mat_model to the decal, but your other functions are doing something with a material named road_shader. So when does your decal become black - when your road gets assigned the other material?

Re: ent_decal and particle material V7.10 [Re: jcl] #224174
08/28/08 22:15
08/28/08 22:15
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Yeah, I'm sorry I wasn't very clear. The material, road_shader, is applied to the ground only. The decal is black when the road_shader is applied to the ground, and mat_model is applied to the decal. Although, if I apply mat_model to both the road shader and the decal, it works.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: ent_decal and particle material V7.10 [Re: William] #224241
08/29/08 09:47
08/29/08 09:47
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Ah, ok. Can you send the level to the support? We'll look into that problem.

Re: ent_decal and particle material V7.10 [Re: jcl] #224273
08/29/08 12:22
08/29/08 12:22
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Sure, I might not be able to send it until Monday though. smile


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: ent_decal and particle material V7.10 [Re: William] #225176
09/03/08 07:24
09/03/08 07:24
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I sent it your email address JCL. smile


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: ent_decal and particle material V7.10 [Re: William] #225191
09/03/08 08:57
09/03/08 08:57
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Thanks. We got it and will look into it.

Page 2 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | 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