View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:03 pm



Reply to topic  [ 8 posts ] 
 Adding Glow To Irregular-Shaped Object? 
Author Message

Joined: Sun Jul 22, 2012 3:06 pm
Posts: 129
Reply with quote
Post Adding Glow To Irregular-Shaped Object?
I have been trying to add a more oval glow to a more cylindrical object and have failed about 4 times now..

My frist attempt was using an AEmitter (which emits an invisible MOPixel with ScreenEffect) attached to an MOSRotating, then using the MOSRotating as the round's particle. This would work fine for a round glow, but for the irregular object I'm using, the glow doesn't orient to it... (come to think of it, I'm using this same technique on another object, and the glow doesn't orient to that one, either...... I know because the glow is irregular in that case).

Second attempt was using an MOSParticle with a ScreenEffect, and this works great!!!! Except......... for some reason you can't define an AtomGroup and/or DeepGroup, so there's 1 pixel that takes on the mass and sharpness characteristics..

Third attempt.. trying #1 with OrientToVel somewhere on the AEmitter.. nothing happens.. I could try this again but I'm pretty sure it fails. Yeah.. tried it again to make sure, this doesn't work.

Fourth attempt.. trying to slap on ScreenEffect to an MOSRotating.. which does nothing.

Anyone know how to accomplish this? I don't understand really why the AddEmitter = AEmitter isn't joining the glow properly on either object.. like they join but they wont rotate with the objects.


Thu Jan 03, 2013 6:56 pm
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
Glows can't rotate at all. If you want them to rotate you'll have to do fancy Lua stuff.


Thu Jan 03, 2013 7:15 pm
Profile YIM

Joined: Sun Jul 22, 2012 3:06 pm
Posts: 129
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
Figured as much.. ugh.. okay where can someone who knows nothing about coding/programming go to start? =.=

Actually your statement is false :) they CAN rotate.. just not attach to anything particularly useful. (MOSParticle).


Thu Jan 03, 2013 7:29 pm
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
The easiest way to have what you want would probably to be to have round glows at different points on your sprite so that the overall effect would be of the shape you want.


Thu Jan 03, 2013 7:47 pm
Profile

Joined: Thu Jan 13, 2011 1:31 pm
Posts: 158
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
Quote:
If you want them to rotate you'll have to do fancy Lua stuff.


Is this for true, or just speculation?


Thu Jan 03, 2013 9:14 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
I guess the only way is to create many glows at different angles and switch them with Lua like in Mehman's laser. Or do what p3lbo0x said.


Thu Jan 03, 2013 11:46 pm
Profile

Joined: Thu Jan 13, 2011 1:31 pm
Posts: 158
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
This is a pity. Being able to rotate glows would resolve a huge number of lag problems associated with generating effects in this game.
Old news I suppose.


Thu Jan 03, 2013 11:51 pm
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 666
Location: Halifax, Canada
Reply with quote
Post Re: Adding Glow To Irregular-Shaped Object?
Mehman seems to have a program in his mod that'll do the glow rotating and the ini creation for you, so really this wouldn't be too difficult at all. Then his script just needs to be cannibalized to fit whatever purpose and you have fairly easy rotatable glows.


Fri Jan 04, 2013 4:07 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.078s | 13 Queries | GZIP : Off ]