The Daily Click ::. Forums ::. Klik Coding Help ::. question for all ye extension coders
 

Post Reply  Post Oekaki 
 

Posted By Message

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
10th September, 2003 at 16:08:10 -

i know nothing about coding extensions; so i was wondering: would it be possible to create a real-time lighting extension? bear with me.

well, currently all we can do is make a transparent active object and have done with it. but i'm thinking real lights, that don't suddenly end (hence looking like a big fat triangle or whatever) but get dimmer as the light source is further away. and the light is "stopped" by obstcale backdrops, maybe even casting shadows.

i think this would be nigh-impossible to do conventionally, but i think it'd be cool to have an extension like that.

so, what say you? is it possible, or probable, or neither?

 
www.thenatflap.co.uk

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
10th September, 2003 at 16:11:21 -

very possible. Fast? nah

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
10th September, 2003 at 16:32:45 -

The way the SDK is at the moment, it just wouldn't be feasible. Extensions can't detect the backdrop either, which is why you need to add the 'Test for obstacle overlap' event for the Platform object. In addition, you'd have to make the extension cover the whole screen and redraw it - doing things pixel-by-pixel is slow at the moment. Yes, it'd be possible, but it would be far too slow for you to do anything with it.

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
10th September, 2003 at 17:34:30 -

What if it had say...slots.

You pick a slot(0-29) and set the x, y, radius, etc.

Then it only has to redraw the effect from the x + y to the specified radius...

Just a thought, no idea if it would actually work...

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click