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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
no specular or diffuse from sun in A6??? #85361
08/10/06 00:49
08/10/06 00:49
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Hello All,

I just switched to A6.4 and I thought I'd test A6 levels instead of the old A5 I've always been working with. To my surprize, when I tried to put materials on my models, there was no diffuse or specular effects from the sun.

My level is a simple box level with ambient (50,50,50), sun (50,50,50), and the walls and the ceiling have a "sky_" texture applied to them.

I do get nice shadows on the geometry from the sun, but no specular or diffuse lighting on the model sitting in the center of the room, which seems unaffected by sunlight.

I tried a material editor to fiddle with the "mat_object.diffuse" and "mat_object.specular" settings but with no results.

To get specular and diffuse effects, I have to put nearby a dynamic light source.

When I use instead an A5 script for the level, I get specular and diffuse from the sun AND dynamic lights (as it should be according to the manual).

I understand that A6 leans more on DirectX than A5 (I did install the DirectX 9c from the Conitec webpage). I'm wondering whether my radeon 9200 does not have sufficiently high vertex and pixel shaders algorithms to accomodate reflection lighting (although it seems to me that simple specular should be accessible even to medium level cards, especially from a static lightsource like the sun).

Could somebody help me or direct me to a thread with a solution to my problem?

Thanks!

Tonic

Followup: no specular or diffuse from sun in A6??? [Re: ngisiger] #85362
08/12/06 02:35
08/12/06 02:35
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Hello everybody,

32 people have read my post, but no answers so far.

I did receive a private message by somebody who uses a Radeon 9600 and gets the exact same problem as me: no specular or diffuse effects from sunlight in A6. This should at least prove my sanity...

Let's try it the other way around: How many of you guys get decent specular/diffuse effects from sunlight in A6 levels? And what video card are you using?

Thanks in advance for any help.

Tonic

Re: Followup: no specular or diffuse from sun in A6??? [Re: ngisiger] #85363
08/12/06 16:15
08/12/06 16:15
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
You're using materials on models and there is no diffuse or specular from the sun? This sounds like there is something wrong in the materials settings, or are you using a special material shader? If so, please post it.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Followup: no specular or diffuse from sun in A6??? [Re: ChrisB] #85364
08/13/06 12:37
08/13/06 12:37
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
I am just using the following standard material:

material mat_test
{
emissive_red = 24;
emissive_green = 24;
emissive_blue = 6;

ambient_red = 0;
ambient_green = 0;
ambient_blue = 0;

diffuse_red = 54;
diffuse_green = 0;
diffuse_blue = 0;

specular_red = 108;
specular_green = 108;
specular_blue = 108;

alpha = 100;
albedo = 100;
power = 10;
}

and applying to my models with this action:

action a_test
{
my.material = mat_test;
}

I also tried to use the woman.mdl model provided with Conitec in case my models were somehow corrupted but there was no difference: I get no diffuse or specular on the models unless I add dynamic lights in the level.

Have you ever encountered this problem? What video card do you have?

Thank you very much for looking into this problem.

Tonic

Re: Followup: no specular or diffuse from sun in A6??? [Re: ngisiger] #85365
08/13/06 14:08
08/13/06 14:08
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
This has nothing to do with the video card.
Maybe you have set sun_light to 0?


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Followup: no specular or diffuse from sun in A6??? [Re: ChrisB] #85366
08/13/06 17:32
08/13/06 17:32
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
I have set sunlight at (55,55,55) and ambient at (10,10,10) using WED's Map Properties menu. All walls and the ceiling are fitted with the skywhite texture.

To make sure that the sun is actually rendered in the level, I have put a geometry block as well: the block is casting a nice directional shadow away from the sun on the level's ground plane. So there is sunlight in the level.

Re: Followup: no specular or diffuse from sun in A6??? [Re: ngisiger] #85367
08/13/06 18:55
08/13/06 18:55
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
I mean the variable sun_light.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Followup: no specular or diffuse from sun in A6??? [Re: ChrisB] #85368
08/13/06 20:49
08/13/06 20:49
Joined: Jul 2005
Posts: 38
N
ngisiger Offline OP
Newbie
ngisiger  Offline OP
Newbie
N

Joined: Jul 2005
Posts: 38
Ahhhhhhhhh, I see. I didn't know about that variable (I guess the default value is 0). And I see the utility of having it too.

Now it is working fine.

Many thanks ChrisB!


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