ID:173397
 
For a few questions on this subject...
  • Can you create an icon at runtime by assigning rgb values (or anything similiar) at the pixel level?
  • Can you create animations ("movies") at runtime?
  • Can you save an icon created at runtime back to a (new?) DMI file?

If any of the above are possible, then my next question is...how?
CableMonkey wrote:
For a few questions on this subject...
  • Can you create an icon at runtime by assigning rgb values (or anything similiar) at the pixel level?

    Yup. Just create a new /icon datum, and use the Shift() procedure, and the Blend() procedure.
  • Can you create animations ("movies") at runtime?

  • Unfortunately, no. Though I'd like to see this in future versions.
  • Can you save an icon created at runtime back to a (new?) DMI file?

  • I actually have an article on this on BYONDscape that you might want to check out.


~>Volte
In response to Volte
<font color="#0000C0">Volte wrote:</font>
<font color="#FF0000">CableMonkey wrote:</font>

  • <font color="#FF0000">Can you create an icon at runtime by assigning rgb values (or anything similiar) at the pixel level?</font>

    <font color="#0000C0">Yup. Just create a new /icon datum, and use the Shift() procedure, and the Blend() procedure.</font>

    Excellent. :-)
  • <font color="#FF0000">Can you create animations ("movies") at runtime?</font>

    <font color="#0000C0">Unfortunately, no. Though I'd like to see this in future versions.</font>

    :-( Yeah...this would be handy.
  • <font color="#FF0000">Can you save an icon created at runtime back to a (new?) DMI file?</font>

    <font color="#0000C0">I actually have an article on this on BYONDscape that you might want to check out.</font>

    Excellent++!


I think I can use a combination of question 1 and 3 for what I need. I'll go check out that ByondScape article now.

Thanks Volte!
In response to Volte
Volte wrote:
CableMonkey wrote:
For a few questions on this subject...
  • Can you create an icon at runtime by assigning rgb values (or anything similiar) at the pixel level?
    Yup. Just create a new /icon datum, and use the Shift() procedure, and the Blend() procedure.

    In 336, icon.DrawBox() will do this for you.
  • Can you create animations ("movies") at runtime?

  • Unfortunately, no. Though I'd like to see this in future versions.

    I'm still working out the structure behind how this would work, but my goal is to provide a proc for inserting one icon into another. (The problem comes in when trying to decide whether adding something as a movement state, etc. In general DM doesn't really handle extraction of movement-specific states well, and if you do new/icon() with a state you'll simply get the first one that's defined.)

    I want on-the-fly animation/directional/multistate icon building to be doable in 337. Not necessarily perfect, but doable.
  • Can you save an icon created at runtime back to a (new?) DMI file?

  • Using ftp(), yes. It's a little tedious. I think I'd like to be able to save icons directly. I wonder what that proc/syntax would look like.

    Lummox JR
In response to Volte
Windows XP *HATES* that ftp proc. It crashes DreamSeeker about 90% of the time.
In response to CableMonkey
CableMonkey wrote:
Windows XP *HATES* that ftp proc. It crashes DreamSeeker about 90% of the time.

Interesting. I'm not sure that's something we can act on anytime soon, but that should definitely go in the bug list.

Lummox JR
In response to Lummox JR
I'll try to put something together either tonight or tomorrow night in the bugs report forum.
In response to CableMonkey
CableMonkey wrote:
I'll try to put something together either tonight or tomorrow night in the bugs report forum.

Okay. Meanwhile I've noted this in the current tracker.

Lummox JR
In response to Lummox JR
really really weird. I wrote a very small program to test the bug....now it will not crash. This will probably require a little more investigating.

[edit]

Now the program that was crashing isn't crashing. I'm going to report non-working stuff more often in hope that it will just magically fix itself more often.