Synfig Project Forum

Forums for Synfig Project
It is currently Sun May 19, 2013 2:20 am

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 07, 2010 11:49 am 
Offline
User avatar

Joined: Sun Aug 16, 2009 12:09 pm
Posts: 213
Location: Belgium
Hello,

I face huge performance issues while handling the attached automn_river.sifz file. Turning the working rendering quality to extremely low does not help, so I'd like to try to simplify the used formulas.

The effect I want to achieve is a background of leaves (single leaf available in leaf_mapple.sifz), with various orientations, colors and sizes... something similar to a "brush" in The Gimp or Photoshop.

To get the result automn_river.png I tried various combinations of Add and Random, leading to something that requires huge resources... any hint on achieving similar result more easily is really welcome.

My current layers tree looks like:

Code:
Rotate [Amount: -15°]
Canvas
  | Duplicate [from:1 to:25 step:0.2]  (exports Index)
  | Color Correct [Hue: Add: -20° + (2° x Index)]
  | Inline Canvas
  |  - Zoom: Random [Seed: 12706 + (1 x Index)]  [Animation Speed: 0]  [Radius: 0.6]
  |  - Origin: Composite: (X: Random [Seed:12705 + (1 x Index)] [Animation Speed: 0])  (Y: Random [Seed:12704 + (1 x Index)] [Animation Speed: 0])
  |  | Rotate [Amount: Add: 8° + (12° x Index)]
  |  | Import [leaf_mapple.sifz] [Zoom: -3.0]


I'm pretty sure my use of Randoms is at sake: changing the seed just seems wrong. I could maybe use Sine or Range... but did not succeed up to now.

Ideally I'd like to get 300+ leaves, with Color Correct Hue varying from [-20;+50], Orientation from [0°;120°], Size [0;0.5] and location seemingly random in top half of display.

Any hint would be appreciated.
Have a nice day!

Berteh.


Attachments:
File comment: current scene. too slow to be able to work with.
automn_river.sifz [1.48 KiB]
Downloaded 38 times
File comment: current rendered file
automn_river.png
automn_river.png [ 214.22 KiB | Viewed 404 times ]
File comment: single leaf
leaf_mapple.sifz [4.79 KiB]
Downloaded 33 times

_________________
- discovering, learning about and liking Synfig, open source animation software -
| feel free to browse my Synfig archive | running v0.63.05 on Ubuntu Quantal |


Last edited by berteh on Thu Apr 08, 2010 2:42 am, edited 2 times in total.
Top
 Profile  
 
PostPosted: Wed Apr 07, 2010 2:02 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4119
Location: Spain
bereth, I'll try to look for an alternative for the same effect when I have a little more time. Please bump the thread to remind me it is pending.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Wed Apr 07, 2010 4:22 pm 
Offline
Site Admin

Joined: Mon Feb 16, 2009 5:19 pm
Posts: 217
Try exporting leaf_maple.sifz as a png file, and import the png instead. Does it make a difference?


Top
 Profile  
 
PostPosted: Mon Apr 12, 2010 6:42 am 
Offline
User avatar

Joined: Sun Aug 16, 2009 12:09 pm
Posts: 213
Location: Belgium
nikitakit wrote:
Try exporting leaf_maple.sifz as a png file, and import the png instead. Does it make a difference?


Yes it makes a huge difference in performance, both for editing and rendering. I can use the same layer + formulas tree as above with a repeated png leaf and repeat it from 1 to 25 (step 0.1), i.e. ~250 leaves. So thanks for the fix.

Nevertheless this hinders the quality of the final rendering (as png is no vector format), because I apply a zoom effect on each repeated element (leaf)... so any other idea is still welcome!

thanks,
Berteh.


2 examples "made with Synfig" attached, for illustration. next improvement needed: random the Z index to mix the leaves of different colors in height... but I definitely don't want to add one more random... for performance issue. any suggestion?


Attachments:
automn_river__2_2000_c.png
automn_river__2_2000_c.png [ 1.28 MiB | Viewed 400 times ]
automn_river__png.png
automn_river__png.png [ 362.58 KiB | Viewed 402 times ]

_________________
- discovering, learning about and liking Synfig, open source animation software -
| feel free to browse my Synfig archive | running v0.63.05 on Ubuntu Quantal |
Top
 Profile  
 
PostPosted: Wed Apr 21, 2010 2:09 am 
Offline
User avatar

Joined: Fri Aug 07, 2009 12:01 am
Posts: 121
Location: Cairns Australia
I'm always running into performance issues, the way I work around it is to make two versions of each layer, one with details for rendering and one with only outlines and regions for animating (simple colours, no blurs or anything) (and make sure everything is linked). Then you need to switch the detailed version on and the plain version off when you're ready to render. And it helps to render it from the command line

Pre-rendering a png file makes things quicker, and if you make it large enough it looks okay in the render - or you can turn the raster version off and vector version on at render time

Hopefully we'll get this opengl version someday and it will run a lot faster


Attachments:
leaf_mapple.sifz [4.91 KiB]
Downloaded 34 times
Top
 Profile  
 
PostPosted: Wed Apr 21, 2010 9:06 am 
Offline
User avatar

Joined: Sun Aug 16, 2009 12:09 pm
Posts: 213
Location: Belgium
saorsa wrote:
make two versions of each layer, one with details for rendering and one with only outlines and regions for animating (simple colours, no blurs or anything) (and make sure everything is linked).


Didn't thought about using links in this way. nice tip, thanks.
B.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group