About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
particles
Author Message
dylantan Offline
Member

Post: #1
particles
Hello everyone

We are in need of advice. Is there way to support the setting only part of the mesh as the particle source instead the whole mesh? For example only in the blade of a sword has the particle but not the whole sword. See the attached example. Any tip and advice would be greatly appreciated. Thanks in advance


Attached File(s) Image(s)
   
(This post was last modified: 02-14-2012 01:29 PM by dylantan.)
02-14-2012 05:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dylantan Offline
Member

Post: #2
RE: particles
Finally we got it working!!

We separated the sword into selected parts, then find generated box shape out of it through Item.getBox() function. We used that box shape as the source of particles and then updated the matrix of the particles same as the weapon.

(02-15-2012 05:09 AM)aceio76 Wrote:  I think what makes this difficult to answer is that there are a few ways to tackle this.

One way is to code a few "attachment" options on the chr object so you can give any weapon or handheld item any combination of particles that are assigned to that attachment point.

Just to show this possibility, you can utilize something like below to attach particles to a specific attachment bone:

Code:
if(C OrientP *point=cskel.findPoint(Str8(objparticles.bonepoint)))
               objparticles.update(Matrix().setPosDir(point->pos, point->cross(), point->dir), false);
The bonepoint is something you place as part of your chr obj skeleton that would appear to be where a held item could be.

Thanks for the idea. Appreciate it very much aceio76!
(This post was last modified: 02-15-2012 01:12 PM by dylantan.)
02-15-2012 01:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply