Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Colors animation
PostPosted: May 15th, 2008, 3:42 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
I am doing the slideshow and I need to fill of polygon object gradually changed color in a random sequence. I write function that changes color at once, but I can not do so in the form of animation.

Maybe already have a ready solution?

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 15th, 2008, 5:55 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
If you do by method action/trigger, the color is changing rapidly. Need to the color of fill changed smoothly.


You do not have the required permissions to view the files attached to this post.

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 15th, 2008, 8:31 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
If you're looking to create a smooth transition between colour changes then you could use two polygons and fade in & out changing the colours.

Or if your looking to script this, then use transparency to create the fade effect:

1.Set colour
2. Use for loop with delay to increase the transparency to about 80%
3.Set new colour still at 80%
4. Use for Loop with delay and reduce the transparency back to 0%

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 15th, 2008, 8:34 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Several ideas... no single solution.

First, look up SetBtnColour (??) or similar commands related to Get/SetBackground. Works on Button objects and may offer a few more options than ordinary objects.

Mostly I am thinking in terms of OpusScript... more 'Advanced' than basic if you don't mind. You can find the equivalent action or animation without scripting.

If you use 2 objects, you can "Fade" one out and "Fade" the other in. Similar you can use the SetTransparency command and specify a time.... one object to 100% and the other to 0%. [Edit: change Colour of one when it is fully 'faded' or completely 'transparent'.]

Another way... 2 objects again. Show and Hide in pairs. Use "transitions"... e.g., 'dissolve', pixel effects, ... whatever. Again you have 'time' parameters. Don't overlook this possibility.

If you want to get 'crazy', maybe "Blend" (as in the Effects Tab) can be applied in similar gradual fashion -- I don't know.

Lastly, you can set up a loop... in a way to take a couple seconds. During that time, you can run a variable (number) up or down some range ~60 for a start. Now if you do that for 1 to 3 vars... you have R, G, B moving some range. You would be "setting the colour" with each pass thru the loop.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: May 16th, 2008, 6:22 am 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Thanks Mack, but you have changed the transparency of the whole object, but I need only fill.

Thanks Lar_123, you give me a lot of interesting options that I necessarily useful in creating screensaver.

I have done so: three variables (r, g, b) to randomly change their values to r=r+1 or g=g-1 etc into the loop with delay. It is very nice effect.

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 16th, 2008, 5:29 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Created the screensaver. Looks excellent. In a opus pub preview - everything works, although the CPU up to 50%.
But start of the final screensaver publication cause windows`s crash. :(
Tried to remove my colour animation - does not help.
Screensaver have 4 pages, 12 vector objects of all (30...100 kB each), several complex animations from these objects.

Do not make a beautiful screensavers in Opus?

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 16th, 2008, 7:16 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
I found the cause of the collapse of the system - setting the pages "Go this page when finished" - <random>.
Unfortunately, I can not take this good opportunity.

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: May 16th, 2008, 9:18 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Using vectors with changing RGB values, transparency, and animations is going to use too many resources. If the vector animation is using all your computers resources, then the call to a random page will send the pub to a page that doesn't exist and crash. Been there, done that.
I don't make screensavers that use more than 15% CPU.

Paul


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 79 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group