Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Dynamics & Special Effects (https://simplymaya.com/forum/forumdisplay.php?f=33)
-   -   sprite orientation? (https://simplymaya.com/forum/showthread.php?t=12870)

mtmckinley 02-08-2004 04:04 PM

sprite orientation?
 
I've got a question for once. :)

Is there a way to control the orientation of sprite particles so that they are not just camera-facing?

Idealy, I'd like to be able to orient them to an axis.

Many thanks in advance. :)

kbrown 02-08-2004 10:44 PM

i believe they're always facing the cam and you can't change that. you can spin them, scale them etc though...

mtmckinley 02-08-2004 11:06 PM

yeah, I might just have to use planes and stuff

Dann 03-08-2004 12:09 AM

1 Attachment(s)
Actually, you can fake it with runtime expressions on the spriteScaleXPP and spriteTwistPP attributes. It IS a fake, but depending on what you're going for, it can work.

Try something like this.

Creation expressions:
particleShape1.spriteScaleXPP = rand(-1,1);
particleShape1.spriteScaleYPP = rand(-1,1);
particleShape1.spriteTwistPP = rand(-180,180);

Runtime expressions:
if (particleShape1.spriteScaleXPP > 1)
{
particleShape1.spriteScaleXPP = -1;
}
if (particleShape1.spriteTwistPP > 180)
{
particleShape1.spriteTwistPP = -180;
}

particleShape1.spriteScaleXPP += 0.01;
particleShape1.spriteTwistPP += 2;

Attached is a sample file to see what I mean.

I'm very excited to help Mike after all the times he's helped me. I hope it works.

mtmckinley 03-08-2004 01:07 AM

No, 'fraid that's not quite what I'm looking for. Neat affect, though. :)

I imagine I'll just need to use geometry.

Thanks guys! If anyone comes up with anything, feel free to let me know. :)

mtmckinley 03-08-2004 01:14 AM

Check out this video for an example of the kind of thing I'm going for:

http://www.mtmckinley.net/private/po..._particles.zip

For example, the waterfall and the "swish" of the character's sword.

(FYI- This is a video of some of my particle fx done for the game Fallen Kingdoms, recently announced. These were done in a custom particle editor developed in-house.)

kbrown 03-08-2004 12:07 PM

I don't know what the requirements are but could you not render the particle effects from an angle where they look alright and then take that resulted sequence and map it on a plane as a texture sequence... or something :)

tathu 07-08-2004 08:50 AM

I found a tutorial here, maybe it help:
http://zj.deathfall.com/Changing_Spr...ientation.html

------------------------
ta thu

mtmckinley 07-08-2004 02:57 PM

No, that's not quite what I'm looking for. While it does change the sprite's twist, they still remain camera-facing.

Thanks, though. :)


All times are GMT. The time now is 05:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018