Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 7 1 2 3 4 5 6 7
Re: dot3 bumpmapping example [Re: Matt_Aufderheide] #16993
10/27/03 10:31
10/27/03 10:31
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
crappy model, but you get the point...obviously looks right when its in motion...




Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: dot3 bumpmapping example [Re: Drew] #16994
10/27/03 10:33
10/27/03 10:33
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
oh! a zombie! shouldn't the black parts be transparent? maybe the pixelshader needs some additions to handle that correctly...

Re: dot3 bumpmapping example [Re: Drew] #16995
10/27/03 10:35
10/27/03 10:35
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
whoa...try turning on 'overlay' with this shader...sorta works... black 0,0,0 is alpha , plus the texture tends to go transparent in all the wrong places...
Thats ok, i dont need it for now, and I undertand this is a sort of hack until the bug is fixed...




Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: dot3 bumpmapping example [Re: Drew] #16996
10/27/03 10:37
10/27/03 10:37
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
transparency isn't affected by the model normals bug. have you seen my overlay thread? -> http://www.conitecserver.com/ubbthreads/showflat.php?Cat=&Number=297998&page=0&view=collapsed&sb=5&o=&fpart=1 overlays work much better now with pixelshaders. no black borders anymore. the overlay shader could be combined with this one...

Re: dot3 bumpmapping example [Re: ventilator] #16997
10/27/03 10:49
10/27/03 10:49
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
hmmmm.... i tried but didn't work due to my limited knowledge of shaders...



Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: dot3 bumpmapping example [Re: Drew] #16998
10/27/03 10:56
10/27/03 10:56
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
how do you actually ind a dynamic light?my nearest light function only seems to respond to statics..
Code:
function find_nearest_light()

{
temp.pan =360;
temp.tilt=360;
temp.z=3000;
you=scan_entity(my.x,temp);

if your.light==ON
{

temp.x = your.x;
temp.y = your.y;
temp.z = your.z;
my.skill41=float(temp.x);
my.skill42=float(temp.y);
my.skill43=float(temp.z);
my.skill44=float(1);

return ;
}
}



does this seem right? i am supposing that you cant find a dynamic light with scan_entity..but then how?



Sphere Engine--the premier A6 graphics plugin.
Re: dot3 bumpmapping example [Re: Drew] #16999
10/27/03 11:01
10/27/03 11:01
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
hmmmm.... i tried but didn't work due to my limited knowledge of shaders...

pass p0
{
Texture[0]=<texSkin1>;
Texture[1]=<texSkin2>;

ZWriteEnable=true; // add these three lines
AlphaTestEnable=true;
CullMode=none;
...

PixelShader=
asm
{
ps.1.3
def c0,1,1,1,1
def c1,0,0,0,0
tex t0 // sample colormap
tex t1 // sample normalmap
mov r0,t0
cnd r0.a,r0.a,c0,c1
dp3 r1,t1_bx2,v0_bx2 // normal . light
mul r0.rgb,t0,r1
};

the transparency gets controlled with the alpha channel of the colormap. all alpha values less then 0.5 will be completely transparent and all values above 0.5 will be completely opaque. you have to experiment a little with the alphachannel to get the hang of it, but it works much better than normal overlays!

Re: dot3 bumpmapping example [Re: Matt_Aufderheide] #17000
10/27/03 11:11
10/27/03 11:11
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
@matt: your function seems to make sense. i don't have the time at the moment to test this myself though!

Re: dot3 bumpmapping example [Re: ventilator] #17001
10/27/03 11:16
10/27/03 11:16
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
k.. one thing tho.. i dont think im calling it in the right place.. im trying to use this on actor_walk_fight action.. where do you think would be the best place to call it


Sphere Engine--the premier A6 graphics plugin.
Re: dot3 bumpmapping example *DELETED* [Re: Matt_Aufderheide] #17002
10/27/03 11:20
10/27/03 11:20
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
Post deleted by jcl

?

Page 6 of 7 1 2 3 4 5 6 7

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