Duke4.net Forums: Switch lights on Sprite shadows? - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Switch lights on Sprite shadows?

User is offline   Maisth 

  • 6

#1

Can i make Switch lights on Sprite shadows like this?

Also thats the light and the switch.

Attached thumbnail(s)

  • Attached Image: duke0006.png
  • Attached Image: duke0007.png
  • Attached Image: duke0008.png


Ah Yeah
0

User is offline   Forge 

  • 4,687

#2

N

^ sets sprite's flag to not take on sector shade
so it will do what you're attempting -
- except on certain 'character / named' sprites that have hard coded cstat values
2

User is offline   Micky C 

  • Honored Donor
  • 3,352

#3

Isn't he wanting to have those shadows switch on and off with a light switch?

If so, the answer is no. Duke 3D doesn't allow for fine control over surface lighting like that.

Polymer wishlist: Global illumination, SSAO, Bloom, reflective surfaces, adjustable specular (wetness), volumetric lighting.
Mapper of the Month December 2014.

Herbs? Tell me more!
0

User is offline   Maisth 

  • 6

#4

The N Trick does work though thanks!

Ah Yeah
0

User is offline   Forge 

  • 4,687

#5

View PostMicky C, on 12 August 2017 - 03:13 PM, said:

Isn't he wanting to have those shadows switch on and off with a light switch?

If so, the answer is no. Duke 3D doesn't allow for fine control over surface lighting like that.

dude.

think about it.

the (transparent) sprites' shade values are set to match the room when the lights are off.

then.

when the lights are turned on.

they stay 'dark' because they won't take on the shade properties of the newly lit sectors.

they now effectively look like shadows.

turns the lights back off & they match the shade of the room again.

smoke more weed, you're too smart for your own good.

This post has been edited by Forge: 12 August 2017 - 07:25 PM

2

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners and all comments are owned by their posters. Yes, our forum uses cookies. © 2004-2017 Duke4.net and Voidpoint, LLC

Enter your sign in name and password


Sign in options