Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
shading on level geomerty #202556
04/15/08 18:23
04/15/08 18:23
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
hi - i have bought A7 commercial and i just want to try out shaders, but i do not get shaders on level geomertry working... (on models it works fine)
the textures are very darken but no shader effect, also if i try soem example-levels nothing happend...

is there any build-option - i forgotten???

i added following in my main-code:
 Quote:
bmap tile1_normal_bmap = <tile1.tga>;

material tile1 //<---This has to be the Textures Name
{
skin1 = tile1_normal_bmap;

flags = tangent;
effect = "spec_bump_world.fx";

and i added:
 Quote:
d3d_automaterial = on;

but the texture "tile1" is neary black (very dark)
i tried some differend fx -> but no change

so please help me
thx Kasimir

Re: shading on level geomerty [Re: kasimir] #202564
04/15/08 18:48
04/15/08 18:48
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Is "tile1.tga" a normalmap? If not, there are a cuple of textures to convert it to one (the results will probably not be the best, but you can play around with the different ways when it basicly works). Even GS can make your texture a normalmap.
Just call this somewhere:
bmap_to_normals(tile1_normal_bmap,1);

If that still does not work, show us a screenshot of what it looks like.

Re: shading on level geomerty [Re: Slin] #202580
04/15/08 20:26
04/15/08 20:26
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
thx - but no effect!
i am using the NM_genarator (ts games)



Re: shading on level geomerty [Re: kasimir] #202581
04/15/08 20:27
04/15/08 20:27
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
do you have a dynamic light somewhere?

Re: shading on level geomerty [Re: Slin] #202582
04/15/08 20:32
04/15/08 20:32
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
yes its righ above the floor -> the walls are bright, but not the both textures i want to shade normalmapping on...

there is also no effect if i open a template-shader, but then all surfaces are brighten...

Re: shading on level geomerty [Re: kasimir] #202583
04/15/08 20:46
04/15/08 20:46
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Do you use a shaded block or a flat one?

Re: shading on level geomerty [Re: Slin] #202625
04/16/08 07:20
04/16/08 07:20
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
I use shaded blocks...
but if i run a template-shader-level there is also no effect (and i think them still works) (massive 3DGS shadercollection)
-> is there some special run-option ???

Re: shading on level geomerty [Re: kasimir] #202627
04/16/08 07:28
04/16/08 07:28
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
no there is no special run option.
The templateshaders don't work with blocks.
You should first try flat ones

Re: shading on level geomerty [Re: Slin] #202628
04/16/08 07:37
04/16/08 07:37
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
sry - no change... with templateshaders i mean "massive 3DGS shadercollection"
compiled them work fine... but not if i open source-code!

also if i select "mirror" to a block nothing happens... (but i think that should quite work...)

i am totaly confused...

Re: shading on level geomerty [Re: kasimir] #202637
04/16/08 08:51
04/16/08 08:51
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
i am much more confused - but suddenly it works fine \:D


but if i include a static light (without dyn light) - i get this effect:


how to get this work, so the textures are normaly in "real" light???

Page 1 of 4 1 2 3 4

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