Author Topic: Correct combination for emitters to point same direction as parent object  (Read 480 times)

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0


               I'm trying to make an overlay that comes out of an emitter, or a model that can be applied via EffectVisualEffect() in the script. I specifically want the emitted object to have a facing, and that facing must match up with the parent object, such as the PC the VFX is attached to. So far, NWN is failing me in every aspect, but I don't know if it is impossible, yet.

Here's an example of what I am trying to do. Check out the player select-icons under each player. The arrow on the select-icon points the direction the PC is facing.

'ImageDiablo 3 Console Example[/img]

So here is what I have tried so far:

1) Apply a vfx with a model of the select-icon, using Imp_Root_M_Node in visualeffects.2da
--VFX follows player around accurately, but the facing is always north on the map

2) Apply a vfx with an emitter, again Imp_Root_M_Node, and the emitter uses Inherit and Billboard to World Z
--Exactly the same outcome

3) Apply a vfx with an emitter, again Imp_Root_M_Node, and the emitter uses Inherit and Billboard to Local Z
--Exactly the same outcome

4) Apply a vfx with an emitter, again Imp_Root_M_Node, and the emitter uses Inherit-Part and (Billboard to World Z or Local Z)
--Select-icon moves opposite PC across the map, making a weird effect which allows you to find your way back to the exact spot you spawned at

5) Apply a vfx with an emitter, again Imp_Root_M_Node, and the emitter uses Inherit-Local and Billboard to World Z
--Particle stays in place where spawned

6) Apply a vfx with an emitter, again Imp_Root_M_Node, and the emitter tosses out a chunk of the model I want
--As #1, except there is latency in the follow

I really want to find a way to force something to face with the PC. I have so many things I want to do for VFX that require that ability, like:
*effects emitted from a mask-based spell
*spectral armor overlay
*charge effects, like a rams head in front of the player as they run forward, a giant shield, a meteor form, or similar
*obviously select-icons as seen in the image
* I could go on and on

I've already exhausted the lexicon, bioware forums, and the stuff OTR packaged

Any clues? Examples? hope?
               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
Correct combination for emitters to point same direction as parent object
« Reply #1 on: December 06, 2013, 04:30:13 am »


               Did you set it to OrientWithObject? and not with ground.
               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
Correct combination for emitters to point same direction as parent object
« Reply #2 on: December 06, 2013, 01:29:42 pm »


               Thanks! Got it now. The correct combination is:

In vfx model:
billboard to local z + inherit

In visualeffects.2da:
use the last column OrientWithObject set to 1
use the third column OrientWithGround set to 0
               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
Correct combination for emitters to point same direction as parent object
« Reply #3 on: December 06, 2013, 01:35:54 pm »


               Diablo 3 Style Selectron - Basic
               
               

               


                     Modifié par MerricksDad, 06 décembre 2013 - 01:37 .
                     
                  


            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
Correct combination for emitters to point same direction as parent object
« Reply #4 on: December 06, 2013, 11:01:20 pm »


               Cool, glad you got it working '<img'> Look like something fun to play around with.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Correct combination for emitters to point same direction as parent object
« Reply #5 on: December 06, 2013, 11:29:47 pm »


               looking good