Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
lightmaps for shaders? #390490
12/31/11 12:40
12/31/11 12:40
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
Hi,

I want to use lightmaps for model and csg level geometry. Before I was using shaders I just baked the shadows onto my models. But when I looked up in the manual I found that eg (spec)bump shader supports light maps.
So my question: where do I put the lightmap in? At the moment I am using 24bit texture + 32bit bump + specmap in the alpha channel.

Thanks in advance!!


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: lightmaps for shaders? [Re: MPQ] #390491
12/31/11 12:44
12/31/11 12:44
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Put it into the second UV set.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: lightmaps for shaders? [Re: WretchedSid] #390493
12/31/11 13:17
12/31/11 13:17
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
ok thank you for the short answer, but It's a bit too short for me wink

what does "second uv set" mean? the second texture? I am already using the second texture for bump and specmap?!


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: lightmaps for shaders? [Re: MPQ] #390494
12/31/11 14:00
12/31/11 14:00
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
The engine puts the lightmap in entSkin2. Also you have to sample it with the second UV-Texcoord set (in float2 LMapTex : TEXCOORD1) as Sid already mentioned.

Re: lightmaps for shaders? [Re: Hummel] #390570
01/02/12 10:54
01/02/12 10:54
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
thank you, it's working!!!


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com

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