Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411281 Posts in 69324 Topics- by 58380 Members - Latest Member: bob1029

March 28, 2024, 06:26:30 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)my wall lighting is broken please help (javascript)
Pages: [1]
Print
Author Topic: my wall lighting is broken please help (javascript)  (Read 568 times)
Sixmorphugus
Level 0
***


._.


View Profile
« on: May 10, 2015, 11:04:53 AM »

http://memorymelt.net/html5/chris/delvinlt4/index.html

The code is embedded in the page - it's all javascript.
I've been fiddling around with it all day. I'm a novice at lighting and maths and all of this is based off an example I found on the game mechanics showcase and modified pretty heavily. I think I'm getting used to the central ideas but I was wondering if any of you could give me a hand.

The issues I'm having are:
- Walls have no depth, light doesn't bend when hitting them
- This (http://i.imgur.com/l1AdqIn.png)
- Optimization with more walls (app runs very slow when many walls are present, have tried optimizations to ignore far walls but unsuccessful so far)


Nevermind, it's all good. Solved the problem myself.
« Last Edit: May 10, 2015, 12:20:02 PM by Chrisbot6 » Logged

There's no place like 127.0.0.1.
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic