Lights?

Post » Sat Jan 23, 2010 10:55 pm

Hi!
I was wondering, how are lights made? I know that it's possible because there are custom torches, lanterns etc.

For example, I have made a candlestick mesh with candle [- http://www.mediafire.com/?cjmdn2jqzym -http://i285.photobucket.com/albums/ll54/pero_lozhach/Learning%20Blender/Clipboard02-4.jpg - ].
Now, it doesn't emit light and it doesn't have flame.
It is supposed to be clutter item.

Does anyone know how to do it and cares to share the knowledge?

Thanks in advance!
User avatar
Add Me
 
Posts: 3486
Joined: Thu Jul 05, 2007 8:21 am

Post » Sat Jan 23, 2010 6:34 pm

Open one of stock candles in NifSkope then you'll see that it has at least two nodes there - named Attach Light and Attach Flame. All you need to do is to copy that branch from stock mesh to yours and then edit position (translation) of these nodes in their properties. And don't forget to change BSX flag in your nif as well (should be the same as BSX of stock candles).
User avatar
Steeeph
 
Posts: 3443
Joined: Wed Apr 04, 2007 8:28 am

Post » Sat Jan 23, 2010 9:20 pm

For a clutter item it won't work though (as in CS category MiscItem). Only items in the 'light' CS category will ever emit light by normal means (not scripted, which is a major p in the a or by light spell effect, which is not possible for clutter). That means you can only make static lights or lights you can equip (aka torches).

You don't actually need an 'AttachLight' node, but if you don't have one the light will emit from the root of the nif (xyz 0).

There are different flame nodes (some are large, some are small etc), you need to find one that fits your candle. Just look at a candle nif and use the number used there (FlameNode0 should do). Like Trollf said, change the bsx flags as well or the flame won't show up.

You also need to make sure that you copy an existing light with a mesh attached if you want to add a light with a new mesh (change editor ID of an existing light and create a new form). Creating a new light entry and adding a mesh to that light will result in a crash when the light is loaded in game, seems to be a strange bug.
User avatar
Jason White
 
Posts: 3531
Joined: Fri Jul 27, 2007 12:54 pm

Post » Sat Jan 23, 2010 8:18 pm

Thanks, I'll try to make static and see if I can do that first.

So clutter candles don't work? I have downloaded some mods (candles for cleptos and one more) that add clutter candles, but I haven't checked them.
If that's not possible, maybe some kind of drop-lit-candle set as torch would do the trick?

But I'll try static first.
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm

Post » Sat Jan 23, 2010 12:51 pm

Thanks, I'll try to make static and see if I can do that first.

So clutter candles don't work? I have downloaded some mods (candles for cleptos and one more) that add clutter candles, but I haven't checked them.
If that's not possible, maybe some kind of drop-lit-candle set as torch would do the trick?

But I'll try static first.


I think what these mods do is they exchange the candle object when you activate them (a static version from the light category in game mode and a misc item in your inventory). I'm sure there is a possible workaround.
User avatar
Catharine Krupinski
 
Posts: 3377
Joined: Sun Aug 12, 2007 3:39 pm


Return to IV - Oblivion