Skip to main content

Randomly Fading + Scaling + Moving a fixed_image

4 replies [Last post]
laytonc
Offline
Joined: 2009-10-23
Points: 0

I'm getting the hang of working with show files but I'm curious what the best way to approach this.

I have a fixed_image where I need to select randomly at different intervals from a set of alpha values (5), a set of scales (6), and a set of position offsets (7).

I started with scale and created 5 images with 5 different scaling models and put them into an assembly. I wrote a small java function to randomly activate a random part from the scaling_model end_commands.

That works fine but I'm at a loss how to I could do fading and translating now. I could probably create 5*6*7 features but even then I would be limited to changing them all at the same time I changed the scale which won't work, they need to change at different intervals.

Will I be forced to move everything to Java and do my own interpolation?

Message was edited by: laytonc

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Richard Ross

You could make 5 fades each using that assembly. You can then put
these fades in another assembly.

Richard.

On Oct 23, 2009, at 11:53 AM, bd-j-dev@mobileandembedded.org wrote:

> I'm getting the hang of working with show files but I'm curious what
> the best way to approach this.
>
> I have a fixed_image where I need to select randomly at different
> intervals from a set of alpha values, a set of scales, and a set of
> offsets.
>
> I started with scale and created 5 images with 5 different scaling
> models and put them into an assembly. I wrote a small java function
> to randomly activate a random part from the scaling_model
> end_commands.
>
> That works fine but I'm at a loss how to I could do fading now. I
> could probably create 5*5 fade features but even then I would be
> limited to changing the fade only at the same time I change the
> scaling_model.
>
> Will I be forced to move everything to Java and do my own
> interpolation?
> [Message sent by forum member 'laytonc' (clayton@vvisions.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=369142
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

laytonc
Offline
Joined: 2009-10-23
Points: 0

Thanks for the quick response. I'm not sure I understood you correctly but I don't seem to be able to reference an assembly with a fade.

http://codepad.org/SRiUwO2k

Richard Ross

As far as I understand an assembly is a feature just like any other
feature. You should be able to fade it (or translate it or whatever).

Richard.

On Oct 23, 2009, at 12:08 PM, bd-j-dev@mobileandembedded.org wrote:

> Thanks for the quick response. I'm not sure I understood you
> correctly but I don't seem to be able to reference an assembly with
> a fade.
>
> http://codepad.org/SRiUwO2k
> [Message sent by forum member 'laytonc' (clayton@vvisions.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=369148
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

laytonc
Offline
Joined: 2009-10-23
Points: 0

Ah! My initial try didn't work because I was creating some cyclical references. I did a little reorganization and that works perfectly. Thanks!