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
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 8 1 2 3 4 5 6 7 8
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118010
03/26/07 14:16
03/26/07 14:16
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
wow, nice Theoratical you could make a 15 light shader with 3 passes xD

Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118011
03/26/07 14:58
03/26/07 14:58
Joined: Jul 2002
Posts: 1,364
Minbar
M
MaxF Offline
Serious User
MaxF  Offline
Serious User
M

Joined: Jul 2002
Posts: 1,364
Minbar
OK kool will try this code tonight


Re: [Supply] Matt's NormalMapping shader with 3 li [Re: MaxF] #118012
03/27/07 03:51
03/27/07 03:51
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Alright...

A ran into another wall. The limit on the number of commands you can run in a shader. It's currently down to 3 lights per pass, but it runs good.


I'm gonna mess with it a lil more, then post whatever I get tomorrow morning.


xXxGuitar511
- Programmer
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118013
03/27/07 06:51
03/27/07 06:51
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline
Expert
EX Citer  Offline
Expert

Joined: May 2002
Posts: 2,541
Berlin
sounds good


:L
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: EX Citer] #118014
03/28/07 02:40
03/28/07 02:40
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Alright, it's getting there. I just need to add specular lighting to the sun, and some other little things.

Here's a (crappy) youtube preview of the shader applied to PSionics spider thing. Sorry for the quality, YouTube butchered it...


Preview 01

Note: It may take a minute for it to finish uploading, if it does not work, try again later...


xXxGuitar511
- Programmer
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118015
03/28/07 07:47
03/28/07 07:47
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Looks great! Would it also be possible for the user to be able to change the diffuse and ambient for the model with normalmapping? Is this possible to do in the material and not in the fx(but the .fx recognizes it)? That way if it's too dark or light you can change it. Thanks.


Check out Silas. www.kartsilas.com

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

Daily dev updates - http://kartsilas.blogspot.com/
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: William] #118016
03/28/07 13:44
03/28/07 13:44
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Good idea, I'll add that in...

I will add the:
- Ambient: for adjusting brightness...
- Diffuse: for adjusting how much color is used (IE: 0 = grayscale)
- Static Lighting*


*I'll upload my current progress before I implement this, as I'm not sure how exacttly I'll do this. The only problem is that it only passes the colors, not direction. Therefor, when using static lighting, I'll either have to use it as an "ambience" sort of thing; Or I can make up a direction for it.


xXxGuitar511
- Programmer
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118017
03/28/07 14:15
03/28/07 14:15
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
couldn't you just pass it with the skills which are predefined for shader passing?


BASIC programmers never die, they GOSUB and don't RETURN.
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: bstudio] #118018
03/28/07 15:15
03/28/07 15:15
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Na, it would be easier to just use the pre-defined vector (vecAmbient, vecDiffuse, vecLight)...


Currently, my static light idea is using the suns position as the source direction for the light. I've already added Ambient & diffuse vectors.


It looks really good, and runs quite quickly with sun & 2 dynamic light sources (+ additionals such as static & ambience, etc). So I'm really happy with it. I think I'll rewrite it so that the first pass calculates sun + static + ambience, and the second just does dynamic lighting.


xXxGuitar511
- Programmer
Re: [Supply] Matt's NormalMapping shader with 3 li [Re: xXxGuitar511] #118019
03/28/07 16:47
03/28/07 16:47
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I'm having a problem with vecLight...

It doesn't seem to work properly. It's vey "jumpy" and sometimes returns strange values. It only works correctly a short portion of the time.


xXxGuitar511
- Programmer
Page 4 of 8 1 2 3 4 5 6 7 8

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