Author |
Message |
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
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 |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
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 |
|
|
Wrath
Joined: Mon Sep 29, 2008 3:28 pm Posts: 37 Location: England, London, Camden
|
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 |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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 |
|
|
secret_modder
Joined: Fri Oct 03, 2008 12:34 pm Posts: 19
|
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 |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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 |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
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 |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
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 |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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 |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
Re: Glowing things getting hidden behind other things
Won't that move it with the leg?
|
Fri Oct 10, 2008 1:08 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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
|
Fri Oct 10, 2008 5:06 am |
|
|
Kallemort
Joined: Tue Aug 21, 2007 2:55 pm Posts: 948
|
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 |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
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 nah, that's what I had already
|
Fri Oct 10, 2008 10:39 pm |
|
|
|