View unanswered posts | View active topics It is currently Sun Jan 05, 2025 4:00 am



Reply to topic  [ 13 posts ] 
 Glowing things getting hidden behind other things 
Author Message
User avatar

Joined: Mon Jul 16, 2007 9:50 am
Posts: 1512
Location: Tallahassee, FL
Reply with quote
Post Glowing things getting hidden behind other things
So, in trying to work on a mod idea, I came across a problem: I have an emitter attached to the body of an actor. This emitter emits pinned MOSParticles with a glow effect. The thing is, it seems that if these particles are located where the actor's body is, the particles are "covered" by the body, and the glow doesn't show up. This kinda ruins my plans to give my actor's body a glow.

Anybody know a solution to this problem? Or perhaps another angle from which to attack it?

If you want to see the problem in action, check out my attachment.


Sun Oct 05, 2008 6:53 am
Profile YIM
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Glowing things getting hidden behind other things
Are you going for a trail effect of glows with this? Or just a fixed glow on the actor?

If the latter, you could just put the glow on the emitter's flash.
Or maybe not have an emitter at all and have a null glowey attachable. If that would work, it would be simpler.

If the prior, I think Crobos had a trail like that, but I'm not sure. It'd be worth taking a look.


Sun Oct 05, 2008 7:41 am
Profile
User avatar

Joined: Mon Sep 29, 2008 3:28 pm
Posts: 37
Location: England, London, Camden
Reply with quote
Post Re: Glowing things getting hidden behind other things
Could it be something to do with hitsmos and getshitbymos on the particles?
Other than that I don't know.


Sun Oct 05, 2008 9:24 am
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Glowing things getting hidden behind other things
youre all wrong.
fixed. also cleaned up the code that referenced darkstorm.rte.
i like how he moves, but i think you need a lot more sparkles, and a higher frequency of emission, as my trail gets ugly quickly.
for the record, it was
Code:
   EffectAlwaysShows = 1

that you were missing.
cheers


Sun Oct 05, 2008 11:12 am
Profile WWW

Joined: Fri Oct 03, 2008 12:34 pm
Posts: 19
Reply with quote
Post Re: Glowing things getting hidden behind other things
Im not sure but you are attaching glow to actor.You can attach actor on glow.


Sun Oct 05, 2008 11:39 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Glowing things getting hidden behind other things
dude, its fixed.. and you cant attach anything to a glow, its just an overlayed effect on something.


Sun Oct 05, 2008 11:46 am
Profile WWW
User avatar

Joined: Mon Jul 16, 2007 9:50 am
Posts: 1512
Location: Tallahassee, FL
Reply with quote
Post Re: Glowing things getting hidden behind other things
Geti wrote:
youre all wrong.
fixed. also cleaned up the code that referenced darkstorm.rte.
i like how he moves, but i think you need a lot more sparkles, and a higher frequency of emission, as my trail gets ugly quickly.
for the record, it was
Code:
   EffectAlwaysShows = 1

that you were missing.
cheers

Whoops, I had darkstorm references? Though I got them all.

Also, Geti, certainly you don't think that this is all I was going to do with the guy? Though I have to say, I kinda want to keep the particle count to a bare minimum. I plan on having a lot of these guys out at once, and would like to avoid lag. Still, there's still things I plan to do with it. I just wanted to fix this one problem.


Sun Oct 05, 2008 5:46 pm
Profile YIM
User avatar

Joined: Mon Apr 28, 2008 1:35 am
Posts: 383
Reply with quote
Post Re: Glowing things getting hidden behind other things
I have a similar problem with a cape going behind a leg, but I don't think a line of code about effect will change it, and drawbeforeparent or w/e the variable is doesn't help, any suggestions?


Thu Oct 09, 2008 3:56 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Glowing things getting hidden behind other things
if its part of an actor (and im assuming it is) then:
attach it after the leg in question, in the actor's code. move the "addattachable =" and all attached code down below it all. and turn drawafterparent on, if it isnt, but you mentioned it was.


Fri Oct 10, 2008 12:25 am
Profile WWW
User avatar

Joined: Mon Apr 28, 2008 1:35 am
Posts: 383
Reply with quote
Post Re: Glowing things getting hidden behind other things
Won't that move it with the leg?


Fri Oct 10, 2008 1:08 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Glowing things getting hidden behind other things
no, no, you misunderstand me.
in the code, written as a dummy, not actual code, itll be like this
Code:
addactor = actor
<code>
addattachable = <cape here>
<maybe more code>
fgleg = <leg>
bgleg = <leg>

cut the addatachable code, and place it [i]below[/b] the fgleg/bgleg bit. then it will be attached after them, and therefore infront of them. i think :P


Fri Oct 10, 2008 5:06 am
Profile WWW
User avatar

Joined: Tue Aug 21, 2007 2:55 pm
Posts: 948
Reply with quote
Post Re: Glowing things getting hidden behind other things
To my knowledge DrawAfterParent (?) draws the object, well, in front of the parent object, which in this case, is the torso. Because the legs are added later, you cant really do anything about it, since they are added "on top" of the existing limbs/attachments.


Fri Oct 10, 2008 7:57 am
Profile
User avatar

Joined: Mon Apr 28, 2008 1:35 am
Posts: 383
Reply with quote
Post Re: Glowing things getting hidden behind other things
Geti wrote:
no, no, you misunderstand me.
cut the addatachable code, and place it [i]below[/b] the fgleg/bgleg bit. then it will be attached after them, and therefore infront of them. i think :P


nah, that's what I had already


Fri Oct 10, 2008 10:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 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.046s | 13 Queries | GZIP : Off ]