Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-18-2011, 11:08 PM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
emitter stretch

Im trying to rotate a particle, then stretch it in the x axis using stretchx.

Unfortunately, no matter how I set up the script, the particles are stretched along the new specified angle, rather than X relative to the screen. The result is the same whether I set them as modifiers or attributes.
PHP Code:
    emitter.addlocalmodifier("once"00"rotation""replace"degtorad(0), degtorad(360));
    
emitter.addlocalmodifier("once"00"stretchx""add"33); 
Is it possible to do what I need?
Attached a visual aid.
Attached Thumbnails
Click image for larger version

Name:	emitter_prob.gif
Views:	157
Size:	7.9 KB
ID:	53481  
__________________

Zenkou for life
Reply With Quote
  #2  
Old 08-18-2011, 11:14 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
All adjustments made to images are always done to the original image instead of say, stacking the effects. I don't think there is a way around this.
Reply With Quote
  #3  
Old 12-23-2011, 09:59 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
update to this issue. apparently graal client v5 computes stretchx before rotation, and v6 does rotation before stretchx. So if you look at the image in the OP, the particle in v6 looks like image 2, and the particle in v5 looks like image 3.

Is it too much to ask for both? perhaps it could follow in which order the code lines are written?

__________________

Zenkou for life

Last edited by haro41; 12-23-2011 at 10:33 AM..
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT +2. The time now is 08:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.