Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, Quad), 5,623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to add 3dgs material values into a hlsl shader #48484
06/28/05 21:31
06/28/05 21:31
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline OP
Senior Expert
PHeMoX  Offline OP
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
I recently made a model with a material setup like this:

Code:

ambient_blue = 100;
ambient_green = 100;
ambient_red = 100;
diffuse_blue = 30;
diffuse_green = 100;
diffuse_red = 255;
//specular_blue = 205;
//specular_green = 205;
//specular_red = 205;
emissive_blue = 5;
emissive_green = 5;
emissive_red = 10;


And I've also made a nice environmental cubemapping shader in hlsl, my question is; how can I combine both???
I think the answer lies in translating those 3dgs material values into shader codes, but I'm quite clueless how to do this... A little help with this will be highly appreciated , thanks


Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: How to add 3dgs material values into a hlsl shader [Re: PHeMoX] #48485
06/28/05 21:35
06/28/05 21:35
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
if i remember correctly it was vecAmbient, vecDiffuse, vecSpecular and vecEmissive.. set them up as float4


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: How to add 3dgs material values into a hlsl sh [Re: ello] #48486
06/28/05 21:43
06/28/05 21:43
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline OP
Senior Expert
PHeMoX  Offline OP
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Thanks again ello, I'm trying this out now!



Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: How to add 3dgs material values into a hlsl sh [Re: PHeMoX] #48487
07/03/05 09:30
07/03/05 09:30
Joined: Sep 2003
Posts: 407
inside to my
er_willy Offline
Senior Member
er_willy  Offline
Senior Member

Joined: Sep 2003
Posts: 407
inside to my
hey PHeMoX you have gotten it

can share the code (only need this part)

please

Re: How to add 3dgs material values into a hlsl sh [Re: er_willy] #48488
07/04/05 18:48
07/04/05 18:48
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline OP
Senior Expert
PHeMoX  Offline OP
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
@Willy; Sorry I kind of missed your post here, I will post it as soon as possible, but I'm kind of busy and I would need to separate it from a shader of me.. By the way, are you sure you need this in a hlsl shader, not just materials the normal way?


Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: How to add 3dgs material values into a hlsl sh [Re: PHeMoX] #48489
07/04/05 23:47
07/04/05 23:47
Joined: Sep 2003
Posts: 407
inside to my
er_willy Offline
Senior Member
er_willy  Offline
Senior Member

Joined: Sep 2003
Posts: 407
inside to my
thaks

yes I wanna combine when cubemap,

but not problem, relax men.


Moderated by  Blink, Hummel, Superku 

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