Announcement

Collapse
No announcement yet.

How to Mod Space & Multiverse With NASA images?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Mod Space & Multiverse With NASA images?

    I am a total newbie to milkdrop. I would like to replace the white dot in Rovastar's Space & Multiverse presets with some public domain images from NASA, but otherwise have the presets behave the same.

    Is that the sort of thing a newbie can do?

    Thank you!

    P.S. For some perspective on me... I am running Xubuntu. I use ProjectM for viewing presets. I am not a graphic artist, but have enough experience with bitmap and vector editing in programs like GIMP & InkScape to do the basics.
    Last edited by LambdaFox; 5 October 2015, 03:42. Reason: added poscript

  • #2
    Hi LambdaFox

    I am not an expert in image handling but can tell you how I would do it. Sample file attached.
    Note 1: Do nothing of what I'll describe with the sample preset where I've done it already !

    Note 2: You need to activate ScrollLock first to prevent milkdrop from changing the preset while you are working on it ! If there is no scroll lock on your keyboard... good luck! You may go to the milkdrop visualisation menu, configuration, and tick the box "start milkdrop with scroll lock on", or set the time between preset changes to 9999 and deactivate hard cuts (triggered by strong beats). That should do the trick.

    1. Run the preset and press M to bring up the menu.
    2. Rovastar presets are quite old and you need to update the shader version first. Do this by menu. Once you have confirmed the warning, you'll see two new menu entries, "edit warp shader" and "edit composite shader".
    3. Open Edit Comp Shader.
    4. In the first line, insert
    code:
    sampler sampler_xxx;
    where xxx stands for the desired image filename without extension. The image must be in your preset or (preferred) \textures folder. This just tells the preset to load the image but not to show it yet.

    5. After the last line, insert
    code:
    ret += tex2D (sampler_xxx,uv);
    Press Ctrl-Enter to accept changes. The changes take effect immediately unless you made a mistake.

    Explanation: In the comp shader, "ret" is the output variable which goes drectly to the screen. Very simple. We take the existing ret (by Rovastar) and add the image content by a call to the texture sampler tex2D. You may wish to manipulate ret before you do that, it is quite straightforward. For instance ret *= 0.5; will darken the content by 50%; you can likewise do this with your image. You can do all sorts of mathematical operations and do not need to bother with individual screen pixels. As by magic, the operation applies to the whole screen content. It is fun.

    6. Leave the menu and press S to save preset.

    The sample preset will show a random texture found in the folder. All you need to do is to replace rand00 by a proper filename.

    Oh, and the image will be stretched to the screen. If you need it scaled or displayed in original pixel resolution, this can be done easily but I need to look up how.

    Martin
    Attached Files

    Comment


    • #3
      Hello LambdaFox,

      now I am in this thread, after I have visited the other thread "bilder in presets einfügen":
      Posting general comments about the MilkDrop plug-in for Winamp here! If you have a bug report or troubleshooting question, a feature request, or want to share a preset you've made, please use that specific SUB-Forums instead of this one!


      And I remember post #27029 in "What are you listening to right now?":
      All music all the time. For musicians and fans and critics and engineers and audiophiles and for anyone who's ever wanted to make a loud noise by strumming, blowing or hitting something.

      Since page 676 I have tried to promote for new random textures, especially with Nature & Landscapes and without humans.

      I love the idea to "Mod Space & Multiverse With NASA images", and also I myself would love to see new "Space Presets".

      Again I realize, we could need a new thread just about random textures & desktop wallpapers and I still don't know, in which subforum it should be opened. Maybe the administrators and moderators should be PMed, so that something like "Winamp & SHOUTcast Forums > Visualizations > MilkDrop > Textures" or similar can be created...
      Sabine Klare Aka Sternenmaschinebine
      Music, Art, Lyrics, Videos
      AMBIENT... AMBIENT music forever...

      Comment

      Working...
      X