Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ChrstphFr), 875 guests, and 5 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
Dynamic Lighting Example #457593
01/23/16 16:00
01/23/16 16:00
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline OP
Serious User
Steempipe  Offline OP
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
It took, and I kid you not, over 6 hours to produce a lighting model that I was content with.

I was having lots of trouble getting a worthwhile dynamic lighting contribution to a normalmapping project. I decided to start at the most basic level and build from there, by comparing results to the stock engine lighting and formulating the shader.

I can't believe how something that seems so simple can create such a headache.

This is lighting done in the vertex shader and them passed to the pixel shader.

Edit: I compiled with shader model 2.0. So that's the minimum requirement.

Download Demo Scene





Last edited by Steempipe; 01/23/16 16:29. Reason: requirements
Re: Dynamic Lighting Example [Re: Steempipe] #457600
01/23/16 17:21
01/23/16 17:21
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Great to see that you are making a great progress! Please, keep it up!

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Dynamic Lighting Example [Re: 3run] #457601
01/23/16 17:57
01/23/16 17:57
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline OP
Serious User
Steempipe  Offline OP
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
Originally Posted By: 3run
Great to see that you are making a great progress! Please, keep it up!

Best regards!


Thanks! I plan to. Keeps me outta trouble these days shocked


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