Home   Help Search Login Register  

Author Topic: want light cast by a fire  (Read 1718 times)

0 Members and 1 Guest are viewing this topic.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
want light cast by a fire
« on: 10 Aug 2006, 22:11:18 »
I use General Barron's fireEffect.sqs script often for burning vehicles, barrels, etc.  I love it.

However, in dark night missions, I noticed the fires don't cast any light about them (you see the fire itself, but immediate surroundings not lit up).

I would like to have the fires illuminate some distance from the fire (the bigger the fire, the more illumination).  Any ideas how to go about this?

Thanks!
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Razorwings18

  • Contributing Member
  • **
  • I'm NOT a llama. I checked.
Re: want light cast by a fire
« Reply #1 on: 11 Aug 2006, 07:26:34 »
Well, I've been out of the loop for a while, so there may be a better way nowadays...
But back in my days (say out loud using your best grandpa voice) I would've CAMCREATEd a flare and made a script to constantly SETPOS it at fire's position so it won't fall.
That's how I did a flashlight script some good 3 years ago. Figure you can use CreateVehicle instead of CamCreate for the flare.

If you think that's too much light, you could try CREATEVEHICLEing a FIRE object at the position and INFLAME it. Maybe looping a SETPOS so it's located within the fire?

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: want light cast by a fire
« Reply #2 on: 11 Aug 2006, 17:28:32 »
Thanks for the good ideas Raz.  I tried both. 

The flare is too bright and has a "glare" sprite that when positioned over a fire (such as a burning vehicle) looks really goofy.

The fire object worked better, and since ofp editing is all about work-arounds, it will probably suffice for my current need.  To lower the light radius cast, I just sank the fire object under ground (negative z coord).  This worked well for reducing the light radius, but the player can still see an underground glow where the fire is, which is lame.

I wonder if anyone knows of another light casting object I can use where you can actually control the intensity of the light cast?
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: want light cast by a fire
« Reply #3 on: 23 Aug 2006, 15:14:23 »
If you have BAS's Tonal Island Addon, it comes with a number of different coloured glow objects. AFAIK, there is no addon with controllable luminosity.  As for being able to see the glow underground, you will just have to live with it, as that is also an engine limitation.  You must have noticed before that the glow from the sun is also visible through terrain sometimes, and always through the walls of a chinook.

EDIT:
1) Search the forums for "fire and "glow" and find this thread.
2) Read it and see that Trapper has created such an object.
3) PM him and ask if he will send it to you.
« Last Edit: 23 Aug 2006, 15:29:45 by Mr.Peanut »
urp!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: want light cast by a fire
« Reply #4 on: 23 Aug 2006, 17:28:57 »
thanks mate!
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: want light cast by a fire
« Reply #5 on: 23 Aug 2006, 22:26:39 »
One way is to edit the script itself to include glowing particles, like halflight... (IIRC)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: want light cast by a fire
« Reply #6 on: 23 Aug 2006, 23:11:18 »
Halflight?
One way is to edit the script itself to include glowing particles, like halflight... (IIRC)
urp!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: want light cast by a fire
« Reply #7 on: 24 Aug 2006, 01:43:01 »
Can you direct me to an example of glowing particles in use somewhere? 
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: want light cast by a fire
« Reply #8 on: 24 Aug 2006, 08:35:36 »
Halflight?
One way is to edit the script itself to include glowing particles, like halflight... (IIRC)
Yes..
The other one is koulesvetlo but it seems to be the same as halflight...
Halflight is used by some lightsource (a streetlamp I guess) and koulesvetlo is used by the camp fire..

But now I'm not 100% sure they actually light up the surroundings though as it may be some hardcoded thingy which does that.. :(
Using the campfire is the safest bet..

Quote
Can you direct me to an example of glowing particles in use somewhere?
I use them in some old unfinished and unreleased stuff to make fire look hotter (IIRC, been a long time since I tinkered with them..) but nothing else comes to mind..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: want light cast by a fire
« Reply #9 on: 25 Aug 2006, 00:28:48 »
 :check:
urp!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: want light cast by a fire
« Reply #10 on: 25 Aug 2006, 04:47:43 »
Thanks alot Mr. P.  In that fire.sqs you uploaded, this appears to be the desired code:

_glow = "bas_islefire" createvehicle [0,0,0]
_glow setpos [getpos _object select 0, getpos _object select 1,1.5]
_glow inflame true

I will find the bas addon that contains this and check it out.  Thanks again.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...