View previous topic :: View next topic |
Author |
Message |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Tue Apr 27, 2010 5:43 pm Post subject: ef_dimlight |
|
|
I'm using ef_dimlight for various things, not least of all the torch, but also in highlighting 'usable' items. However dimlight is too bright for the effect I want. Is there a way thru' qc to reduce the brightness or create a new ef_***light to do the job? Its got to be not engine specific however...
Cheers. _________________ my site |
|
Back to top |
|
 |
necros
Joined: 16 Dec 2004 Posts: 22
|
Posted: Tue Apr 27, 2010 5:49 pm Post subject: |
|
|
without using a custom engine, there isn't much options.
you could try looping and continuously setting EF_MUZZLEFLASH (as that effect only lasts 0.2 seconds), but it's about the same size as EF_DIMLIGHT (except it flickers less).
if you just want to highlight entities, you could try making a sprite with 4 frames, where each frame is an L shape pointed in a different direction. when you 'mouse over' the entity, you calculate it's bounds with .mins and .maxs and then spawn and position the 4 corner sprites to make like a hud/reticle effect.
http://www.activewin.com/reviews/software/games/f/images/freespace2_1.jpg (the ship in the center, the 4 L shaped red corners) |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Tue Apr 27, 2010 7:16 pm Post subject: |
|
|
particles are fullbright. _________________ What's a signature? |
|
Back to top |
|
 |
Junrall

Joined: 21 Sep 2009 Posts: 136 Location: North West Oregon, USA
|
Posted: Tue Apr 27, 2010 10:18 pm Post subject: |
|
|
Maybe you could place a light entity just above the item. Adjust it's light radius and lightstyle for the effect you are looking for... then trigger it off when the item is touched. _________________ Good God! You shot my leg off! |
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 910
|
Posted: Wed Apr 28, 2010 12:30 am Post subject: |
|
|
Junrall wrote: | Maybe you could place a light entity just above the item. Adjust it's light radius and lightstyle for the effect you are looking for... then trigger it off when the item is touched. |
Yeah, that's what I'd do. It would also completely avoid dynamic lights shining through walls, which EF_DIMLIGHT (or any other EF_* for that matter) wouldn't. _________________ DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines |
|
Back to top |
|
 |
ajay

Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK
|
Posted: Wed Apr 28, 2010 6:14 am Post subject: |
|
|
mh wrote: | Junrall wrote: | Maybe you could place a light entity just above the item. Adjust it's light radius and lightstyle for the effect you are looking for... then trigger it off when the item is touched. |
Yeah, that's what I'd do. It would also completely avoid dynamic lights shining through walls, which EF_DIMLIGHT (or any other EF_* for that matter) wouldn't. |
Yep thats a very nice solution, thanks. Still wish I reduce the torch though....... nevermind. _________________ my site |
|
Back to top |
|
 |
|