SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 02-08-2004, 04:04 PM   #1
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default 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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 02-08-2004, 10:44 PM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

i believe they're always facing the cam and you can't change that. you can spin them, scale them etc though...
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 02-08-2004, 11:06 PM   #3
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

yeah, I might just have to use planes and stuff
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 03-08-2004, 12:09 AM   #4
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Attached Files
File Type: mb particlerotatefake.mb (45.9 KB, 34 views)
Dann is offline   Reply With Quote
Old 03-08-2004, 01:07 AM   #5
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 03-08-2004, 01:14 AM   #6
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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.)
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 03-08-2004, 12:07 PM   #7
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 07-08-2004, 08:50 AM   #8
tathu
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

------------------------
ta thu
tathu is offline   Reply With Quote
Old 07-08-2004, 02:57 PM   #9
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.