Glow effects

Making or wanting help making your own asset? Check in here
Post Reply
MajorIceman
Posts: 11
Joined: 2019-01-23 23:28

Glow effects

Post by MajorIceman »

Hi there do you know if it is possible to add the glow effect to other meshes

For example rather then just a bulb shape i have some tubes as in strip lights and would like to give them a glow effect do you know if this is possible

Also we are making a Stargate mod for BF2 and would like if possible to add an effect to the Event Horizon to make this almost glow so its on night maps it would look awsome

any info or advice would be great.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Glow effects

Post by Rhino »

I don't think anyone here has experimented at all with creating any new glow effects so you will just have to experiment yourself with it and see what you can do. Would be interested to hear your results btw!
Image
MajorIceman
Posts: 11
Joined: 2019-01-23 23:28

Re: Glow effects

Post by MajorIceman »

No worries i have a go and see what i can come up with and let you know my findings
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: Glow effects

Post by Arab »

Battlefield 2 or XPack (Special Forces Update) introduced Lightsources which allows dynamic lighting.

So you would need to create a .con and tweak file.

I've got some code you could use:

.con

Code: Select all

ObjectTemplate.create Bundle damagefirelight_small
ObjectTemplate.createdInEditor 1
include damagefirelight_small.tweak
.tweak

Code: Select all

rem *** Generated with Bf2Editor.exe [created: 2005/4/6 8:57]
ObjectTemplate.activeSafe Bundle damagefirelight_small
ObjectTemplate.modifiedByUser Arab
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate damagefirelight_small_LightSource
rem -------------------------------------
ObjectTemplate.create LightSource damagefirelight_small_LightSource
ObjectTemplate.modifiedByUser Arab
ObjectTemplate.createNotInGrid 1
ObjectTemplate.createdInEditor 1
ObjectTemplate.lightType Point
ObjectTemplate.isDynamic 1
ObjectTemplate.castsStaticShadow 1
ObjectTemplate.castsDynamicShadow 0
ObjectTemplate.selfLights 1
ObjectTemplate.selfShadows 0
ObjectTemplate.supportsPerVertex 1
ObjectTemplate.supportsPerPixel 0
ObjectTemplate.supportsGlow 1
ObjectTemplate.supportsEmitter 1
ObjectTemplate.affectLightmappedObjects 1
ObjectTemplate.affectingType 0
ObjectTemplate.attenuationRange1 2
ObjectTemplate.attenuationRange2 2
ObjectTemplate.color 1/1/1
ObjectTemplate.speccolor 1/1/1
ObjectTemplate.HDRIntensity 1
ObjectTemplate.coneAngle1 10
ObjectTemplate.coneAngle2 12.5
ObjectTemplate.projectorTexture 
ObjectTemplate.projectorFov 1.0472
ObjectTemplate.projectorAspect 1
ObjectTemplate.projectorNear 0.001
ObjectTemplate.projectorFar 5
ObjectTemplate.enabled 1
ObjectTemplate.fov 8
ObjectTemplate.objectShadows 1
ObjectTemplate.shadowIntensity 0.85
ObjectTemplate.softness 0
ObjectTemplate.intensity 1
ObjectTemplate.flicker 0.1
ObjectTemplate.scale 1/1/1
And then you can add ObjectTemplate.addTemplate damagefirelight_small to the .tweak of your mesh anywhere and set it with ObjectTemplate.position x/y/z (numbers) and ObjectTemplate.rotation x/y/z

You can make it flicker frequently by increasing it from 0.1 to 1, otherwise you can disable it by setting it to 0.
Image
Post Reply

Return to “PR:BF2 Community Modding”