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), 692 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: shading on level geomerty [Re: kasimir] #202645
04/16/08 10:13
04/16/08 10:13
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
It does not work with static lights, but you can combine the static lightmap with the shader for dynamic lights. You can see that the texcoords are wrong on the last picture. Thats what happens when the shader is made for flat blocks and you are using shaded blocks, or the other way around.

Re: shading on level geomerty [Re: Slin] #202647
04/16/08 10:43
04/16/08 10:43
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, Thanks - flat helps...
just one problem left: how do i create mirror-surfaces???

Re: shading on level geomerty [Re: kasimir] #202653
04/16/08 11:27
04/16/08 11:27
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
i even got the bumpmap problem if i set the flat flag ....always dark or just normal texture...

for mirror surfaces, place an (invisible)entity with the fxa_mirror script somewhere and set the mirror flag on ur texture/surface...but the reflections are really buggy


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: shading on level geomerty [Re: Arcaine] #202654
04/16/08 11:35
04/16/08 11:35
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Just don´t use the mirror flag it is outdated, but a fixed function or shader effect. There should be something in the templates.

Re: shading on level geomerty [Re: Slin] #202655
04/16/08 11:40
04/16/08 11:40
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
well,
i dont need to use mirrors i think ...i just wanted my ground get affected by lights like the one screenshot he took where it works ...but it seems this doesnt work ... dont know how and dont know why ^^...it was the first try to get my ground bumpmapped, and i tried it with kasimirs code^^


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: shading on level geomerty [Re: Arcaine] #202659
04/16/08 12:14
04/16/08 12:14
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
so i created a faked mirror with "bmap_for_entity"
but where i can find a mirror-script, i found nothing in wiki or on the ressouce-site...

Re: shading on level geomerty [Re: kasimir] #202660
04/16/08 12:16
04/16/08 12:16
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
in the fxa.wdl script is a predefined mirror (FXA_Mirror), can be found in the template_6/code/ afaik


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: shading on level geomerty [Re: Arcaine] #202664
04/16/08 12:40
04/16/08 12:40
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
but it seems that your normalmapping shader works...maybe can u help me with mine ....there is something missing but i dont know what ...the level starts normal...no errors nothin....my bloom shader works fine ...but the normalmapping wont work...dunno why is there something is have to include especially for this ?
my code is the same you posted...just a different skin/normalmap...the writing is right...but i dont know where my problem lies....


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: shading on level geomerty [Re: Arcaine] #202668
04/16/08 13:02
04/16/08 13:02
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
The first normalmap code i used doesn*t work... (massive 3DGS shader collection)
but another works fine, perhaps try another normalmap-shader...
(don't forget dynamic light)

Re: shading on level geomerty [Re: kasimir] #202670
04/16/08 13:06
04/16/08 13:06
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
mhmm i tried the one you have in your code snippet, after this one doesnt work i tried the one from the wiki ... okay...now ill try the one from the collection xD


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Page 2 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