Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Problem with enable lights  (Read 2501 times)

0 Members and 1 Guest are viewing this topic.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Problem with enable lights
« on: August 30, 2006, 08:31:38 PM »

Hi there. We searched a bit around and found in thread http://forum.dead-code.org/index.php?topic=824.0 some code about a traffic light.
We adapted the code, or better said, reduced it, that it fits our purpose. Ok, we hoped that.
Point is. We want to deactivate the 3dgeometry lights, because it looks scrappy, when the light in the scene gets switched off, but the actor gets still influenced. Our code looks that way:

Code: [Select]
Scene.DisableLight("Spot_01");

But it doesn't affect the light source "Spot_01" in any way. We created the spot in 3ds Max in connection with the geometry.
Where is our error?

Thank you for upcoming posts.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with enable lights
« Reply #1 on: August 30, 2006, 09:52:51 PM »

Hmm, it should work, providing the light name is spelled properly. Where are you calling this from?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: Problem with enable lights
« Reply #2 on: August 31, 2006, 02:16:29 PM »

Sorry, the Problem was on our side. Our light program (the one I sent the screenshot to you) had an internal error and misinterpreted the light names, which caused, that WME could not find the light.
 

Page created in 0.043 seconds with 20 queries.