Jump to content


Photo

Useful mscope hacks (create a futuristic desk)


  • Please log in to reply
No replies to this topic

#1 skratchmasta

skratchmasta

    Master Director

  • Mods
  • 274 posts

Posted 08 April 2011 - 10:15 AM

This is less of a mod and more of a little hack but nevertheless it fits in this category. I made this as an Idea for a school teacher who was interested in the notion of ready made movies predicting futuristic jobs. A few of you were interested in how to make it so heres the instructions. Its useful as it can be applied to many things.



First of all. You need the image you are going to use. The one here is a PNG with transparency. I just copy and pasted some jargon code and some random equations onto a transparent bg in Photoshop,. Gave it an outer glow and changed the colour. Then start a movie and add a prim_backdrop. I have used the curved one but the trick will work with any. In your movie, apply your finished image onto the backdrop. Then save your movie.
Its then simply a matter of hacking the code a bit to convert the texture to a UV animation and adding a flag for the alpha (transparency).
1. Head over to your user movies folder, find the movie and open up the mscope file in a text editor. (I use editpad) (you must already have the movie with the backdrop in and the image attached)
2. Search for 'prim'. you are looking for the point in the code here.
CODE
[Fig.1]
               <Prop>
                <template name="Primitives/Prim_BackDropPan_01">
                  <materials>
                    <material>
                      <shininess>36.0</shininess>
                      <maps>
                        <entry>
                          <string>diffuseMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                        </entry>
                      </maps>
                    </material>
                  </materials>
                </template>
                <scale>1.0</scale>
                <transform>-4.371139E-8 1.0 0.0 25.598007 -1.0 -4.371139E-8 0.0 23.650671 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0</transform>
                <hidden>false</hidden>
                <name>Prim_BackDropPan_01</name>
                <importance>0.0</importance>
                <children class="linked-list"/>
                <parent class="floor" reference="../../.."/>
                <properties/>
              </Prop>

3. First of all we will add the transparency. Look where I have made spaces between the lines [fig.2]. Add this flag in the materials section like so.

CODE
[fig.2]
               <Prop>
                <template name="Primitives/Prim_BackDropPan_01">
                  <materials>
                    <material>
                      <shininess>36.0</shininess>
                      <maps>
                        <entry>
                          <string>diffuseMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                        </entry>
                      </maps>

                      <flags>
                        <string>ALPHA_BLEND</string>        <<<ADD THIS FLAG.
                      </flags>

                    </material>
                  </materials>
                </template>
                <scale>1.0</scale>
                <transform>-4.371139E-8 1.0 0.0 25.598007 -1.0 -4.371139E-8 0.0 23.650671 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0</transform>
                <hidden>false</hidden>
                <name>Prim_BackDropPan_01</name>
                <importance>0.0</importance>
                <children class="linked-list"/>
                <parent class="floor" reference="../../.."/>
                <properties/>
              </Prop>

4. Then I made the texture emmisive. So its unaffected by light and is much brighter. This is a great trick for screens as it gives it a nice screenlike glow. When you add the colour values (a) make sure that the emissive colours are set to 1.0.
CODE
[fig.3]
               <Prop>
                <template name="Primitives/Prim_BackDropPan_01">
                  <materials>
                    <material>

                      <ambientColor>1.0 1.0 1.0 1.0</ambientColor>
                      <emissiveColor>1.0 1.0 1.0 1.0</emissiveColor> <<<a.ADD THIS
                      <specularColor>1.0 1.0 1.0 1.0</specularColor>

                      <shininess>36.0</shininess>
                      <maps>

                        <entry>                                    <<<b. AND THIS
                          <string>emissiveMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                       </entry>

                        <entry>
                          <string>diffuseMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                        </entry>
                      </maps>
                      <flags>
                        <string>ALPHA_BLEND</string>
                      </flags>
                    </material>
                  </materials>
                </template>
                <scale>1.0</scale>
                <transform>-4.371139E-8 1.0 0.0 25.598007 -1.0 -4.371139E-8 0.0 23.650671 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0</transform>
                <hidden>false</hidden>
                <name>Prim_BackDropPan_01</name>
                <importance>0.0</importance>
                <children class="linked-list"/>
                <parent class="floor" reference="../../.."/>
                <properties/>
              </Prop>

5. finally you want to make the texture a UV animation by adding these lines.
CODE
[fig.4]
              <Prop>
                <template name="Primitives/Prim_BackDropPan_01">
                  <materials>
                    <material>
                      <ambientColor>1.0 1.0 1.0 1.0</ambientColor>
                      <emissiveColor>1.0 1.0 1.0 1.0</emissiveColor>
                      <specularColor>1.0 1.0 1.0 1.0</specularColor>
                      <shininess>36.0</shininess>
                      <maps>
                        <entry>
                          <string>emissiveMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                        </entry>
                        <entry>
                          <string>diffuseMap</string>
                          <string>Images/Futuristic Computer screen.png</string>
                        </entry>
                      </maps>
                      <flags>
                        <string>ALPHA_BLEND</string>
                      </flags>


                      <parameters>
                        <entry>
                          <string>Linear uv animator period</string>
                          <float>8.0</float>
                        </entry>
                        <entry>
                          <string>Linear uv animator horiz</string>
                          <boolean>false</boolean>
                        </entry>
                        <entry>
                          <string>uvAnimator</string>
                          <string>fuze3d.shaders.uvAnimator.LinearUVAnimator</string>  
ADD THIS SECTION>>>        </entry>
                        <entry>
                          <string>useTextureMatrix</string>
                          <boolean>true</boolean>
                        </entry>
                      </parameters>


                    </material>
                  </materials>
                </template>
                <scale>0.28840312</scale>
                <transform>-0.9972154 -0.07457262 0.0 0.0027447045 0.07457262 -0.9972154 0.0 -0.5972786 0.0 0.0 1.0 0.7413058 0.0 0.0 0.0 1.0</transform>
                <hidden>false</hidden>
                <name>Prim_BackDropPan_01</name>
                <importance>0.0</importance>
                <children class="linked-list"/>
                <parent class="Prop" reference="../../.."/>
                <properties/>
              </Prop>

Notice the line that says <float>. This line specifies the speed of the scrolling. 1.0 being fast and 9.0 being slow. Add a negative number to it, to scroll in the opposite direction e.g -5.0. If your using this trick to create something like a scrolling bg then this is useful to know.
On the next string down you can see <string>Linear uv animator horiz</string>. This determines scrolling vertically or horizontally by changing the <boolean> to true for horizontal or false for vertical. Also useful for creating different styles.
Remember if your copy and pasting it from this thread make sure you remove the bit that says <<ADD THIS. If your interested in using it then I would recommend making a .txt file with all the added sections in so you can simply copy paste whenever you need it.
Once you have added all of it, make sure you save the mscope file then reload the movie. It should now be emissive, have transparency and a UV animation. I hope these instructions are straight forward enough. Please post if you have any queries or problems.

If anyone uses these tricks to create something different then by all means post it up here I'd love to see it how many different things could be created. Thanks

Regards,
Alex
Alex Gowland
Moviestorm Ltd.


  • Please log in to reply


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users