Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 8 of 14 1 2 6 7 8 9 10 13 14
Re: Bump Mapping Shader [Re: Drew] #22210
07/26/04 20:58
07/26/04 20:58
Joined: Oct 2002
Posts: 955
danthaman015 Offline
Developer
danthaman015  Offline
Developer

Joined: Oct 2002
Posts: 955
It seems no matter how bright I make the sun in my level the model is still as dark... so do we really have to wait until we get the new dynamic lighting system????


**On break**

Re: Bump Mapping Shader [Re: danthaman015] #22211
07/26/04 21:05
07/26/04 21:05
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
This shader don't react with any lighting, also not with a new lighting system.

Re: Bump Mapping Shader [Re: oliver2s] #22212
07/26/04 21:45
07/26/04 21:45
Joined: Oct 2002
Posts: 955
danthaman015 Offline
Developer
danthaman015  Offline
Developer

Joined: Oct 2002
Posts: 955
So then wouldn't that make it kind of... useless?? All I can see is like a quarter of the model.. barely.. raising it's ambience and making it bright didn't do anything to it...


**On break**

Re: Bump Mapping Shader [Re: oliver2s] #22213
08/06/04 08:59
08/06/04 08:59
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
This is my first try of any shader ( I don't know how shaders and materials work realy) but this one is effecting it with some sort of lightsource. I applied this shader to my planet earch model ( with a colored skin and a bumpmapped skin)

planet is lit by a dynamic light at level origin and planet rotates on its axis aprox once every minute. the lit up area on the model is also rotating around the model but at a slower rate then the model rotation speed ( imagine a flashlight orbiting the planet at a slower rate then 1 minute per orbit) thats the sort of effect I'm getting from this shader. any ideas what can be causing it?


earth model with bumpmap shader. lite up area not facing level origin


same model without shader effect on it at reversed angle from the above pic ( lit up area is facing dynamic light.)


bump mapped revese angle towards sun ( dynamic light) shows the lighted surface comaired to 1st pic shifts location.


BTW anyone know of a good effect to create a corona or flaring effect to the sun model?

Re: Bump Mapping Shader [Re: Grimber] #22214
08/06/04 16:54
08/06/04 16:54
Joined: Oct 2002
Posts: 955
danthaman015 Offline
Developer
danthaman015  Offline
Developer

Joined: Oct 2002
Posts: 955
Well for the sun I used a few transparent models that were slightly larger than the main sun model, and had them rotating at different speeds, which kind of made it look like it had a glow.

Notice the sun in the background here:



**On break**

Re: Bump Mapping Shader [Re: danthaman015] #22215
02/10/05 01:36
02/10/05 01:36
Joined: Dec 2003
Posts: 130
Austria
B
BrainGamble Offline
Member
BrainGamble  Offline
Member
B

Joined: Dec 2003
Posts: 130
Austria
Hallo oliver!

Habe GS A6 Com, upgedatet auf 6.3
wenn ich die engine starte bekomme ich eine Fehlermeldung:

Malfunction W1550

Error in effect:
bumpmap(52): error X3000: syntax error: unexpected token 'f'

Die fehlermeldung kommt aber erst wenn die engine gestarten ist !!!

Zwar öffnet sich das Spiel aber ich bemerke an dem Model keinen BumpMap effect:

Please Help :-)

PS: eine frage zum Update auf 6.3 : wie kann ich es einstellen das das spiel im Vollbild modus starten? Das dürfte sich geändert haben?!?


<< I 'LL BE BACK >>
Re: Bump Mapping Shader [Re: BrainGamble] #22216
02/10/05 01:45
02/10/05 01:45
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Der Shader funktioniert nur mit A6.22, man muss in ein bischen umschreiben damit der mit A6.31 (DX9) läuft.

Re: Bump Mapping Shader [Re: oliver2s] #22217
02/10/05 02:06
02/10/05 02:06
Joined: Dec 2003
Posts: 130
Austria
B
BrainGamble Offline
Member
BrainGamble  Offline
Member
B

Joined: Dec 2003
Posts: 130
Austria
Hab jetzt auf 6.22 upgedatet.

Funzt jetzt nur is die engine so was von langsam nun (wenn das model im bild ist)

Am PC kanns nicht liegen, der is gut genug...


<< I 'LL BE BACK >>
Re: Bump Mapping Shader [Re: oliver2s] #22218
02/10/05 02:20
02/10/05 02:20
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline
Developer
Red Ocktober  Offline
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
danthan... i think that you've gotta have a light emitting object with the following behavior in your scene, and set the light range so that it is greater than distance of the bumpmapped object...


var light_dist=80000;

action shader_light{
my.invisible=on;
my.passable=on;
while(1){
if vec_dist(my.x, camera.x)<light_dist{
my.light=on;
my.lightrange=60000;
my.red=255;
my.green=255;
my.blue=255;
}
else{
my.lightrange=0;
my.light=off;
my.cast=off;
}
wait(1);
}

just add this action to one a cube model, or any model you want to act as a light object... and place it in your scene near the object(s) you are using the bumpmapping shader on.

good luck
--Mike

Re: Bump Mapping Shader [Re: Red Ocktober] #22219
02/12/05 15:21
02/12/05 15:21
Joined: May 2004
Posts: 157
Earth, for the moment
MASTERJUNOJET Offline
Member
MASTERJUNOJET  Offline
Member

Joined: May 2004
Posts: 157
Earth, for the moment
This code is really good ,one thing however, everything I apply this code to is really dark, I have adjusted my.albedo and my.ambient and all of those, however, it doesnt seem to be affected, how can I brighten up the objects I apply this to?


Projects: Jet Force Gemini 2
Page 8 of 14 1 2 6 7 8 9 10 13 14

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