Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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