Aller au contenu

Photo

Correct combination for emitters to point same direction as parent object


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
MerricksDad

MerricksDad
  • Members
  • 1 609 messages
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.

Image IPBDiablo 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?

#2
ShadowM

ShadowM
  • Members
  • 768 messages
Did you set it to OrientWithObject? and not with ground.

#3
MerricksDad

MerricksDad
  • Members
  • 1 609 messages
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

#4
MerricksDad

MerricksDad
  • Members
  • 1 609 messages
Diablo 3 Style Selectron - Basic

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


#5
ShadowM

ShadowM
  • Members
  • 768 messages
Cool, glad you got it working :) Look like something fun to play around with.

#6
henesua

henesua
  • Members
  • 3 871 messages
looking good