Closed Thread Icon

Topic awaiting preservation: Raycasting engine with dynamic lighting. Pages that link to <a href="https://ozoneasylum.com/backlink?for=8879" title="Pages that link to Topic awaiting preservation: Raycasting engine with dynamic lighting." rel="nofollow" >Topic awaiting preservation: Raycasting engine with dynamic lighting.\

 
Author Thread
RobertG
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 10-01-2003 11:37

http://www.elephantsneverforget.co.uk/SKYNET/lighting.html

Use wasd to move around. This map has two lights one (behind you when you start) is moving around.

It's a little slow (if you disable light collision detection it's quite fast though, even on my crappy computer), if you put the light precision to 8 it's less glitchy but slows down to about 5fps with me


Anyone got any ideas on speeding it up or improving the blending / lighting parts?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-01-2003 21:20

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Dick Ulrich
Bipolar (III) Inmate

From: Dublin, TX, USA
Insane since: Sep 2003

posted posted 10-02-2003 04:57

Nice stuffola there !! My suggestions are guesses more than fact based.
--------------------------------------------------------------------------

WallSlices[X]=document.createElement("DIV");
WallSlicesXstyle = WallSlices[X].style;

then: (don't know if this will speed up or not)

WallSlicesXstyle.position="absolute";
WallSlicesXstyle.height=Height;
WallSlicesXstyle.top=(100-(Height>>1));
WallSlicesXstyle.left=(X<<3);
WallSlicesXstyle.backgroundColor=Color;
WallSlicesXstyle.width=8;
//WallSlicesXstyle.zIndex=-z;
----------------------------------------------------------------------------
above the loop: ( don't know if this is safe or not )
pcontainer = document.getElementById("container"); //do once above loop?

then in the loop:
p.appendChild(WallSlices[X]);
----------------------------------------------------------------------------

before:
document.getElementById("obj"+i).style.left=transx - (height>>1);
document.getElementById("obj"+i).style.width= (height>>2);
document.getElementById("obj"+i).style.height= (height>>2);

after:
pobjstyle = document.getElementById("obj"+i).style;
pobjstyle.left=transx - (height>>1);
pobjstyle.width= (height>>2);
pobjstyle.height= (height>>2);

Dick

« BackwardsOnwards »

Show Forum Drop Down Menu