<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stragalet on Medium]]></title>
        <description><![CDATA[Stories by Stragalet on Medium]]></description>
        <link>https://medium.com/@stragalet?source=rss-f4294c6b82bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*97IWo3prGbRj2G47Wt9sqg.jpeg</url>
            <title>Stories by Stragalet on Medium</title>
            <link>https://medium.com/@stragalet?source=rss-f4294c6b82bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:04:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stragalet/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[EXR 1.0 vs 2.0 for VFX]]></title>
            <link>https://medium.com/@stragalet/exr-1-0-vs-2-0-c438ce1efaf4?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c438ce1efaf4</guid>
            <category><![CDATA[exr]]></category>
            <category><![CDATA[file-format]]></category>
            <category><![CDATA[compositing]]></category>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[cgi]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Sun, 01 Sep 2024 09:40:36 GMT</pubDate>
            <atom:updated>2024-09-22T04:39:12.288Z</atom:updated>
            <content:encoded><![CDATA[<p>There is two variations of this standard, what are the diferences.</p><p>What should I use?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*5wf5C0FPGOp39jbZhbaF-w.png" /><figcaption>random EXR files</figcaption></figure><p>Not everyone is aware that there are two kind of EXR files,<br><strong>EXR 1.0 (multilayer)</strong> and <strong>EXR 2.0 (multipart)</strong> with some critical diferences, specially when used for compositing.</p><p>“This is a memo for myself, and I thought to share my findings, feel free to comment if you think different or believe I’m wrong.”</p><p>If you are using it for something else, or just the RGB pass this might not be as interesting read but if you are into “comping” then you might find something useful here.</p><p>I use <strong>Fusion/Ressolve</strong> (Black Magic) so this will explain how it affects to that precise comp software, Nuke, or After Effects might be slightly different.</p><h3>EXR 1.0 Multilayer</h3><p>It is a well known and almost every software uses it.<br>It can store many render elements in one file which makes it great for file managment.<br>It can also store Cryptomattes which are very convenient to use in comp.<br>It has ZIP compression.</p><h3>EXR 2.0 Multipart</h3><p>Some softwares use it, but not entirely integrated.<br>Similar to EXR 1.0 it also can store many render elements, but instead of loading all the file every time an element is needed it just loads the requested element.<br>It can also store Cryptomattes but some softwares won’t be able to access it.<br>It allows DWA compression.</p><h3>So… how they compare on a real case?</h3><p>Specifically in Fusion software, the main difference will be file weight, and loading times, and later the compatibility of some functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*gunLp70Z-AIBLYZ6-CQiRg.png" /><figcaption>This is the capture from Fusion console speed for each loader.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-36U-bXdCJGAwccF6uABeA.png" /><figcaption>And here a chart I created.</figcaption></figure><p>I tested with the same image of a car full of render elements and I exported it from VRay with different EXR settings, the results are quite clear.</p><p>EXR 1.0 is way slower loading, it only becomes fast if no compression is used but then the file weight increases 10 times so I always use Zip compression.</p><p>EXR 2.0 Was way faster loading, like x100 times in some cases compared to EXR 1.0 ZIP. But Fusion doesn’t allow for Cryptomattes yet with EXR 2.0 file format.</p><p>DWA compression is a lossy compression, but actually very good one, I would use it to get something from the CG render and then I wouldn’t use it for deliver, but from the CG render things will change anyways so a bit of loose there is not a drama. Still would be better if you don’t compress with loosy but if you need to isn’t as bad as it seems.</p><p>DWAA and DWAB are just how it compresses, A uses 32x32 squares to compress, while B uses 256x256, that generally means that for more homogeneous renders B would be “cheaper” while A is better suited for noisy images.</p><h3>Conclusion so far.</h3><p>It is really a hard pick, because Cryptomattes are very very useful.<br>Also some people might export all the elements separated then EXR1.0 is not so much of a problem.<br>Also you could manage comp sloppyness using more precomps and other workarounds.</p><p>I would tend to.. If you work with super large formats and heavy comps, then EXR 2.0 with DWAA compression, and use the old good multimattes.</p><p>But if it is a very complicated comp or isn’t as big format, then 1.0 with cryptomatte seems the best choice.</p><p>Also consider if you can export render elements separated, then 1.0 seems like a good enough option.</p><p>Hopefully in the future we can get better EXR 2.0 support from Fusion.<br>I heard also that WSL forums are developing some tech about that.</p><h3>Vray update! (text updated on 2024/09/03)</h3><p>Vray added the option to save Cryptomattes separately, what does mean?<br>Well now you can save the main output as EXR 2.0 for speed, and automatically Vray will export the cryptomattes in a different file but in EXR 1.0 format.<br>That way you can use both worlds in comp!! yay!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VAS01asFff4i7plqezO6sw.png" /></figure><p>Beware though that the first implementation of this function has a bug, and it is better you donwnload the latest build, because the chose a very strange naming convention that makes the compositing software unable to load the sequence as such. “NameOfFile.0000.cryptomatte.exr”<br>But is fixed in a nightly build.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c438ce1efaf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MaxScript Toolbar(beginner) 3]]></title>
            <link>https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-3-random-colors-f56d841465b2?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f56d841465b2</guid>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Tue, 16 Apr 2024 05:22:39 GMT</pubDate>
            <atom:updated>2024-09-22T04:46:10.173Z</atom:updated>
            <content:encoded><![CDATA[<p>In this third part you will learn to create some random color for your selected objects.</p><h3>Introduction:</h3><p>We will add a new button to the toolbart that create random colors for each selected object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*x4hd6YW2iwo3T20VakzNdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*dQqr1LnESKzTBp24E7qvDQ.gif" /></figure><p>We come from the part two, althought I will give you the standalone code for the random colors too so you can apply anywhere.</p><p>This is the code for the previous toolbar from part2.<br>I modified slightly the sizes so it is smaller.<br>I just changet the two buttons sizes and also the rollout main size. (width and height, at the bottom of the script)</p><pre>--try to destroy the rollout dialog if exists<br>try (destroydialog myToolbar) catch() <br><br>-- we define the CopyPaste directory by getting the Autoback forlder as string<br>theCopyPasteDir = getdir #autoback<br> <br>-- we define the name of the file<br>theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br> <br>-- we build the full string, the filename and the name of the file<br>theCopyPasteString = theCopyPasteDir + theCopyPasteFile<br><br>-- Function declaration<br>-- the copy function<br>fn myCopy = <br>(<br>if selection.count &gt; 0 then(<br>  -- we save the selected nodes in the file string we defined earlier.<br>  saveNodes $ theCopyPasteString<br>  <br>  -- we print the string in the listener to check the path.<br>  print theCopyPasteString<br>  <br>  --we display a promt message in the bottom.<br>  displayTempPrompt &quot;Copy Completed&quot; 6000<br> )<br> else(<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)<br><br>--the paste function<br>fn myPaste = <br>(<br> print theCopyPasteString<br> mergemaxfile (theCopyPasteString) #select<br> displayTempPrompt &quot;Paste Complete&quot; 6000<br>)<br><br>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:80 height:160 <br>(<br> -- define the button type and looks<br> button btn_myCopy &quot;Copy&quot;  width:60 height:30 tooltip:&quot;Copy&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:60 height:30 tooltip:&quot;Paste&quot; border:true align:#center<br> <br> -- define what the button does when it is pressed.<br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br>)<br><br>--creates the rollout<br>createdialog myToolbar</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*bKZGfWrNbci3d335oNG79Q.png" /><figcaption>Now it should be much more cute.</figcaption></figure><p>Before adding buttons and such, lets create the function we need.</p><h3>Create the function for the random colors.</h3><p>Planning the function</p><p>Basically what we want is that for selected objects 3dsmax applies a different random color.<br>We could complicate that a bit later checking if the object are instances or not and applying only different color if the objects are not instances.</p><pre>  -- cycle all selected objects, each time generates a random color (from 0 to 1) and assigns it.<br>  for obj in selection do( <br>  col = point4 (random 0 1) (random 0 1) (random 0 1) 1<br>  obj.wirecolor=col<br>  )<br>  redrawviews() -- will force a view redraw to update the colors on the viewport.</pre><p>all done… that will cycle all the objects and apply that random color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKFawq41jIdoxOa4_dW6ew.png" /><figcaption>not very nice….</figcaption></figure><p>We use Point4 ( can store 4 values for the color ) Red Green Blue Alpha.<br>Although the Alpha needs to be 1 in this case. There is other ways to define colors but with the new OCIO workflows this is best.</p><h3>Tweak the function so we get nice colors.</h3><p>There is a little issue… the colors might be too random, we could get 1,1,1 for white, and 0,0,0 for black way too contrasty…<br>Maybe we wanna tweak those randoms so we get nicer colors.<br>Instead of setting a random number from 0 to 1 we can limit that range so we don’t get extremes.</p><pre>-- cycle all selected objects, each time generates a random color (wide random version) and assigns it.<br>  for obj in selection do( <br>  col = point4 (random 0.2 0.8) (random 0.2 0.8) (random 0.2 0.8) 1<br>  obj.wirecolor=col<br>  )<br>  redrawviews() -- will force a view redraw to update the colors on the viewport.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*HJcTQYGUuL3gKOxbp3aaUA.png" /><figcaption>that is better</figcaption></figure><p>But we maybe wanna have a much more stylish version also for our presentations… way more VaporWave for instance.</p><p>We can limit that more then.</p><pre>-- cycle all selected objects, each time generates a random color (cute version) and assigns it.<br>  for obj in selection do( <br>  col = point4 (random 0.2 0.7) (random 0.4 0.6) (random 0.6 0.9) 1<br>  obj.wirecolor=col<br>  )<br>  redrawviews() -- will force a view redraw to update the colors on the viewport.</pre><p>This way we limit more some channel than other and we get maybe a less usefull randomness but way more cute. :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gc4d00wcIY95ZxW424mFFA.png" /></figure><h3>Add that function to the toolbar.</h3><p>We can add actually two buttons one for a more usefull random color and the other one for the cute version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnshhgLlgUD2BR6G448ogQ.png" /></figure><p>First we will create two functions, ( there is more advanced ways to do this in 1 function, but lets go with the easiest for now ).<br>Like in the reference posted one for the random the other for the random cute.</p><p>And later we create two more buttons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqbn60LjaQQu9PCAQAijOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*sTsUMmKyHbv95GYTknQv8w.png" /></figure><p>Done! There you have it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*dQqr1LnESKzTBp24E7qvDQ.gif" /></figure><p>And here is the code for you, ready to use :)<br>This starts to look like a useful toolbar little by litte.</p><pre>--try to destroy the rollout dialog if exists<br>try (destroydialog myToolbar) catch() <br><br>-- we define the CopyPaste directory by getting the Autoback forlder as string<br>theCopyPasteDir = getdir #autoback<br> <br>-- we define the name of the file<br>theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br> <br>-- we build the full string, the filename and the name of the file<br>theCopyPasteString = theCopyPasteDir + theCopyPasteFile<br><br>-- Function declaration<br>-- the copy function<br>fn myCopy = <br>(<br>if selection.count &gt; 0 then(<br>  -- we save the selected nodes in the file string we defined earlier.<br>  saveNodes $ theCopyPasteString<br>  <br>  -- we print the string in the listener to check the path.<br>  print theCopyPasteString<br>  <br>  --we display a promt message in the bottom.<br>  displayTempPrompt &quot;Copy Completed&quot; 6000<br> )<br> else(<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)<br><br>--the paste function<br>fn myPaste = <br>(<br> print theCopyPasteString<br> mergemaxfile (theCopyPasteString) #select<br> displayTempPrompt &quot;Paste Complete&quot; 6000<br>)<br><br>fn myRandomColor =<br>(<br>  -- cycle all selected objects, each time generates a random color (wide random version) and assigns it.<br>  for obj in selection do( <br>  col = point4 (random 0.2 0.8) (random 0.2 0.8) (random 0.2 0.8) 1<br>  obj.wirecolor=col<br>  )<br>  redrawviews() -- will force a view redraw to update the colors on the viewport.<br>)<br><br>fn myRandomColorCute =<br>(<br>  -- cycle all selected objects, each time generates a random color (cute version) and assigns it.<br>  for obj in selection do( <br>  col = point4 (random 0.2 0.7) (random 0.4 0.6) (random 0.6 0.9) 1<br>  obj.wirecolor=col<br>  )<br>  redrawviews() -- will force a view redraw to update the colors on the viewport.<br>)<br><br><br>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:80 height:160 <br>(<br> -- define the button type and looks<br> button btn_myCopy &quot;Copy&quot;  width:60 height:30 tooltip:&quot;Copy&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:60 height:30 tooltip:&quot;Paste&quot; border:true align:#center<br> button btn_myRandomColor &quot;RnD color&quot;  width:60 height:30 tooltip:&quot;Random Color&quot; border:true align:#center<br> button btn_myRandomColorCute &quot;RnD cute&quot;  width:60 height:30 tooltip:&quot;Random Color Cute&quot; border:true align:#center<br> <br> -- define what the button does when it is pressed.<br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br> on btn_myRandomColor pressed do myRandomColor ()<br> on btn_myRandomColorCute pressed do myRandomColorCute ()<br>)<br><br>--creates the rollout<br>createdialog myToolbar</pre><p>See you in the next One!</p><p>Links to part 1 and part 2:</p><p><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-1-d2c5f55fd576"><strong>part 1</strong></a><strong><br></strong><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-2-4cc06e87f935"><strong>part 2</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f56d841465b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Max-Script Toolbar (beginner-level) Part 2]]></title>
            <link>https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-2-4cc06e87f935?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cc06e87f935</guid>
            <category><![CDATA[toolbar]]></category>
            <category><![CDATA[3ds-max]]></category>
            <category><![CDATA[3ds-max-script]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 14:48:18 GMT</pubDate>
            <atom:updated>2024-09-22T04:38:27.800Z</atom:updated>
            <content:encoded><![CDATA[<h3>MaxScript Toolbar(beginner) 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*AlImbPa8txqCHtib0yjV6A.png" /></figure><p>In this second part I will show you how I make my own toolbars, and a a copy paste script that I find very usefull.</p><p>I will go slowly so feel free to jump if something feels too obvious.<br>At the end I posted in text format the code so you can use it from today!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJ4PvMJFOpVNJ_Pf5-09Dw.gif" /><figcaption>Spoiler: copy paste tool between max sesions!</figcaption></figure><h3>First Rollout</h3><p>Lets create a little floating window with a button that does something.<br>Open a New Script window, this time the code we write will be persistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KokFm4pPmWQHGCLKPF-8Ug.png" /></figure><pre>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br>)<br><br>--creates the rollout<br>createdialog myToolbar </pre><p>And now we will write the code above, and execute ( control+e )<br>It should display something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*mdYVXMzmhEnlyX6MsSsMug.png" /><figcaption>my new Rollout toolbar has born!</figcaption></figure><p>Now you can close the rollout “myToolbar”. I will explain a bit what all this does but first, Save the script!! save it anywhere for now, I will call it MyToolbar_001.ms</p><h4>The rollout code:</h4><p>Seems quite straight forward but lets go over it step by step.</p><pre>createdialog myToolbar</pre><p>With this we call for the creation of a dialog, in this case a rollout dialog, named “myToolbar”<br>The name can change of course, but it should be consistant in the other parts of the code.</p><p>But if we just write that nothing will be created so, we have to define what needs to be created, and that, we add on top. ( Could be added on the bottom too, but it is best practice to add it to the top )</p><pre>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br>)</pre><p>So there it is, we defined the rollout “myToolbar” here the name has to be exactly the same as the one in the create dialog, and the text to the right is just the title of the rollout, so you can writte anything there, even with spaces is fine. After that, width and height of the rollout in pixels.<br>and then ( ) inside those we can write some stuff and will pop up in our rollout.<br>But first… exectute the code and move “myToolbar” into a bit of the side of the screen, and execute the code again…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8RSZTRhlfoT6DL8RIOhx4Q.png" /></figure><p>Yes, now we have two Rollout toolbars… <br>So we need a small line to say it should destroy “myToolbar” if it previously exists.</p><pre>try (destroydialog myToolbar) catch() </pre><p>The line would be that, and we put it at the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*NbCiyBuFJfhPHv0VKVqt8Q.png" /></figure><p>Now it looks like this.<br>Try to exectute the code several times now and you will see how the previous toolbar disapear before creating the new one! easy!</p><p>This line of code is a bit peculiar, usually in programing, if you make the software to do something but it cannot be done because it doesn’t exist in the first place it would give an error, Maxscript has this cool code that is “try” “catch” that it will try to do it but it won’t crash if it didn’t find anything.</p><pre>try <br>(<br> destroydialog myToolbar<br>) <br>catch<br>(<br>) </pre><p>This is exactly the same line but just in a more “traditional” way of formating, … because is so simple we just write it in a “one-liner” so we can save some precious space ( and possibly some bits too :D )</p><h3>First Button</h3><p>Lets add a button to this rollout.</p><pre>button DoSomething &quot;Do Something&quot;</pre><p>There you go, you know already where this line needs to go right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*6um-cwuKSLvR6WEQxg0Tbw.png" /><figcaption>exactly, between the ( ) of the rollout… I’m adding comments everywhere by the way.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*U63S06hPJTkFyAIn88bdmA.png" /><figcaption>yey!</figcaption></figure><p>We can define more things for this button, like, tooltip, width, height, border, alignment… this is actually true for almost every object in maxscript, so you better check the documentation and see what options those objects have or you can check some other people scripts to learn from. I’ll do that all the time.</p><pre>button DoSomething &quot;Do Something&quot; width:180 height:30 tooltip:&quot;a button that does something&quot; border:true align:#center</pre><p>here is a bunch of propierties for that button!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGrxjrnRowS2mYda3LUoWw.png" /><figcaption>has a nice tooltip!</figcaption></figure><p>But this button does nothing yet, so to fix that we will define what the button will do in another line under the button definition.</p><pre> on DoSomething pressed do messageBox &quot;hello world&quot;</pre><p>You already know from the previous lesson what “messageBox” does, it will open a popup with the text defined after.<br>The rest of the syntax seems quite straight forward again…<br>On “DoSomething” this needs to match precisely the name of the button, do something…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DyXuyxeQDm46BcariMQYdA.png" /><figcaption>voilà!</figcaption></figure><h3>First Function</h3><p>So Now we are writting what the button does directly after the “do” but if the action was quite long that wouldn’t be practical at all, so instead of that I tend to separate the the actions from the UI itself so everything is better ordered and actually later on you can call those “actions” for several things.</p><p>First we will just copy the messageBox thing in a Function so you see how it works.</p><p>A function is like a room where to put things, and the room number is the text after “fn” in this case “myCopy”, by the way… fn is for function.</p><p>btw, use my function name for this time, “myCopy” we will use that later.</p><pre>fn myCopy = <br>(<br> messageBox &quot;hello world&quot;<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4KwuhoNA6W7a3vRUhMywA.png" /></figure><p>There, after the Try Catch, but, that is not right, because we didn’t tell the button where it needs to go after pressed… now it also contains the messageBox text, so, we will remove that, and add the “room number” to the function we just created, so the function name.</p><pre>on DoSomething pressed do myCopy ()</pre><p>Now the button action definition will look like that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9j_mk09wfzqwlmyU78ubRQ.png" /></figure><p>Execture aaaand, it does the same as before, but trust me now is much more clean, and much more powerful!</p><p>Lets put that “something” in a function and call it back.</p><h3>Add another Button</h3><p>Ok so we got a button working with a function call! yay!<br>now lets duplicate some lines and change some texts and we will have 2 buttons!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lZHWda1ITV2sGJSuzL7x0w.png" /></figure><p>3 things you need to duplicate, <br>The function entirely, the button, and the On Pressed, part.</p><p>On top of that I will change some text so matches with the Copy / Paste functions we are building… be carefull because the Buttons and the On Pressed Need to match!</p><p>Also I changed the message box text to “copy” and “Paste”</p><pre>--try to destroy the rollout dialog if exists<br>try (destroydialog myToolbar) catch() <br><br>-- Function declaration<br>fn myCopy = <br>(<br> messageBox &quot;Copy&quot;<br>)<br>fn myPaste = <br>(<br> messageBox &quot;Paste&quot;<br>)<br><br><br>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br> -- define the button type and looks<br> button btn_myCopy &quot;Copy&quot;  width:180 height:30 tooltip:&quot;a button that does something&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:180 height:30 tooltip:&quot;a button that does something&quot; border:true align:#center<br> <br> -- define what the button does when it is pressed.<br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br> <br>)<br><br>--creates the rollout<br>createdialog myToolbar </pre><p>Here is the code just in case you have some trouble with some spelling, spacing and such… you can always check the Listener to check for errors there, but programming can be tricky with the syntax sometimes, specially when you are not yet used to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*zLPJRUJ7sNQNcO2RHIVv_g.png" /></figure><p>This starts to look like something useful!</p><h4>Things to care:</h4><p>Two buttons cannot have the same name.</p><h3>First super usefull script that will change your life!</h3><p>Lets create some usefull script now…</p><p>The what? already? <br>Yes I promise this little script will change your workflow it is just so usefull and I can’t live without it anymore so I want you to have it too.</p><h4>What is this script about?</h4><p>Well the script is a copy paste between Max sessions, so you can move objects from one Max to another. It is super convenient to clean up models in a file and then move it to another, or just to test things in another Max.<br>We exploit the “merge” function for that… and you will see that the script is quite straight forward.</p><h4>The Copy!</h4><p>Because we already have the buttons, lets focus on the copy function:</p><p>What we will do here is, with the selected object, save selected into a Temporary file located in the 3dsMax Autoback directory.<br>For that we will use the “if” “then” commands among other things but it should be fairly simple.</p><p>I will break it in 3 easy “scripting steps”</p><ul><li>check that there is actually a selection made.</li><li>search for the “autoback” folder in Max and define the filename.</li><li>and we will save selection in that file.</li></ul><h4>Check that there are objects selected:</h4><pre><br>fn myCopy = <br>(<br> if selection.count &gt; 0 then<br> (<br>  displayTempPrompt &quot;There are objects selected&quot; 1000<br> )<br> else<br> (<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)</pre><p>First we will check if the “selection” of objects is valid, if not if it is it will display “there are objects selected” otherwise “ ther are no objects selected”<br>we check that by checking if selection.count is greater than 0, if so display one text, if it is not ( else ) then display another text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9nGyt9eRVlCg4HXcj3TjXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*Najk9UvOJWS3hm8K4_nHdw.png" /></figure><p>You will see the answer in the bottom of 3dsmax with this method.<br>1000 is just the miliseconds that text will stay there…. 0 means it will stay there until another message comes out.</p><h4>Search for the “autoback” folder in Max and Define the file name.</h4><p>Now we will add some the line… first we need to define the variable.<br>A variable is an empty “box” you can fill with stuff, sometimes it know what type of info is inside some times we need to define ourselves what goes inside.</p><pre> theCopyPasteDir = getdir #autoback<br> theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br> theCopyPasteString = theCopyPasteDir + theCopyPasteFile</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_Scob_PqmyOJTUuoRcVQQ.png" /></figure><p>We will add that before the functions, because both myCopy and myPaste will use that information so it needs to get defined first.</p><p>The code itself is quite simple again.<br>there are 3 variables, <strong>theCopyPasteDir </strong>,<strong>theCopyPasteFil</strong>e and <strong>theCopyPasteString.</strong></p><p>So for the <strong>theCopyPasteDir </strong>we use a function called getdir that will get us the location of the folder where Autoback is.<br>For theCopyPasteFile we just type directly what is the name of the file we want, you can type any.<br>And then we put them toguether in another variable…</p><p>We will store different “strings of text” inside, Max automatically detects they are strings so we don’t need to add “as string” at the end, but is generally a good practice to know what type of variable are you storing ( integer, float, string… )</p><pre> theCopyPasteDir = getdir #autoback as string<br> theCopyPasteFile = &quot;\myCopyPasteFile.max&quot; as string<br> theCopyPasteString = theCopyPasteDir + theCopyPasteFile as string</pre><p>So Like this would also work exactly the same.</p><p>There are other ways to do this, for instance you could do this more in a “one-liner” to keep it compact but sometimes is a bit harder to understand so I separated it.</p><pre>theCopyPasteString = (getdir #autoback) + &quot;\myCopyPasteFile.max&quot; as string</pre><p>In here instead of 3 variables, I’m just typing everything in just one… <br>It is a bit less procedural this way so we will use the other.</p><p>Also notice I added a “print” to just check that when we click we can see the string in the Listener.<br>You can execute now and try pressing Copy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*NwHfLYHYt8LISeGq5XEksQ.png" /><figcaption>This should popup in the listener.</figcaption></figure><h4>Save selection in that file.</h4><p>The last step! <br>Now we need to actually save the files…</p><pre>   saveNodes $ theCopyPasteString<br>   displayTempPrompt &quot;Copy Completed&quot; 6000</pre><pre>--try to destroy the rollout dialog if exists<br>try (destroydialog myToolbar) catch() <br><br><br>-- we define the CopyPaste directory by getting the Autoback forlder as string<br>theCopyPasteDir = getdir #autoback<br> <br>-- we define the name of the file<br>theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br> <br>-- we build the full string, the filename and the name of the file<br>theCopyPasteString = theCopyPasteDir + theCopyPasteFile<br><br>-- Function declaration<br>-- the copy function<br>fn myCopy = <br>(<br><br> <br> if selection.count &gt; 0 then<br> (<br>  -- we save the selected nodes in the file string we defined earlier.<br>  saveNodes $ theCopyPasteString<br>  <br>  -- we print the string in the listener to check the path.<br>  print theCopyPasteString<br>  <br>  --we display a promt message in the bottom.<br>  displayTempPrompt &quot;Copy Completed&quot; 6000<br> )<br> else<br> (<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)<br><br>--the paste function<br>fn myPaste = <br>(<br> messageBox &quot;Paste&quot;<br>)<br><br><br>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br> -- define the button type and looks<br> button btn_myCopy &quot;Copy&quot;  width:180 height:30 tooltip:&quot;a button that does something&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:180 height:30 tooltip:&quot;a button that does something&quot; border:true align:#center<br> <br> -- define what the button does when it is pressed.<br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br> <br>)<br><br>--creates the rollout<br>createdialog myToolbar </pre><p>There is the new line of code and after there is the full script code again.. Those are some lines of code already!</p><p>I changed some of the messages when the copy is performed and added comments to everything.</p><p>That is done! now for the Paste.</p><h4>Tips:</h4><ul><li>Be carefull with the “” strings of text needs them but calling a variable name doesn’t.</li><li>Keep it clean and ordered.</li><li>Comment stuff, you won’t remember tomorrow why you did yesterday.</li></ul><h3>The Paste!</h3><p>Now lets add the code for the paste! It should be fairly simple.</p><pre>  mergemaxfile (theCopyPasteString) #select<br>  displayTempPrompt &quot;Paste Complete&quot; 6000</pre><p>See that we added a #select there so the new objects will be selected so it is easy to move them aside.</p><p>Here is the complete code:</p><pre>--try to destroy the rollout dialog if exists<br>try (destroydialog myToolbar) catch() <br><br>-- we define the CopyPaste directory by getting the Autoback forlder as string<br>theCopyPasteDir = getdir #autoback<br> <br>-- we define the name of the file<br>theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br> <br>-- we build the full string, the filename and the name of the file<br>theCopyPasteString = theCopyPasteDir + theCopyPasteFile<br><br>-- Function declaration<br>-- the copy function<br>fn myCopy = <br>(<br> if selection.count &gt; 0 then<br> (<br>  -- we save the selected nodes in the file string we defined earlier.<br>  saveNodes $ theCopyPasteString<br>  <br>  -- we print the string in the listener to check the path.<br>  print theCopyPasteString<br>  <br>  --we display a promt message in the bottom.<br>  displayTempPrompt &quot;Copy Completed&quot; 6000<br> )<br> else<br> (<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)<br><br>--the paste function<br>fn myPaste = <br>(<br> print theCopyPasteString<br> mergemaxfile (theCopyPasteString) #select<br> displayTempPrompt &quot;Paste Complete&quot; 6000<br>)<br><br><br>-- defines the rollout that will be created<br>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br> -- define the button type and looks<br> button btn_myCopy &quot;Copy&quot;  width:180 height:30 tooltip:&quot;Copy&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:180 height:30 tooltip:&quot;Paste&quot; border:true align:#center<br> <br> -- define what the button does when it is pressed.<br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br> <br>)<br><br>--creates the rollout<br>createdialog myToolbar</pre><p>All done!</p><p>Seems long but really without the comments is not that much… but just leave there the comments!</p><pre><br>try (destroydialog myToolbar) catch()<br><br>theCopyPasteDir = getdir #autoback<br>theCopyPasteFile = &quot;\myCopyPasteFile.max&quot;<br>theCopyPasteString = theCopyPasteDir + theCopyPasteFile<br><br>fn myCopy = <br>(<br> if selection.count &gt; 0 then<br> (<br>  saveNodes $ theCopyPasteString<br>  print theCopyPasteString<br>  displayTempPrompt &quot;Copy Completed&quot; 6000<br> )<br> else<br> (<br>  displayTempPrompt &quot;No objects selected&quot; 1000<br> )<br>)<br><br>fn myPaste = <br>(<br> print theCopyPasteString<br> mergemaxfile (theCopyPasteString) #select<br> displayTempPrompt &quot;Paste Complete&quot; 6000<br>)<br><br>rollout myToolbar &quot;My new Toolbar&quot; width:200 height:500 <br>(<br> button btn_myCopy &quot;Copy&quot;  width:180 height:30 tooltip:&quot;Copy&quot; border:true align:#center<br> button btn_myPaste &quot;Paste&quot;  width:180 height:30 tooltip:&quot;Paste&quot; border:true align:#center<br> <br> on btn_myCopy pressed do myCopy ()<br> on btn_myPaste pressed do myPaste ()<br>)<br><br>createdialog myToolbar</pre><p>Congratulations you have your first Copy / Paste Script that works between Max sesions! ( as it is, only between the same versions of Max)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJ4PvMJFOpVNJ_Pf5-09Dw.gif" /></figure><p>I use this all the time to clean models in one Max and then copy into the good scene after I worked on materials for instance, or debugging stuff.</p><p>In the next step we will increase the level a bit, <br>Talk about Structs, make the bar dockable, send data inside functions and how to do another cool tool that I find very useful!</p><p><strong>Part 1 here!</strong><br><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-1-d2c5f55fd576">Part 1</a></p><h4>Part 3 here!</h4><p><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-3-random-colors-f56d841465b2">part 3!</a></p><p>If you found this usefull please leave a comment!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc06e87f935" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Max-Script Toolbar (beginner-level) Part 1]]></title>
            <link>https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-1-d2c5f55fd576?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c5f55fd576</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[3ds-max]]></category>
            <category><![CDATA[3ds-max-script]]></category>
            <category><![CDATA[toolbar]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 14:47:26 GMT</pubDate>
            <atom:updated>2024-09-22T04:46:47.800Z</atom:updated>
            <content:encoded><![CDATA[<h3>MaxScript Toolbar(beginner) 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*AlImbPa8txqCHtib0yjV6A.png" /></figure><p>If you want to learn some Maxscript to create som easy tools well here you might be able to get some very basic knowledge.<br>Maxscript and any other scripting language can be scary and hard to try for most people, here I will try to explain things so everyone can give it a try!</p><p>If you came searching for the Copy Paste script go to the Part 2 and at the end you will find the code!</p><p><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-2-4cc06e87f935">https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-2-4cc06e87f935</a></p><h3>Introduction</h3><p>I have a toolbar that I created through the years, it allow me to go quite fast but it includes scripts of other people too so I can’t share it like it is. So I decided that I will create a new one, a bit more simplified and in the process possibly you can learn something new too!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*gqQqDeB0nr8nYdiJSt7iqg.png" /></figure><p>I’m a generalist so this is not gonna be the best way to do this, but more like my way, still I hope you can find something valuable!</p><p>And I can say with confidence that some of the scripts here, even if they are simple, very simple might impact your workflow! or I really hope so!</p><h3>Max Script Basics</h3><p>Nowadays I usually script using VisualStudio + Fork (Github) and I have a deployment on a shared folder for several computers to get the same scripts… Did I lost you already? no worries if you didn’t understood anything this will be a perfect guide, because I won’t be touching that, at least not from start.</p><p>I will give here some very basic general knowledge about maxscript.</p><h4>Listener</h4><p>The Maxscript Listener is that two pink and white things down there, just right click and select “ Open listener window” to get the full size.<br>Here we can check some of the information while we do some scripting, but we also can write some very easy code, sometimes for checking sometimes because we just need to change with code 1 thing 1 time so is not worth the time to do more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*cQgjLHw7hhrrXbRFu_7ZGw.png" /></figure><p>You can delete all the text there, there is no problem is just like a Log when its written there won’t affect Max in anyway. ( control + D )</p><p>To execute some code we press (enter) after the line we want to execute.<br>You can execute code in the pink window or in the white one but I usually execute from the top and check the result on the bottom.</p><p>Some easy code you can try typing here:</p><pre>Print &quot;hello world&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*D6TW8vQX9xaSt7SHCbd1Dw.png" /></figure><p>Just type that in the upper pink space after deleting everything first and press enter when after the last ”</p><p>That will show the word “hello world” in the listener a couple of times.. (why two that is for another day)</p><pre>myTeapot = teapot radius:30</pre><p>Clean the code again ( control + D ) and type this new line that will actually create a teapot for you with radius 30.<br>Execture that code several times, so we end up with several teapots, or just create several teapots doesn’t matter.</p><p>Select them all and execute this code, this is a bit more tricky we will go through at some point later but for now just run it.</p><pre>for i in selection do i.pos = [random 100 -100, random 100 -100, random 100 -100]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zi-Q835CG20-kkLPFmzmPQ.png" /></figure><p>You should en up with some mixed posistion teapots automatically, basically we are moving the teapots randomly +100 units to -100 units.</p><p>and now imagine we wanna just move them to the ground ( z = 0,0 ) all at once.<br>Select them all and use this code.</p><pre>$.pos.z = 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgwkKHLawzaGnU2FsqBWxA.png" /></figure><p>Now all the teapots moved to the floor.</p><h4>MacroRecorder</h4><p>You can activate MacroRecorder from the Listener itself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*9PYYfQkY58edKzYHOnxUFQ.png" /></figure><p>Or from the top menu “Scripting”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*UmJa6s2BPIBQFAkTO8K0cQ.png" /></figure><p>What it does is it shows some usefull ( sometimes ) lines of code you can use (after a bit of modification ), it records what 3DsMax does and it shows it there, so we can actually pick that code and reutilize it.<br>It does not pick everything, and sometimes It doesn’t pick things the way you want, so don’t trust it too much, always go for the Max Maxscript documentation if you have doubts.</p><p>And! remember to turn it off it can slow down 3DsMax in certain situations.</p><p>If when it is activated we change the radius of one of the teapots you will get the following text there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2_1WaZDEGNDsT6wviRjSA.png" /></figure><p>So we can see that a teapot has a parameter in maxscript that is called “radius” we already used that one before!</p><h4>Script Window</h4><p>So in the listner everything we type gets lost eventually so what if we want to make that work we did, permanent?<br>Then we use the Scripting Editor by going to Scripting, New Script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*eFJ6liTCTg5RTg5sMsqdNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKGIaMIwMWCPoC_KAs6rDw.png" /></figure><p>It looks like that, there if we type for instance some of the things we typed before we can save that in a file.</p><p>Oh here we can’t execture pressing enter, we execute by pressing “Control+E”</p><p>Lets type this two lines only this time.</p><pre>messageBox &quot;hello world&quot;<br>myTeapot = teapot radius:30</pre><p>Notice that we changed “print” for “messageBox” this time, well that instead of printing the text in the listener will create a popup that we need to accept, once accepted it will create the teapot.</p><p>Press Control + E and a message should pop up inmediatly.<br>You can save this in a folder in your desktop or wherever.</p><p>The magic of Maxscript is that you can drag code that to a floating toolbar in the top menu and it will create a buton that is ready to be used.<br>Just create a new toolbar with a new name and you can put the script there selecting all the text and draging it there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*phcFgRzDdeW0AVaqzB9tlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*4gDN-TwNqXu4_4nNCzCl6A.gif" /></figure><p>This is maybe the easiest and fastest way to create a toolbar with scripts, but it is not very customizable. <br>If you follow along you will learn how to do a better version of this and in the future customize it at your will.<br>That is all for the Basics of Maxscript, now lets go to create something a bit more usefull!</p><p>Go to the next step here… Lets create some custom toolbar for real!</p><h4>Part 2 here:<br><a href="https://medium.com/@stragalet/my-max-script-toolbar-beginner-level-part-2-4cc06e87f935">Part 2</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c5f55fd576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Deadline (Thinkbox AWS) for 3DsMax in a NAS.]]></title>
            <link>https://medium.com/@stragalet/setup-deadline-thinkbox-aws-for-3dsmax-in-a-nas-f6a2814588cc?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6a2814588cc</guid>
            <category><![CDATA[render-farm]]></category>
            <category><![CDATA[truenas]]></category>
            <category><![CDATA[3ds-max]]></category>
            <category><![CDATA[aws-thinkbox-deadline]]></category>
            <category><![CDATA[setup]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 13:18:20 GMT</pubDate>
            <atom:updated>2023-11-09T12:29:19.208Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setup Deadline (Thinkbox AWS)for 3DsMax in a NAS.</h3><p><strong>How to install Deadline on a Linux VM server. It also can apply for a Windows server.<br>What issues you can encounter and my way of solving them.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5mfONwZXyqc7mz6YR1vGlw.png" /></figure><h3><strong>Introduction</strong></h3><p>First, you definetly should be using Deadline, as now is Free, Open-source, and way more powerfull than Backburner.</p><p>At first it can feel a bit daunting, with so many options, but I asure soon you will get along with it. Focus on basic options first and go adding from there, in the end is just like Backburner but on steroids.</p><h3>My setup overview &amp; comments</h3><p>I have it running on a NAS with VirtualMachine using TrueNas Scale but MongoDB can run on a Windows machine too and also the repository can be installed normally in windows machine too, you will need to investigate how to install MongoDB on windows I don’t explain that here, but it should be easier than in Linux I can imagine.</p><p>I wish I could run a Docker with MongoDB, instead of a Virtual Machine, but I wasn’t able to do it yet, so, Virtual Machine it is.</p><p>For the Repository I’m using the shared folder in the NAS itself.</p><p>I’m not using any special security in this setup as it is much more simple to setup. I recommend first you try without security, and later on, you can try adding some security, after checking it all works.</p><h3>Basics</h3><p>You might be familiar with Backburner way of working, Deadline is similar but has some differences, lets check them anyways.</p><p>Deadline is composed of different programs</p><p><strong>Deadline Worker, </strong>will activate the render node in standby ready to get any job.</p><p><strong>Deadline Monitor</strong>, well we use this to see what is going on in our farm but also to change some of the projects we sent to the farm.<br>It also can manage the repository settings.</p><p><strong>Deadline Pulse</strong>, Is another deadline application that can be used to start and shutdown machines automatically.</p><p><strong>Repository, </strong>not a program but a set of folders where everything will be stored there so the Manager won’t forget anything, it is like the “hard drive” for Deadline to utilize.</p><p><strong>MongoDB</strong>, not sure entirely what it does, but I guess it syncs the repository job files with a database so everything stays in order and consistant.</p><p>Is recomended to install deadline (mongoDB) database and repository on a dedicated server machine, although it can also run installed in a workstation.</p><h3>My Hardware Setup</h3><p>I have several machines, Workstation and Render Nodes, also a Server.</p><p>My server setup is an AMD Epyc, filled with SSD drives, and running TrueNas Scale. ( This guide can also be followed with TrueNas Core)</p><p>I’m connecting everything with 10Gbe and some 100Gbe (yes 100… there is <a href="https://medium.com/@stragalet/home-server-failure-that-it-end-up-working-custom-build-epyc-ssd-100gbe-92f187ac9efe">another story</a> about this) NIC.</p><h3><strong>Installing Deadline</strong></h3><h4>1. Create Virtual Machine</h4><p>In TrueNas Scale, create a new VM with this recommended settings.</p><ul><li>2cores</li><li>2threads</li><li>4GB ram</li><li>50GB storage</li><li>network VirtIO</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyIaUz5huigOkltVl_WHLQ.png" /></figure><p>I use this ubuntu version (<strong>ubuntu-20.04.2.0-desktop-amd64.iso</strong>) others gave me issues like the MongoDB not booting automatically.<br>Download the ISO you will need it to fire it up on the VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*mlfVof1rh6sYZg7oa2zl5Q.png" /></figure><ul><li>Connect to the VM and search for the Terminal.</li><li>Remove the need for sudo password for the “admin” account lets asume now it is “<em>stragalet</em>” for example, using:</li></ul><pre>sudo passwd -d stragalet</pre><p>This will avoid that after reboot the VM gets stuck on the login page. It will just go through an fire up the MongoDB.</p><ul><li>update ubuntu with:</li></ul><pre>sudo apt-get update</pre><p>and</p><pre>sudo apt-get upgrade</pre><p>setup the network and change IP to 192.168.10.81 ( or the IP you wanna use)</p><h4>2. Install MongoDB</h4><ul><li>To install use:</li></ul><pre>Sudo apt install -y mongodb</pre><ul><li>check if actually running using:</li></ul><pre>sudo systemctl status mongodb</pre><ul><li>Edit the mongodb conf to bind the Deadline repository IP adress using:</li></ul><pre>sudo nano /etc/mongodb.conf</pre><p>nano is just like the name of a Linus text editor</p><p>Add this info, the local IP and the outside IP, and the port number</p><pre>Bind_ip = 127.0.0.1,192.168.10.81<br>port = 27100 </pre><p>The port number was 27017 I changed it because the new installer recommends that I think.</p><ul><li>Restart Mongo DB</li></ul><pre>sudo systemctl restart mongodb</pre><ul><li>Check if running again</li></ul><pre>sudo systemctl status mongodb</pre><ul><li>Linux part is done, it should work and Re-start automatically the MongoDB everytime even if it gets rebooted.</li></ul><h4>3. Install Deadline Repository</h4><p>In a workstation in Windows, from the downloaded files from the ThinkBox website, use the repository installation file.<br><strong>DeadlineRepository-10.3.0.9-windows-installer.exe ( Use the newest version of course )<br></strong>This install will create the Repository folder structure and connect it to the existing MongoDB.</p><ul><li>Execute the Installer as ADMIN in windows.</li><li>Give a Network location, for instance in a NAS or Server, the folder where the repository will be built. “DeadlineRepository10”</li><li>Connect to the just created MongoDB using the IP and Port that we just setup.</li><li>It should start building the DB and Deadline will be ready to be used.</li></ul><h4>4. Install Client</h4><ul><li>Make sure you install same version as the repository. <br><strong>DeadlineClient-10.1.18.5-windows-installer.exe</strong></li><li>The install directory is not so relevant you can leave in default.</li><li>check — Set Full Read/Write Access for files all users</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*l3OUWKCXKQQZDUDmRUZedA.png" /></figure><ul><li>Select Type — Client.</li><li>Deadline Setup — Direct Connection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*iPncXgPrUumJkTDbAIUoxw.png" /></figure><ul><li>Give the proper url to the folder of the repository. <br>\\YOURSERVER\DeadlineRepository10</li><li>We don’t use TLS certificate, leave empty.</li><li>Don’t need to Launch Worker when Launcher Starts, but you can do so if you wan’t. If you don’t know, don’t do it.</li><li>You can also Install Pulse ( to manage automatic reboots and such )</li></ul><h4><strong>5. Ready to be used</strong></h4><p>Now you should be able to use it in Max straight away, or through a Render Pass manager like Renderstacks but first you need to find the Installers for 3DsMax.</p><p>You can find it in the repository location:</p><p><em>….DeadlineRepository10\submission\3dsmax\Installers</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*BGwlvhMC8m_IF2HtcACxPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*69aaVa44PtlIK6Baipc34g.png" /></figure><p>Remember to open at least 1 time the Deadline submitter after install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*gI19aKN6yCnoUBYeZ-gyNQ.png" /></figure><h4>6. Some Problems you could encounter and its solution</h4><p><strong>Can’t connect to Data Base.<br></strong><em>Possibly MongoDB didn’t start correctly.</em></p><p><strong>Crash while installing<br></strong><em>Run as Administrator.</em></p><p><strong>Unable to create repository files<br></strong><em>Run as administrator or check if given folder for Repository is empty.</em></p><h3>All Done!</h3><p>That is all, I hope I didn’t miss any important step :D, if so, comment and I’ll try to update with the missing info.<br>Give a like if it was helpful! see ya!</p><p><strong>Fin.</strong></p><p>More of the things I do here: <a href="https://lit.link/en/stragalet">Stragalet</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6a2814588cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unreal Engine 5 mannequin with CAT (Character Animation Tools) NO RETARGETING!]]></title>
            <link>https://medium.com/@stragalet/unreal-engine-5-mannequin-with-cat-character-animation-tools-and-no-retargeting-f02ad0d124f9?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f02ad0d124f9</guid>
            <category><![CDATA[unreal-engine-5]]></category>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[3d-character-animation]]></category>
            <category><![CDATA[3ds-max]]></category>
            <category><![CDATA[rigging]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 16:20:51 GMT</pubDate>
            <atom:updated>2024-02-05T01:28:53.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unreal Engine 5 mannequin with CAT (Character Animation Tools)</h3><h3>Introduction</h3><p>I struggle with programing and I can anticipate that I will struggle a lot when doing a game, so I was thinking I want to maintain UE5 mannequin bone structure so everything goes smooth as possible later on, at least on the animation side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3YTILnGNdTlaCW8kKdwww.png" /></figure><p>However, there wasn’t a lot of clear and complete information available. Fortunately, I found some great scripts, templates, and tutorials from talented people, including:</p><ul><li>Miloš Černý Tutorial on the root bone and CAT.<br><a href="https://www.youtube.com/watch?v=vbLYE76v50s">https://www.youtube.com/watch?v=vbLYE76v50s</a></li><li>bond1 Template and Scripts, for CAT and also for Biped<br><a href="https://www.youtube.com/watch?v=Fh77QYTX2bQ">https://www.youtube.com/watch?v=Fh77QYTX2bQ</a></li><li>Unreal Engine JP explaining about the new UE5 rig and such (japanese)<br><a href="https://www.youtube.com/watch?v=nb8P_VmRKog">https://www.youtube.com/watch?v=nb8P_VmRKog</a></li></ul><p>While this is great material, I was missing some clear reasoning and information. So, I tried to find my way as a developer (even though I’m not one) and came up with a solution that draws from both Miloš Černý and bond1’s approaches.</p><h3>Solid Solution for later.</h3><p>Less work and fewer headaches later on. <br>I wanted a solution that allowed for customization, was robust, and had custom animation and mocap capabilities with ease. <br>I needed a solution that was ready to add extra bones, as the UE5 mannequin has lots of bones, especially in the hands. The “bond1” solution had a simplification there that I didn’t need, so I couldn’t use his template exactly.<br>Additionally, I wanted to respect the naming convention and bone orientation of the bones like bond1, so I wouldn’t have to worry later on in UE. Miloš Černý’s method did not take care of that part, and I guess he was relying on a retargeting solution later on in the pipeline. That would have introduced more variables that I just don’t want to deal with.</p><h3>Why all the hassle?</h3><p>First, if this were for an interactive movie or animation, I wouldn’t have done all of this. I would have exported the CAT rig or Biped rig as is, and UE would have loaded it without any trouble (I tried). I wouln’t have cared about naming conventions or bone orientation, it just works. <br>However, the objective this time was to have something that we can use very easily in games as well so respecting the UE5 skeleton layout seems the way to go.</p><p>CAT and Biped solutions have their custom bone orientations and limbs links, they can be somewhat customized but fixing the orientation is tricky.</p><p>This solution will provide the UE5 skeleton rig, but you can use it freely with CAT, so good for loading motion capture, but also good to hand animate.</p><h4>Pros</h4><ul><li>can animate the CAT rig as you will.</li><li>can recycle this setup to every character with minor tweakings.</li><li>UE5 will understand the exported rig perfectly.</li><li>No retargeting needed for most animations.</li></ul><h4>Cons</h4><ul><li>You will end up with 2 hierarchies so you need to update them both when there is a change.</li><li>the setup takes some time.</li></ul><p>Would be awesome if in the future 3DsMax can export the ideal UE5 skeleton without this methot of course.</p><h3>Process overview.</h3><ol><li>I will extract the Manequin from UE5.</li><li>Convertit to helpers so we can use it with ease in 3dsMax.</li><li>Build a very similar CAT humanoid rig on top.</li><li>“link” (Position and rotation constraint) the UE5 helper hierarchy to the newly created CAT rig.</li><li>You will end up with 2 separate hierarchies, one for animating with its own bones and orientations, and another one with UE5 skeleton hiearchy intact so you don’t need re-targeting.</li></ol><h3>Disclosure.</h3><p>This is my own version of the process. I cannot confirm it is the best way, but it makes sense. <br>Other people have tried similar things, but it could be wrong in some ways or overcomplicated. <br>Anyways, if I get more information about this, I will update this documentation with a better method.</p><p>I think it’s a fun read, and you can learn lots of things, including some easy scripts and other stuff. I tried to be detailed, and I don’t think I skipped any important parts, but I’m sorry if I skipped something by mistake. <br>Just let me know in the comments, and I can update it.</p><p>I strongly believe that it’s better to learn how to do this by yourself so you can make a more customized version of it. Also, if you want a more polished or just another version of this, I recommend “bond1” version. It has a very neat root feature that I’m totally missing at the moment.</p><h3>The process!</h3><h4>Export an FBX from UE5 mannequin.</h4><p>Just open a UE5 3rdPerson project, and with the humanoid selected export as FBX.</p><h4>Convert the Bones to Dummy</h4><p>Open the FBX in 3DsMax and select the chain of bones and from the root, and export it as FBX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n0w2_0L_gORXoSgR--ZY2Q.png" /></figure><p>Import it once more to 3DsMax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZc5Jq_5Mev7NAPkUem4-A.png" /></figure><p>All the bones have been converted to dummy and mantaining the hierarchy intact.</p><p>I tried to check convert Dummy to Bones, but It won’t import it as bone no matter what, so well, Dummies will do.</p><h4>Convert Dummy to Point helpers</h4><p>Now that we have Dummies, we can convert them to PointHelpers that is its nicer because we can change color and size. ( if you try to do the same from bones directly to point helpers won’t work, so we need the dummies first)<br>I have a script of my own for this in my toolbar, but I’ll share the code here as it is very simple. It works this way.</p><p>Select everything you want to convert, and then select as a last object, the object you want it to be the new shape. It is very important that the last object is the “target” object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*YV4c_6HZB3rppPPAzE7d4Q.png" /><figcaption>just a screenshot from my toolbar for understanding what it does.</figcaption></figure><pre>if selection.count &gt;=2 then<br>(<br> oldObjs  = for obj in (selection as array) collect obj<br> temp     = oldOBJs[oldObjs.count] -- store last object from the array.<br> deleteitem oldObjs oldObjs.count -- delete the last object from the array.<br> if queryBox &quot;Replace as INSTANCE ? &quot; beep:true then<br> (<br>  displayTempPrompt &quot;---- Replaced with instance ----&quot; 0<br>  for i in oldObjs do (<br>  i.baseObject = temp.BaseObject<br>  )<br> )else(<br>  displayTempPrompt &quot;---- Replaced with copy ----&quot; 0<br>  for i in oldObjs do (<br>  i.baseObject = copy temp.BaseObject<br>  )<br> )<br>)else(messageBox &quot;Select 2 or more objects.&quot;)<br>),</pre><p>Very simple script but very useful. Lets say you have 3 objects 2 boxes and 1 teapot, but you would like to have 3 teapots.<br>Select first the 2 boxes and at last the teapot and execute this script. (control + e)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x52vHGN2uMwddl7vO1njxQ.png" /><figcaption>here is where you add the script code. New Script ► and just copy paste there the text. (control+e) to execute.</figcaption></figure><p>It will ask you if you want instance, if not, will do a copy. Do instance.<br>Now all become teapots and editing one will change the other.</p><p>We will do the same but with the dummy and selecting a newly created point helper the last. ( you can delete that one later )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F65CXMEEykCc3CUg7p3Bxg.gif" /><figcaption>You can update the size of the helpers and adjust them.</figcaption></figure><h3><strong>⚠ CAREFULL NOTE ⚠</strong></h3><p>I noticed after using it for a while that the mannequin bones are not perfectly symmetrical, this was creating an issue while skinning where sometimes It wouldn’t pick it correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1HS2avoqgXD5d_iPFEf7g.png" /><figcaption>this is the missalignment I’m talking about… small but can be bad for symmetry.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_ze-Ye5E4yd9EuWW0MQWA.png" /><figcaption>in some places the difference was larger</figcaption></figure><p>This only happens because I matched the CAT rig to the Mannequin UE one… if I was doing the other way around then no problem as CAT was pefectly symmetrical.<br>Annyways, to make sure that the mannequin has all the helpers symmetrical I made a script that finds the “ _l “ parts and mirrors whatever there is in the “_r” parts.</p><p>Make sure you select ALL helpers from the mannequin first, also make sure that the object is not locked in anyway, and that there are no any other objects on the scene with the same name!<br>Also make sure the objects end with “_l” “_r” and that you didn’t duplicate it and becomed “_l001” or something…<br>With all that it should work flawlessly.</p><pre>      <br>    fn SelectAtLeasttwo =<br>    (<br>        if selection.count &gt;=2 then<br>        (<br>            displayTempPrompt &quot;there at least 2 object selected continue&quot; 8000  <br>            SelectionOk = 1<br>            return SelectionOk<br>        )<br>        else<br>        (<br>            displayTempPrompt &quot;⚠ select at least 2 object ⚠&quot; 8000 <br>            messageBox &quot;⚠ select at least 2 object ⚠&quot; title:&quot;Alert&quot;<br>            SelectionOk = 0<br>            return SelectionOk <br>        )<br>    )<br><br>    fn FMirrorPosRot180 =<br>    ( <br>            with undo &quot;copy rotation and such&quot; on<br>            (<br>                oldObjs = #()<br>                temp   = #()<br>                SelectionStuff = SelectAtLeastTwo () -- gets the result from the SelectAtLeastOne Funcion, 1 for yes 0 for no<br>                If SelectionStuff == 1 then  -- checks the function result and if it is possitives continues, otherwise shows a popup warning<br>                --if selection.count &gt;=2 then<br>                (<br>                    oldObjs  = for obj in (selection as array) collect obj<br>                    temp     = oldOBJs[oldObjs.count] -- store last object from the array.<br>                    deleteitem oldObjs oldObjs.count -- delete the last object from the array.<br>        <br>                    displayTempPrompt &quot;---- Replaced with instance ----&quot; 0<br>                    for i in oldObjs do <br>                    (<br>                        OldPos = i.position<br>                        print temp.rotation<br>                        i.rotation = temp.rotation * (matrix3 [1,0,0] [0,-1,0] [0,0,-1] [0,0,0]) --raruno pero funciona<br>                        i.position = temp.position * [-1,1,1]--(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])<br>                        in coordsys local rotate i (eulerAngles 180 0 0)<br>                        print i.rotation<br>                    ) <br>        <br>                )<br>            )<br>    )<br><br>    fn UEAutoFixer = <br>    (<br>        SelectionStuff = SelectAtLeasttwo () -- gets the result from the SelectAtLeastOne Funcion, 1 for yes 0 for no<br>        If SelectionStuff == 1 then  -- checks the function result and if it is possitives continues, otherwise shows a popup warning<br>        (<br>            TotalSele2 = Selection as Array<br>            TotalSeleCount = TotalSele2.count as integer<br>            print &quot;hellyeah&quot;<br>            print TotalSele2<br>            print TotalSeleCount<br>            o = 1 as integer<br>            EnableSceneRedraw = false<br>            <br>            for o = 1 to TotalSeleCount do  -- much nicer :D<br>            (   <br>                workingObjName = totalsele2[o].name<br>                workingObjName += &quot;.&quot;<br>                MirrorObjName = substituteString workingObjName &quot;_l.&quot; &quot;_r.&quot;<br>                -- check if mirror object exist in the array<br>                mirrorObjectExist = false<br><br><br>                for t = 1 to TotalSeleCount do <br>                (<br>                    checkthis = totalsele2[t].name + &quot;.&quot;<br>                    if checkthis == MirrorObjName do (mirrorObjectExist = true exit)<br>                )<br><br>                <br>                if mirrorObjectExist == true then<br>                (<br>                    select totalsele2 [o]<br>                    if workingObjName != MirrorObjName then --if they are different<br>                    (<br>                        -- check if they are L and R<br>                        workingObjNametemp = substituteString workingObjName &quot;_l.&quot; &quot;_r.&quot;<br>                        if MirrorObjName == workingObjNametemp then<br>                        (<br>                            print&quot;mirror this two&quot;<br>                            print workingObjName<br>                            print MirrorObjName<br>                            MirrorObjName = substituteString MirrorObjName &quot;_r.&quot; &quot;_r&quot;<br>                            workingObjName = substituteString workingObjName &quot;_l.&quot; &quot;_l&quot;<br>                            print workingObjName<br>                            print MirrorObjName<br><br>                            select (getnodebyname workingObjName)<br>                            selectmore (getnodebyname MirrorObjName)<br>                            print $<br>                            print&quot;---------------&quot;<br>                            FMirrorPosRot180 ()<br>                        )<br>                    )<br>                    else <br>                    (<br>                        -- they are the same! so don&#39;t do anything.<br>                        print&quot;they are R with R so I don&#39;t do anything here&quot;<br>                    )<br>                )<br>                else <br>                (<br>                    print workingObjName<br>                    print MirrorObjName<br>                    print &quot;didn&#39;t find match for this&quot;<br>                )<br>              <br>            EnableSceneRedraw = true<br>            redrawViews ()  <br>            )<br>        )<br>    )<br><br><br>UEAutoFixer()<br><br></pre><p>now we continue…</p><h4>Do a little bit of cleaning inside 3DsMax.</h4><p>The mannequin has some bones that are not beeing used, I’m not really sure why but I think it is because it serves as a more complete skeleton structure just in case someone want to add more of the bones to the skinning. Why I came to this conclusion? well there are bones that are not skinned in any way nor move in that character.</p><p>So I will create some selection sets, just for ease of use, with the main structure I want to use and the other extra bones just in case I need them later.</p><p>Here I separated Blue — Main bones (now point helpers), Yellow — extra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBUiPqutkuEU9U-GcKAAwg.png" /></figure><p>Can be a bit hard to know what are the important ones, so I recommend:</p><ul><li>You can check what affects the skinning mesh in the original FBX. if it moves the mesh, might be important.</li><li>You can visualize, in the original FBX export, the bones as bones since once we convert them to point helpers can be more tricky to know what is what.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvZvCO6Py4B1MXXNs4m9-A.png" /><figcaption>example on how to I separated them.</figcaption></figure><p>Just be aware that you cannot break the hierarchy. I mean, you can “ignore” the links that are finals, but no the ones that are trunk or base to the other bones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*KM4SpNVfh5_bMEEs29Lexw.png" /><figcaption>you can’t skipp the red cross one. but you can skipp the green circle one.</figcaption></figure><p>Example: you can ignore the “thigh_correctiveRoot_r” because that chain ends there and doesn’t have anything after, but you cannot skip “pelvis” otherwise the legs would be floating without a parent and UE won’t like that.</p><h4>Color Code</h4><p>I change the colors similar to what CAT does to diferenciate a bit more the helpers. this is not needed but it is fancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zdmY-2m1zidR7SdX3kg3w.png" /><figcaption>I just do because I can.</figcaption></figure><p>Reason I don’t delete the Extra (red) point helpers, I might use this in some characters and I rather have the name ready there for now.</p><h4>Create a CATrig</h4><p>I will create a cat rig that matches that structure.<br>It could be a simplified version too, like for the legs you don’t need to do the divisions, but in this case I would like to have those division so I’ll go with almost a perfect match with the UE5 skeleton here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTTUx6GcvBX_MFs9EQq_6A.png" /><figcaption>start with the CAT rig parent object. you can find this in Helpers ►CAT Parent.</figcaption></figure><p>Start with the basic human and modify it to match the Unreal Engine skeleton.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smM_cZumV4JTJ9JRFzV3-Q.png" /><figcaption>Pay attention to the bones you need.</figcaption></figure><p>Some parts of the CAT rig needs to be splitted into more pieces if you want to match that aswell, it is not mandatory though, you might want to use a simplified version, but this time I will be using it like this.</p><p>So you go align pivot to pivot and do your best job in the feet and hands.<br>It can be tricky, sometimes only position alignment is neede some times rotation in some axis is also needed. <br>I recommend opening another Max instance side by side so you can check the original bone CAT orientations in case that they become messed up in the process… For instance, Y axis should be pointing up from the palm in my case… so If it’s pointing anywhere else it is messed, and you should twist it back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*4AXqIFS8c6wZ7yFrVE0qeg.gif" /><figcaption>like this all the bones.</figcaption></figure><p>Remember that spine will be missing some bones that you will need to add and the fingers too require more bones, and also the arms and legs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jouRoe8KrjaJkE8SNs1Ieg.png" /><figcaption>very imporant to work here the orientations and positions.</figcaption></figure><p>Again, check that the CAT bone orientation didn’t go crazy when doing align, by default Y should point up and X front towards the end of the finger.</p><p>You can mirror left and right so you just need to do one arm and copy to the other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*PUmYpSx7CDTsMdz7WT_FBA.png" /></figure><p>Well there it is, we are getting closer. By the way I changed the colors to match the CAT. Not relevant at all.</p><h4>Check it</h4><p>Not joking, triple check what you did otherwise any miss from now on… could be very time consuming. <br>Save incremental often.<br>Go on every bone and helper, check the orientation and the position alignment.<br>Sometimes readjusting something in the spine can mess your hand so check that nothing moved.</p><h4>Make “UE5 ready rig” follow CAT rig.</h4><p>We have to select every “UE ready Point helper” and do a Position and a Rotation list controler where we will do a position/orientation constraints after the existing XYZ and Euler controllers respectively.<br>Ok this sounds like alien language but it is easier than it sounds let me explain further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gi627heDu1J5QGqLh6H3Aw.png" /><figcaption>select one point helper go to the move pannel and check that out.</figcaption></figure><p>So every helper has its own “controller”, a controller is a thing that tells it where is it and what is the orientation (and also scale but we don’t use this time).</p><p>We want to keep the existing Orientation and Position, otherwise it would move to the 0,0,0 position, but we want to tell it that from now on it should move with the corresponding CAT bone.</p><p>How we do this? easy, we create a “list” inside position and rotation controllers respectively, this allows to add different types of controllers underneath… for instance another type of controller that follows another object called “constraint”.</p><p>But why we can’t use 3dsMax link function?<br>Well we can’t use link because that would change the hierarchy, and we want to keep the hierarchy intact so UE5 understands it perfectly.<br>That is why we use this other method to “link” the objects toguether.</p><p>I will explain step by step what is going on but hold it because there is a faster way at the end.</p><p>Click Position, go to the little icon, select Position List from the list and OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*__Y1mm0k2B1oCnyB7PFb_g.png" /></figure><p>A Position List Controller will appear and will have the same Position XYZ as first option but now also will show a second option “Available” there we will add the Position Constraint, this will make our Point follow the bone once we select the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*2cCl6cOc7BrZleECVDTDYQ.png" /></figure><p>So now we have the Position Constraint ( It tells the Point to follow another object, without changing the hierarchy )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5hwcXS2gvaUMQZgiINkgg.png" /></figure><p>And then we can pick the object we want to follow.<br>The object shouldn’t move much because we aligned the CAT bones to it, but some of the minnor bones could have a slight shift, to solve that just click the “Keep Inital Offset button” and will fix it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*gPlrgy1K9XUFPB8n0rCudg.png" /></figure><p>But this will update only the Position but not the orientation so we will repeat this also for the “Rotation” adding an “Rotation list” and in the aviable slot an “Orientation Constraint”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRFqr6-4VSnxiB7KYPZksg.png" /></figure><p>Also here we need to click also “Keep Initial Offset” or all the structure will turn. and we don’t need that.</p><h4>The Faster way.</h4><p>Oh! This is the faster way, but hold it… because maybe there is the Ultra Faster way! I’m hyping you, I know…</p><p>The faster way is, with the UE point helper you want to edit go to Animation menu on top, Position Controllers ►Position Constraint.<br>It will create the List for you automatically and same with Rotation Controllers ► Orientation Constraint. <br>Just remember to click “ Keep inital offset” in both.</p><p>By the way you can drag the Animation menus outside so you don’t need to click on int everytime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpBdjvLtdIVunpQR5wO1kg.png" /></figure><p>If when doing the Constraint thingy something moves… check, because that means things weren’t aligned properly.</p><p>And we need to repeat this for every bone… yeah… every…. single… bone.</p><h4>The Ultra Faster way.</h4><p>So I put toguether this script… it has some very easy checks for list controllers, in case that you already linked it but I’m not checking much more so be aware not to apply it two times :)<br>It works like the other script I shared before, select first the “UE ready point helper”, and second the CAT bone as the target. It will do the list constraints all at once.<br>You still need go selecting stuff in pairs but I think that makes it less painfull.</p><p>By the way the “keep inital offset” gets activated too automatically.</p><pre>--thanks Mambo4 from CGsociety forum for the few lines of code and comments :)<br>--modifier a bit the code so it can also handle position constraints and works with the &quot;last is master&quot; mode.<br>--ツンデレスクリプトやで。。。<br><br>if selection.count &gt;=2 then<br>(<br> oldObjs  = for obj in (selection as array) collect obj<br> temp     = oldOBJs[oldObjs.count] -- store last object from the array, in reality stores the count number.. but is the same as the last one of course...<br> deleteitem oldObjs oldObjs.count -- delete the last object from the array.<br> for i in oldObjs do <br> (<br>  if classof i.rotation.controller != Rotation_list then  --simple check if the object wasn&#39;t Rotation listed before.<br>  (<br>   <br>   if classof i.position.controller != Position_list then--simplecheck if the object wasn&#39;t Rotation listed before.<br>   ( <br>    <br>    i.rotation.controller = Rotation_list() --converts rotation controller form Euler XYZ to list, adds EulerXYZ to that list<br>    i.rotation.controller.available.controller=orientation_constraint() --adds orient constraint to the list<br>    i.rotation.controller.setactive 2 --otherwise, EulerXYZ was active<br>    i.rotation.controller[#Orientation_constraint].appendTarget temp 50 --($.rotation.controller[2] would also work, but I like to keep things clearer)<br>    i.rotation.controller[#Orientation_constraint].relative = on<br>    <br>    i.position.controller = Position_list() --converts Position controller form Position XYZ to list, adds Position XYZ to that list<br>    i.position.controller.available.controller=position_constraint() --adds position constraint to the list<br>    i.position.controller.setactive 2 --otherwise, EulerXYZ was active<br>    i.position.controller[#Position_constraint].appendTarget temp 50 --($.position.controller[2] would also work, but I like to keep things clearer)<br>    i.position.controller[#Position_constraint].relative = on<br>     <br>    displayTempPrompt &quot;LETS GOOOO!!!!!! ♥♥♥♥♥♥ one less!!    DON&#39;T GIVE UP ♥♥♥♥♥♥ がんばるんだ！！！！&quot; 4000<br>    <br>   )else(messageBox &quot;the position.constraint already contain something あらまー、ちゃんとなにやってる見てくれないですか！&quot;)<br>  )else(messageBox &quot;the rotation.constraint already contain something あらまー、ちゃんとなにやってる見てくれないですか！&quot;)<br> )<br>)else(messageBox &quot;Select 2 objects one helper and a bone あらまー！オブジェクト二つせｔなｔくしてくれないでしょうか。。。&quot;)</pre><p>Check on how to use scripts a little bit up if you don’t know how to.</p><p>If you mistake you can always delete the position constrain and re-align something that you missed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E85Ud2eJyEAY2OLPkyJSKw.png" /></figure><p>Select all the code, drag it to a new toolbar or a custom toolbar you might have already out and It will become a button! super useful instead of pressing Control+E all the time…</p><p>It took me around 6 minutes to connect everything, even with a little error in one of the links where I had to do manually.</p><p>There are the UE5 skeleton has IK controllers that should be constrained to the hand, feet, or the root controller respectively. Also the center of mass, and interaction point helpers.</p><h4>Lock everything that shoudn’t move.</h4><p>Like the UE helpers, you shouldn’t be able to manipulate them directly so just Lock them up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*SbW36mMpaucK_8_uac4c_Q.png" /></figure><h4>The Root Issue.</h4><p>Well, there is different ways with the root bone, I will just parent the root to another object for now and that’s it. This object will be outside the hierarchy of CAT, will be independent for now.<br>At the moment I don’t really need this in UE so I will come back to this and try to make it better.</p><p>Or even better, maybe you already know how to do something fancy and can explain to me in the coments! :)</p><h4>Root Control object.</h4><p>Create an object in the base to control the Root independently. Get the root point helper and like we did many times already, constrain it to that newly created object.</p><p>Later I hope I can make something more fancy here but this should do for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFHY5UFpKjdFSLd9L8Wbcw.png" /><figcaption>the sape is not relevant, you can use 3dsMax Teapot too.</figcaption></figure><p>So in the end we get 1 control rig made in CAT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSS3uGV-rAuudKxrJLG0mw.png" /><figcaption>skematic view in 3dsmax.</figcaption></figure><p>And we also have the “export” rig.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_qKGVHGy6jaDJ3nQ8cdFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*bXdHM4jqnV6K9FDwsmAPuQ.png" /></figure><p>It is super large because it also includes all that “extra” helpers that we might not need, so If you really don’t need them you can delete them, but I would suggest you save this version somewhere.</p><p>Also you shouldn’t export the “UE_RIG” helper, just from “root” one… delete everything over “root”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1Xvg6eg4yBnOS8vjbFKaw.png" /></figure><p>this is the UE main bone structure without the extras, more compact. <br>89 bones vs 161 in the full version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xy98O76ZqXOuRKlitAlRIw.png" /></figure><p>Now you can adapt that CAT to any character, and add the extra bones if needed.</p><p>So far I did a fast test and it worked flawlesly in the first try.<br>Now time to Animate in CAT and see if it also works nice!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*mOiZDsolIrA3ucyiNaKE3g.gif" /><figcaption>skining was super tempory… just for the sake of testing the rig. This character is a bit over the floor because it is supoused to wear shoes…</figcaption></figure><h3>The end ( for now )</h3><p>That is all for now… <br>Thankyou for reading :D</p><p>Remember you can follow me on twitter, instagram, Cara, Threads, Medium, Facebook, under I will apreciate your comments :) <br>Here is my lit.link to all that.</p><p>Maybe I should do a Video tutorial with this if it helps anyone… hummm I’ll think about it.</p><p><a href="https://lit.link/en/stragalet">https://lit.link/en/stragalet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f02ad0d124f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Epyc,SSD&100Gbeのカスタムホームサーバーの失敗とうまくいくまでの備忘録]]></title>
            <link>https://medium.com/@stragalet/epyc-ssd-100gbe%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%9B%E3%83%BC%E3%83%A0%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%AE%E5%A4%B1%E6%95%97%E3%81%A8%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8F%E3%81%BE%E3%81%A7%E3%81%AE%E5%82%99%E5%BF%98%E9%8C%B2-be668c17404a?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/be668c17404a</guid>
            <category><![CDATA[100gbe]]></category>
            <category><![CDATA[3dcg]]></category>
            <category><![CDATA[truenas]]></category>
            <category><![CDATA[サーバー]]></category>
            <category><![CDATA[10gbe]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 13:15:44 GMT</pubDate>
            <atom:updated>2022-09-18T13:15:44.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wk0WTanCTuC5S2TQrb08Vw.png" /></figure><h3>これはガイドですか？</h3><p>いいえ、そうではありません。これは、私たちが自宅で使用しているサーバーを、Epyc CPU搭載、ECCメモリ、SSDストレージ、100Gbe Mellanox CX5のカスタムビルドTrueNASでアップグレードする方法についての私たちの冒険です…</p><h3>少なくとも、目的は明確です…よね？</h3><p>私たちは、比較的大きなストレージプールを維持しながら、 可能であれば高速なパフォーマンス（SSD）と10Gbe以上の速度を手に入れたいと考えていましたし、銀行口座を空にもしたくありませんでした :D</p><h3>それをなにに使うの？</h3><p>私たちは、CM、ゲーム、アニメ、映画などのクライアントワークを行うアーティストユニットで、最近は個人的なプロジェクトにも力を入れています。LookDEVはスピードが要求されるので、ファイルのコピーを待つのはクールではありません。</p><h3>私たちの出発点</h3><p>当時のQnap Ts453be(当時500ドル程度)とスペック。</p><ul><li>4x 2TB SSD Samsung EVO 860 (Sata3)</li><li>QXG-10G1T、10Gbe NIC PCIe (Aquantiaチップ)</li><li>4Gb RAM ( 2x2GB)</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*e-0L6-eve3Jkn2n-tJCiSQ.png" src="https://cdn-images-1.medium.com/proxy/1*e-0L6-eve3Jkn2n-tJCiSQ.png" /></figure><p>ATATと隠れたぬきが守り神。フロッピーはデコってるだけです。使ってないです。大丈夫。</p><p>あだ名はくーちゃん。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*YvjJ3ckxvCK4JU-en_KZiw.png" src="https://cdn-images-1.medium.com/proxy/1*YvjJ3ckxvCK4JU-en_KZiw.png" /></figure><p>QXG-10G1T、10Gbe NIC PCIe (Aquantiaチップ)を内蔵しています。</p><p>このセットアップの主な問題は、容量の制限でした。スピードと容量を優先するためにRAID5で動作させていたと思いますが、HDDに2つの外部バックアップを使用していたので、合計容量は6GB未満でした。PCIe NICのバスは「悲惨な」Gen2 x2に限られていたので、ネットワーク上で得られる最大パフォーマンスは約700MB/秒で、遅くありませんが改善したかったのです。</p><h3>最初の計画</h3><p>当初は別のQnapでアップグレードしたかったのです。カスタムビルドはメンテナンスが面倒だったり、バグやエラーの問題…。私たちは結局、エンジニアではなくてアーティストなので。</p><p>そこで、私たちは、このようなものが欲しいと思いました。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*MnaLeEldKneywGrGNbzH9g.png" src="https://cdn-images-1.medium.com/proxy/1*MnaLeEldKneywGrGNbzH9g.png" /></figure><p>SSDでいっぱいにしたいので、フルHDタイプのベイは必要ありませんでしたが、まあ、計画はすぐに変更されました。</p><h3>計画変更</h3><p>カスタムビルドのリスクが大きすぎるため、私たちはすでにお高めのQnapを新調することで多かれ少なかれ納得していました。</p><p>しかし、ある日突然、野生の（大企業でサーバーの経験を積んできた）友が現れ、いろいろとアドバイスをもらううちに、カスタムサーバーに挑戦することも悪くないかと思えるようになったのです。</p><h3>新しいプラン</h3><p>新しいプランは、Qnapとほぼ同じ価格で、より多くのストレージ、より多くのスピード、より多くのCPUパワーを手に入れることでした！すべて良いニュースでしょう？待ってください。</p><p>この新しい計画は、実質的に何ヶ月か続く努力の始まりでした…何ヶ月かは正確に覚えていませんし、思い出したくもありません…。</p><h3>まず最初に</h3><p>まずは欲しいもの、必要なものをリストアップしてみましょう。例えば、PCIe Gen4 NVME 4TBドライブが欲しいけど、本当に必要なのか、過ぎた代物ではないのか。 というわけで、いろいろ調べた結果、Epyc CPU（8コア）、ECCメモリ64GB、SSD samsung EVO 860 4TB、あとはもちろんマザーボードや電源など、必要そうなものはすべて揃えて、HighPointさんのNVME PCIe Gen4 cards thatみたいな高価すぎるファンシーなものは諦めることにしました。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*xA5KokwicTGPsHGYcBo1sg.png" src="https://cdn-images-1.medium.com/proxy/1*xA5KokwicTGPsHGYcBo1sg.png" /></figure><p>きれいでしょう…. この転送速度を見てください!!!!</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*Yxc8nF5JEtL-VoFs2HynWw.png" src="https://cdn-images-1.medium.com/proxy/1*Yxc8nF5JEtL-VoFs2HynWw.png" /></figure><p>というわけで、私はこの獣のことを無理矢理忘れて、現実の世界に戻ってきました。</p><h3>ショッピングタイム</h3><p>やれやれ…C*vidの時代で、市場は狂っていた…我々は様々な国でパーツを買うことを強いられ、多くの遅延があり、さらには欲しいものが見つからなかったのでCPUのアップグレードを強いられた…そして価格はRRPから倍になっていた… それでも、価格はQnap Serverフル装備より低く、拡張とパワーの可能性はもっと高かったのである。</p><p>買い物はこんな感じで、一部パーツが前回よりグレードアップしているのがお分かりいただけると思います。</p><ul><li>AMD EPYC 735224c 128 PCIe Lanes, 155Watt 128MB cache 222.000¥ (2.000$ approx ) 当時（完全にオーバーキルCPUだが他に無かったので）本当はEPYC 7252 8c/16th 88.000¥ (700$ approx)が良かったのだが。</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*s5dqasi8Ca79jNFLppSHPw.png" src="https://cdn-images-1.medium.com/proxy/1*s5dqasi8Ca79jNFLppSHPw.png" /></figure><ul><li>Asrock Rack ROMED8–2TA ビーストマザーボード、PCIe スロットは Gen4x16 を 7 つ搭載しています。これほど多くのスロットは必要ありませんでしたが、このスロットをフルに使ってクレイジーになることができます。小型のものとの価格差もそれほどありませんし、将来的にはHighPointのNVMEフルスピードカードを挿せるかもしれません。</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*HvaH-RjLwkPItF5pj3YJDA.png" src="https://cdn-images-1.medium.com/proxy/1*HvaH-RjLwkPItF5pj3YJDA.png" /></figure><p>拡張スロットが多いな…。</p><ul><li>Samsung EVO860 6x4TB ( SATA3…遅いSATA3…えーんえーん) なぜPROグレードやKioxiaエンタープライズではなくEVOなのかと言われそうですが…私はただ私の友人を信じているだけです、彼はプロですからね? RAIDを使用しない場合、メインボリュームに22TBの空き容量があります（最終的にはRAIDを使用する予定ですが）。(SSDドライブについては非常に幸運で、1台4万円（4TBで350ドル！）で2台の970 EVO plusをSO冗長化するオファーを見つけました。</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*O1gMlRWKyaQWuREp3AmHRA.png" src="https://cdn-images-1.medium.com/proxy/1*O1gMlRWKyaQWuREp3AmHRA.png" /></figure><p>高価なSSDの山</p><ul><li>128GBのECC RAM。TrueNASはこれをデータのキャッシュとして使っているので、ブースターみたいなもので、多ければ多いほどいいんです。また、ECCはシステムの安定性の観点からも重要でした（実際、ECCでないものより安かったです）。</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*fvdekGoyloz5r_NlCyJnvQ.png" src="https://cdn-images-1.medium.com/proxy/1*fvdekGoyloz5r_NlCyJnvQ.png" /></figure><p>でも、私たちはデザイナーですから、RAMをむさぼるように使います。</p><ul><li>Noctuaのクーラーで静音化を実現。</li><li>電源 Seasonic Focus 800Wの効率性。</li><li>マザーボードに内蔵されているので、グラフィックカードは必要ありませんでした！うぉー！それは便利だ。</li><li>そして、お気に入りのIcyDock、ファンはNoctuasに変えましたけどね。</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*9oajwLKHutbfqDBkSze1Pg.png" src="https://cdn-images-1.medium.com/proxy/1*9oajwLKHutbfqDBkSze1Pg.png" /></figure><p>この美しさを見てください！SSD SATA3ドライブを8台搭載可能です。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*0IRdcfT3PsCh01eQHZYukw.png" src="https://cdn-images-1.medium.com/proxy/1*0IRdcfT3PsCh01eQHZYukw.png" /></figure><p>見てください！このコンパクトさ！！5.25インチベイです。</p><ul><li>その後、マザーボードにSATAコネクタが足りなくなったため、中古で拡張用PCIeを購入することになりました。LSI 9217–8i SAS2308 6GB HBA/RAIDCARD</li></ul><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*_W83vkzr3YVtBUOEFiiK2A.png" src="https://cdn-images-1.medium.com/proxy/1*_W83vkzr3YVtBUOEFiiK2A.png" /></figure><ul><li>箱は結局、手持ちの古いANTECを使うことになりました……そう、派手さはありません。</li></ul><p>ところで、マザーボード上の2つのポートは、エクステンダー/アダプターを購入しても、SATAドライブには使用できません。どうやらNVME PCIe Drives用のようです。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*UMf9NhgzttXVCe_5V_6Uiw.png" src="https://cdn-images-1.medium.com/proxy/1*UMf9NhgzttXVCe_5V_6Uiw.png" /></figure><h3>NICs…おぉ、なんという旅でしょう。</h3><p>この部分は飛ばしてもいいのですが、面白いので……。”<strong>NICついに作動する</strong>！”は、スキップしたい場合は次のタイトルにジャンプする必要があります :)</p><p>前の投稿で、私は一つの重要なことを言い忘れました…NICはどうなんだ！？私は100Gbeと言いました！どこにあるのでしょうか？</p><p>QSFP28コネクタが何を意味するのか、ケーブルはどうするのか、40Gbeにするのか、100Gbeにするのか……。スイッチ無しで（100Gbeスイッチは非常に高価です）、1つの100Gbe NICを使って、25Gbeの4つに分割することは可能でしょうか？</p><p>eBayで検索してみると、3つのMellanox Connect CX5 100Gbe NICが、3つ全部でおよそ750ドルと、いい値段で売られている。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*XT-Gq3kABLZmb9o13jsGgA.png" src="https://cdn-images-1.medium.com/proxy/1*XT-Gq3kABLZmb9o13jsGgA.png" /></figure><p>100Gbe Mellanox CX5三銃士</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*9o1sfx7oq10E3Sxq7JW60A.png" src="https://cdn-images-1.medium.com/proxy/1*9o1sfx7oq10E3Sxq7JW60A.png" /></figure><p>FS.comからDACケーブルが届きました。</p><p>しばらくして、私たちはそれらを手に入れました… 驚いたことに、1つしか動作しませんでした… なんてこった！…1つしか動作しないのでは、どんなスピードもテストできないじゃないか！… 私はこれまでLinuxを本格的に使ったことがなく、ディレクトリをリストアップする方法さえ知りませんでした、本当に・・・。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*jDB29GT1hlmMnE8T-2ulDw.png" src="https://cdn-images-1.medium.com/proxy/1*jDB29GT1hlmMnE8T-2ulDw.png" /></figure><p>MFE_NO_FLASH_DETECTED</p><p>NICをフラッシュしようとするたびに、このエラーが何度も何度も出ました。どうにかシステムには認識されましたが、動作しませんでした。全く同じモデルの1枚は動作したので、何か間違ったことをしていたわけではないのですが、少なくともシステムにはきちんと検出されたので、どうにもテストできませんでした。</p><h3>降参？！ありえない！！</h3><p>数日を経て10Gbeで考え直そうとしていました。MFE_NO_FLASH_DETECTED…のエラーコードについて考えながら。そしてテーブルの上のカードを眺めていた時、何かが閃いたのです!</p><p>これは左が動作中のNIC、右が動作していないNICです。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*TgEkTj6GkT8Tewmw5M2drQ.png" src="https://cdn-images-1.medium.com/proxy/1*TgEkTj6GkT8Tewmw5M2drQ.png" /></figure><figure><img alt="https://cdn-images-1.medium.com/max/750/1*Oyr0HLaNfisB7keRFDzXhQ.png" src="https://cdn-images-1.medium.com/proxy/1*Oyr0HLaNfisB7keRFDzXhQ.png" /></figure><p>左は動いているNIC、右は動いていないNIC・・・もちろんLinuxはFLASHメモリーを見つけられない・・・<strong>そこにないんだ</strong>！！！！。</p><p>私の考えでは、おそらくこれは非常に大きな会社で、カードのためにカスタムBIOSを持っていたのだと思います。これは私の推測ですが…。私は本当に知らないんです。</p><p>壊れたNICは両方ともチップの欠落という同じ問題を抱えていました…それは繊細さに欠ける方法で引き抜かれたのです。</p><p>それで、次の質問は…それについて何かできるのか？</p><h3>研究に戻ろう</h3><p>この時点で私はすでに私のパートナーに愛想を尽かされていて、何か逸脱するたびにひとりで何時間もインターネットで調べなければならなかった…。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*FUR2xDHPAkR5KFlPDvo01Q.png" src="https://cdn-images-1.medium.com/proxy/1*FUR2xDHPAkR5KFlPDvo01Q.png" /></figure><p>チップ！</p><p>とにかく私たちは返金されたお金を得た。私ははんだ付けキットとチップ（それらの5 $ A windbond 25q128FVSG）を購入し、それを修理することができるだろうか？</p><p>そして、いくつかの専門家のオンラインフォーラムで尋ねてみたところ、人々は親切でしたが、現実的でした。「それは非常に複雑な手順であり、基板をスクラップする必要があり、コネクタを見つけてブリッジを作る…そして、あなたがそのプロセスにおいて何も焼けこげさせることなく成功したとしても、おそらくあなたはとにかくチップをフラッシュすることができないかもしれない… チップは通常、特殊ツールでハンダ付け前にプログラムされているので 」</p><p>まあ、あまり希望を与えるものではありませんでした…。</p><h3>せっかく来たんだから、遊ぼう！</h3><p>返金してもらったわけですので、この種のハンダ付けを専門にしている日本のショップに問い合わせてみたところ、確か2枚で20,000円程度とのことでしたので、修理を依頼しました。</p><h3>結局、うまくいくのでしょうか？</h3><p>さて、私たちはカードを受け取り、とても立派でプロフェッショナルな修正をしてもらいました。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*p-l1TlTbYTNoSHywm5kQlg.png" src="https://cdn-images-1.medium.com/proxy/1*p-l1TlTbYTNoSHywm5kQlg.png" /></figure><p>周りに保護用の接着剤か何かがついていました・・・。</p><p>個人的には、今度こそはうまくいく！！と意気込んでいたのですが、長い話です。ダメでした…。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*kKP0O597T3TP98wSBvfYKw.png" src="https://cdn-images-1.medium.com/proxy/1*kKP0O597T3TP98wSBvfYKw.png" /></figure><p>”有効なFS4イメージが見つかりませんでした。”</p><p>新しいエラーが表示されました…。Burning FS4 image failed… No valid FS4 image found… 繰り返しますが私はLinusの完全な初心者なので… もうダメなんでしょうかね。</p><h3>パワー・オブ・リナックス</h3><p>しかし、さらに調べてみると…またしても…原因は、Linuxが新しいBIOSをインストールする前に、前のBIOSをチェックしようとすることに関係していることがわかりました。Linuxが前のBIOSをチェックするのを止めればいいだけなんだけど…まさにそれをやってくれる機能が実際にあるんだ</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*MHkXH_aE2uSnxgbSx_jvLQ.png" src="https://cdn-images-1.medium.com/proxy/1*MHkXH_aE2uSnxgbSx_jvLQ.png" /></figure><p>いえーい…いえーい…。</p><h3>NICついに作動する！</h3><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*Pu3OMG93Evm3gp7jxT8ePQ.png" src="https://cdn-images-1.medium.com/proxy/1*Pu3OMG93Evm3gp7jxT8ePQ.png" /></figure><p>それはWindowsで、それは2つのMellanoxです! BIOSをフラッシュすることができ、Windowsも問題なくカードを認識しました。</p><p>MACアドレスが両方のカードで0.0.0.0に設定されていたので、競合する可能性があったので、Linuxでいくつか余分に調整する必要がありましたが、今までやってきたことに比べれば簡単でした。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*XOAHDM3eeHe9JyngqaI6xw.png" src="https://cdn-images-1.medium.com/proxy/1*XOAHDM3eeHe9JyngqaI6xw.png" /></figure><p>サーバーのRAIDZ0（ストライプ）にGen3 NVMEドライブを接続しての最初のテストです。</p><p>遊び半分の予備テストです。10GbEの転送速度は約1200MB/sなので、これはそれをはるかに超えています。Mellanox CX5から別のCX5に接続されたDACケーブルによる、ほぼローカルなドライブ速度。</p><h3>今、超自然的な保護が必要なんだ。</h3><p>私たちには特別な保護が必要なんです。Firewallとかそういう話ではなくて…。 すべての出来事のあと、私は神に感謝しないといけないと思いました。そこで、私たちは京都の嵐山にある、電気に関連するすべてのものを守ってくれるということで有名なお寺に行きました。 SDカードになったお守りもあるんですよ。</p><figure><img alt="https://cdn-images-1.medium.com/max/750/1*M6vmTXvHEOr1JFD8r04hlQ.png" src="https://cdn-images-1.medium.com/proxy/1*M6vmTXvHEOr1JFD8r04hlQ.png" /></figure><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*EEGeiF79i5tZlhk2W8459A.png" src="https://cdn-images-1.medium.com/proxy/1*EEGeiF79i5tZlhk2W8459A.png" /></figure><p>完成したら、私たちのサーバーの近くに置いておく予定です。</p><h3>今度はソフトウェア編。</h3><p>ハードウェアは全て完成し、私の友人はLinuxでMellanoxのパフォーマンスが良いかどうか、いくつかの凝ったツールでテストしました。ピーク速度は98Gbe！悪くない！彼が何を使ったのかは分かりませんが…何かのインスタンスをたくさん使って接続を飽和させ、最初にゼロを送信し、その他は僕には技術的に理解不能でした。</p><p>ファイルシステム、ブロックサイズ、スナップショットの設定、FTPアクセス、パーミッション、ネットワークの最適化、などなど・・・。</p><p>ということで、次はOSとRAIDです。</p><p>私は派手なものは使わず、ファイルやその他いくつかのものを保存するサーバーとして使っています。ですから、TrueNAS Coreはすでに何年も前に証明されたOSであり、当時SCALEはまだベータ版だったので、最初は問題ないと思いました。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*DQnf0uZcA-KkBFNHMREMQA.png" src="https://cdn-images-1.medium.com/proxy/1*DQnf0uZcA-KkBFNHMREMQA.png" /></figure><p>TrueNAS Core UI</p><h3>RAIDZ.</h3><p>私たちはRAIDZ1（RAID5に似ている）を採用しました。ある人は、1台のドライブしか故障しないのは危険すぎると言いますが、私たちの使用例では、速度をテストした結果、RAIDZ1の方がRAIDZ2よりも優れていました… また、数時間ごとと毎日HDDで外部バックアップを取っています。</p><h3>Windowsさぁ…</h3><p>WindowsではLinuxでマルチスレッド転送で簡単に出せる速度が1スレッドに制限されています…RDMAや他のコマンドラインコピーツールを使うことはできますが、面倒ですし、Windows for Workstationsを購入したくはありませんでした。</p><p>だから、私たちの最高速度はWindowsの転送制限によって少し制限されるでしょう…とても残念です（NVMEハイポイントカードを買わなくてよかった…ふーっ…お金の無駄だったでしょう）。</p><h3>TrueNAS COREからTrueNAS SCALEへ.</h3><p>ローカルにGitLabサーバをインストールするなど、Dockerの機能を試したかったので、最近ベータ版ながらSCALEに乗り換えました。</p><p>性能は特に変わらず、最初にインストールしたベータ版ではUIに若干の問題がありましたが、最近のアップデートでほとんど修正されました…。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*sdcxkAZLH7aRxdDrveTF2Q.png" src="https://cdn-images-1.medium.com/proxy/1*sdcxkAZLH7aRxdDrveTF2Q.png" /></figure><p>TrueNAS Scale UI ( beta RC )</p><h3>最終的な結論</h3><p>良い経験でしたし、多くのことを学びました。 もう1度やれと言われればやるでしょう。でもそれは、プロセスの間支えてくれて、自信を与えてくれる仲間がいたからこそです。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*i3FTttQicxxP2NtcyoD1lA.png" src="https://cdn-images-1.medium.com/proxy/1*i3FTttQicxxP2NtcyoD1lA.png" /></figure><p>Mellanoxを冷却するためにファンを追加しました…熱くなるんです。</p><p>サーバー自体は素晴らしく、高速で、静かで、消費電力は100W程度で、以前のQnapよりずっと反応が良く、ここ数ヶ月はほとんどメンテナンスをするのを忘れていました（木を触ってお守りを撫でて…）。*「木を触る」のは悪いことが実現しないようにするためのおまじない。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*KG7qhJhv-36yMeiZzkueuQ.png" src="https://cdn-images-1.medium.com/proxy/1*KG7qhJhv-36yMeiZzkueuQ.png" /></figure><p>DYNATRON A26 2 U 最初に試したCPUクーラーはうまく機能しましたが、巨大なNoctuaに変更すると17℃も下がりました。 たとえ100Gbeで無理をしても、10Gbeで十分だと思います。2台のコンピュータが同時にアクセスすると、完全に飽和状態になります。しかし、ただ楽しむためだけに100Gbeでサーバーにアクセスし、さらにブーストをかけることができるんだ。</p><figure><img alt="https://cdn-images-1.medium.com/max/1000/1*jc5p9UuO46U6KIT2_QIteQ.png" src="https://cdn-images-1.medium.com/proxy/1*jc5p9UuO46U6KIT2_QIteQ.png" /></figure><p>お守りに見守られているまったく印象的でないださめのサーバーボックス。</p><p>この小さなサーバーは、Epyc CPUの製品名からRomeChanと名付けられた。</p><p>私たちLookDEVアーティストにとっては、1000フレームのシーケンスをコピーするのに30分も待たされると、創作意欲が削がれ、結局はお金がなくなってしまうので、今や30分の転送が1分で終わるのは非常にうれしいですね。</p><p>今日現在、数ヶ月のプロフェッショナルな使用の後、故障したのはいくつかの不良SSDだけでしたが、サムスンは問題なく交換してくれて、TrueNASのUIオプションを使用して非常にスムーズに変更することが出来ました。(その日は冷や汗で汗だくでしたけど。）</p><p>プロジェクトの総費用は約850,000円（約7,800ドル）、そして果てしない時間がかかりました・・・しかし、そのおかげで素晴らしいスペックと将来性のある拡張性が手に入ったのです。 Qnapは同じかそれ以上の費用がかかり、ポートやハードウェアのスペックに制限がある一方で、同社のQTS OSは全体的に使いやすく、オンラインサポートも充実しているので、より多くのオプションを利用することができます。</p><p>「それで、使えたの？」「はい」「100Gbeを限界まで使った？」「まったく」 でもまぁ未来で。</p><p>以上です。ちょっと冗長な説明になってしまいましたが、楽しく読んでいただけたら幸いです。みなさんもサーバーの運用、頑張ってくださいね！</p><p>ところで、もし気になられるなら、私たちの作品はこちら：</p><p>Instagram URL : <a href="https://www.instagram.com/s.t.a.b.a.t/"><strong>https://www.instagram.com/s.t.a.b.a.t/</strong></a><br>or ArtStation URL : <a href="https://www.artstation.com/stabatproj3"><strong>https://www.artstation.com/stabatproj3</strong></a><strong><br></strong>twitter: <strong>@stragalet</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be668c17404a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Server Failure, that it end up working. Custom Build Epyc, SSD & 100Gbe]]></title>
            <link>https://medium.com/@stragalet/home-server-failure-that-it-end-up-working-custom-build-epyc-ssd-100gbe-92f187ac9efe?source=rss-f4294c6b82bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/92f187ac9efe</guid>
            <category><![CDATA[truenas]]></category>
            <category><![CDATA[3dcg]]></category>
            <category><![CDATA[home-server]]></category>
            <category><![CDATA[100gbe]]></category>
            <category><![CDATA[10gbe]]></category>
            <dc:creator><![CDATA[Stragalet]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 13:09:21 GMT</pubDate>
            <atom:updated>2023-05-09T03:01:31.944Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wk0WTanCTuC5S2TQrb08Vw.png" /></figure><h3><strong>Is this a guide?</strong></h3><p>No it is not, this is our adventure on how to upgrade our Freelancer Unit server that we use at home with a custom built TrueNAS, Epyc CPU powered, ECC memory, SSD storage and some 100Gbe Mellanox CX5…</p><h3>At least the objective is clear… is it?</h3><p>We wanted to get some speedy performance ( SSD ) and MORE than 10Gbe speeds if possible while maintaining a relative big storage pool and also without emptying our bank account :D</p><h3>What do we do with all that ?</h3><p>We are a Unit of artists that we do some commercial work for publicity, videogame, anime, movies, and we are pushing strong with our personal project lately.<br>Look development requires fast pace work so waiting for files to copy is not cool.</p><h3>Our starting point</h3><p>We came from a Qnap Ts453be (it costs around 500$ at the time ) specs as follows:</p><ul><li>4x 2TB SSD Samsung EVO 860 (Sata3)</li><li>QXG-10G1T, 10Gbe NIC PCIe (Aquantia chip)</li><li>4Gb RAM ( 2x2GB)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*e-0L6-eve3Jkn2n-tJCiSQ.png" /><figcaption>The ATAT and the hidden tanuki protect the server… the Floppy is just for the retro looks ok?</figcaption></figure><p>We called our little server QuuChan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*YvjJ3ckxvCK4JU-en_KZiw.png" /><figcaption>That is the card there was inside QXG-10G1T, 10Gbe NIC PCIe (Aquantia chip)</figcaption></figure><p>The main problem with this setup was limit storage. I believe we had it running in RAID5 for priorizing speed and storage, and we used 2 external backups in spinning rust, so the total space was less than 6GB, and the buss for the PCIe NIC was limited to a “miserable” Gen2 x2, so the max performance we can get on the network was around 700MB/s not slow, but we wanted to improve.</p><h3>First plan.</h3><p>We wanted to upgrade with another Qnap for safety reasons, custom builds could be a hassle to maintain, bugs, errors problems… and we are, in the end, artists that don’t want to care about all that stuff.</p><p>So we searched and found out that we wanted something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*MnaLeEldKneywGrGNbzH9g.png" /></figure><p>We don’t needed the full HD type bay, as we would like to fill it with SSD but well, the plan changed fast anyways soo...</p><h3>Change of plans.</h3><p>We were already more or less convinced with the pricey Qnap, because the risk of a “custom build” was too much.</p><p>But a “wild friend appeared” with lots of experience in the server field working for really big companies… so it started to recommend stuff, and from one day to another, suddenly we were convinced to, at least, give a try to the custom built server.</p><h3>New plan!</h3><p>The new plan consisted in that with almost for the same price as the Qnap, we get more storage, more speed, more CPU power! all good news right? Wait and see….</p><p>This new plan started an endeavour that effectively lasted for some months, I don’t even remember precisely how many…, I don’t even want to remember…</p><h3>First things first.</h3><p>Lets start making a list of what we want, or what we need, because… sometimes is not the same, right? I mean I might want all PCIe Gen4 NVME 4TB drives but… do I need it? would I even be able to squeeze the juice from it?<br>So after lots of investigation we settled on some Epyc CPU (8cores ), some ECC memory 64GB, some SSD samsung EVO 860 4TB… and of course the rest of stuff that we might need mother board, power supply and so on… and we gave up on some fancy stuff like the NVME PCIe Gen4 cards that HighPoint is selling… was way to expensive parts anyways…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*xA5KokwicTGPsHGYcBo1sg.png" /><figcaption>isn&#39;t it beautiful?…</figcaption></figure><p>Look at this transfer speed!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*Yxc8nF5JEtL-VoFs2HynWw.png" /><figcaption>look at this speeds!!</figcaption></figure><p>So I force myself to forget about this beast and went back to the real world.</p><h3>Shopping Time!</h3><p>Oh boy… was C*vid times and the market was crazy… we were forced to buy parts in different countries, with lots of delays and even we were forced to upgrade the CPU because we couldn’t find the one we wanted… and the price was double from RRP… Still, the price was below Qnap Server full equipped and the possibility of expansion and raw power was a lot more.</p><p>The shopping went like this, you will see that some parts are upgraded from the previous mention:</p><ul><li>AMD EPYC 7352<br>24c 128 PCIe Lanes, 155Watt 128MB cache around 222.000¥ (2.000$ aprox ) at the time (totally overkill CPU but there weren’t any other we could find…)<br>We really wanted the EPYC 7252 8c/16th for around 88.000¥ (700$ aprox)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*s5dqasi8Ca79jNFLppSHPw.png" /></figure><ul><li>Asrock Rack ROMED8–2T<br>A beast mother board with 7 PCIe slots full Gen4x16 each. We didn’t need this much but yeah lets go full crazy with this. Price difference with the smaller ones weren&#39;t that much, and maybe in the future we can plug some HighPoint NVME full speed cards… aaaahhh~ (dreaming is free!)<br>This MoBo was around 90.000¥ (800$aprox)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*HvaH-RjLwkPItF5pj3YJDA.png" /><figcaption>That is lots of expansion slots…</figcaption></figure><ul><li>Samsung EVO860 6x4TB ( SATA3 yeah… the slow SATA3… sniff snif)<br>People will say, why you go with EVO, and not PRO grade, or some Kioxia enterprise… well well well… I just trust my friend ok? remember, he is a pro? :)<br>So we will have around 22TB of raw space in the main volume without RAID ( although we will use RAID in the end ) Plus 4x 2TB SSD EVO 860 that we already had for libraries, assets, system stuff and so.<br>So around 22TB + 7.2TB raw storage. ( I’m discounting a bit because 2TB drives usually lets you write around 1.8 ) <br>Hopefully adding lots of slow SATA3 SSD drives will gives a boost in Read/Write performance.<br>We were veeeery lucky with the SSD drives and we found an offer for 40.000¥ each ( 350$ for 4TB! )<br>2 x 970 EVO plus for SO redundancy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*O1gMlRWKyaQWuREp3AmHRA.png" /><figcaption>an expensive pile of of SSD</figcaption></figure><ul><li>128 GB of ECC ram. TrueNAS uses it as cache for data so it acts like a booster, the more the better. Also ECC was important for stability of the system ( was actually cheaper than non ECC )</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*fvdekGoyloz5r_NlCyJnvQ.png" /><figcaption>well that is some amount of RAM but we are used… we are designers so we devour RAM.</figcaption></figure><ul><li>Noctua Coolers “for the win”, silent stuff.</li><li>Power supply Seasonic Focus 800Watt efficiency.</li><li>We didn’t need graphic card as it comes built in in the mother board! woah! that is convenient.</li><li>And my favourite IcyDock, we changed the fans for Noctuas though.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9oajwLKHutbfqDBkSze1Pg.png" /><figcaption>Look at this beauty! can fit 8 SSD SATA3 drives.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IRdcfT3PsCh01eQHZYukw.png" /><figcaption>Look how compact this is!! it is a 5.25 inch bay!</figcaption></figure><ul><li>Later on we had to purchase some second hand expansion PCIe because the mother board didn’t have enough SATA connectors. LSI 9217–8i SAS2308 6GB HBA/RAIDCARD</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*_W83vkzr3YVtBUOEFiiK2A.png" /></figure><ul><li>For the Box we end up using an old ANTEC we had… yeah.. nothing fancy.</li></ul><p>By the way, you can’t use that two ports on the mother board for SATA drives, even if you buy an extensor / adaptor. I tried… didn’t work, seems they are just for some fancy NVME PCIe Drives, I learned that the hard way so you don’t have to. :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*UMf9NhgzttXVCe_5V_6Uiw.png" /></figure><h3>NICs… o boy what a trip.</h3><p>You can skip this part, but is the funny one…. “<strong>NIC working, FINALLY!</strong>” is the next title you need to jump to if you want to skip :)</p><p>In the previous post I forgot to mention one important thing… what about the NICs!? I said 100Gbe!! where are they?.</p><p>We had to investigate what all that QSFP28 connectors meant, what the cables needed to be… lets go 40Gbe? 100Gbe?<br>Can we connect 2 computers with it directly? without a switch (100Gbe switches are very expensive) can we use one 100Gbe NIC and split it in 4 of 25Gbe ?<br>Too many questions, we could solve some, others are still blurry…</p><p>Well This was more a test so we went on anyways.<br>I really wanted to try 100Gbe, so we would try to connect at least 1 PC at 100Gbe directly to the server and the rest will use the 10Gbe switch and RJ45 stuff we already had set up.<br>Searched on eBay and found 3 Mellanox Connect CX5 100Gbe NICs at good price, 750$ for all 3 aprox.<br>And also got a 100Gbe copper cable (DAC), super thick and short at Fs.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*XT-Gq3kABLZmb9o13jsGgA.png" /><figcaption>The three musketeers, 100Gbe Mellanox CX5</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*9o1sfx7oq10E3Sxq7JW60A.png" /><figcaption>DAC cable from the people at FS.com</figcaption></figure><p>After some time we got them and… surprise surprise only one NIC worked… what a fail!… we can’t test any speed with them if I only have one working! <br>I’ve never used Linux in a serious way before, I didn’t even know how to list a directory, really…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*jDB29GT1hlmMnE8T-2ulDw.png" /><figcaption>MFE_NO_FLASH_DETECTED</figcaption></figure><p>I was getting again and again this error every time I tried to flash the NIC.. somehow was recognized by the system but wouldn’t work.<br>I know I wasn’t doing something wrong because one of them, exactly same model worked, well, or at least was detected properly by the system, we couldn’t test it anyways…<br>I end up requesting a refund for the two non working cards.<br>I guess… back to the 10Gbe plan then.</p><h3>Surrender!? never!!</h3><p>I made my mind to go back to 10Gbe when, after some days…, suddenly that message came to my mind again… MFE_NO_FLASH_DETECTED…and I was inspecting the cards over my table when something hit me!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*TgEkTj6GkT8Tewmw5M2drQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*Oyr0HLaNfisB7keRFDzXhQ.png" /><figcaption>This is the working NIC on the left, and the not working NIC on the right.</figcaption></figure><p>Left, working NIC, right not working NIC… of course Linux can’t find the FLASH memory,… it is NOT there!!!</p><p>Well my theory is that, possibly this was on a very large company and they had their custom BIOS for the cards, so how to avoid that the other companies use your proprietary BIOS? yeah… destroy the chip. Well that is my guess.. I really don’t know.</p><p>Both of the broken NICs had the same problem of a missing chip… that had been pulled out in a less than delicate way.</p><p>So the next question was… can something be done about it?</p><h3>Back to research…</h3><p>At this point my partner already hated me so much, every time something deviated we had to investigate on internet for hours…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*FUR2xDHPAkR5KFlPDvo01Q.png" /><figcaption>The chip!</figcaption></figure><p>But we got the refund money for the NICs… what if I can buy a soldering kit and the chip (5 of them 5$ A windbond 25q128FVSG) and fix it?</p><p>We then asked in some specialist forums and the people was kind, but realistic, “it is a very complicated procedure, need to scrap the board.. find the connectors make a bridge… and if you succeed and don’t burn anything else on the process possibly you won’t be able to flash the chip anyways… as that chips usually are programmed before soldering with a special tool “</p><p>Well that didn’t give me much room for hope…</p><h3>We didn’t came all this way for nothing… now we play!</h3><p>So I had the refund money back… and we contacted some japanese shop that was specialized in this kind of soldering…the price was around 20.000¥ for both cards If I can recall correctly.<br>so… we went for it and asked for repair.</p><h3>Will it work after all?</h3><p>Well we got the cards back and had a very fine and professional fix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*p-l1TlTbYTNoSHywm5kQlg.png" /><figcaption>It had some protective glue or something around…</figcaption></figure><p>I was personally supper excited! this time will work!! but long story short. It didn’t…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKP0O597T3TP98wSBvfYKw.png" /><figcaption>No valid FS4 image found.</figcaption></figure><p>New error appeared…. Burning FS4 image failed… No valid FS4 image found…<br>Again I’m a complete noob in Linux so… I guess we are doomed.</p><h3>The power of Linux.</h3><p>But after some more research… again… found that the reason had to do with Linux trying to check for the previous BIOS before installing the new one. I just needed to stop Linux from checking for the previous BIOS and… there is actually function that does exactly that!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*MHkXH_aE2uSnxgbSx_jvLQ.png" /></figure><p>Oh boy…Oh boy…</p><h3>NIC working, FINALLY!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*Pu3OMG93Evm3gp7jxT8ePQ.png" /></figure><p>That is windows, and that is 2 Mellanox! :D<br>It worked… I could flash the BIOS and Windows recognized the card without trouble either.</p><p>I had to do some extra tweaking&#39;s in Linux still because the MAC address was set to 0.0.0.0 in both of the Cards so there could be a conflict, but felt easy compared to the rest we’ve been through, I’m starting to get <em>comfy</em> in Linux after all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*XOAHDM3eeHe9JyngqaI6xw.png" /><figcaption>A first test between a Gen3 NVME drive to the RAIDZ0 (stripe) in the server.</figcaption></figure><p>A preliminary test just for fun. For comparison 10Gbe would give around 1200MB/s transfer speed so this is well beyond that. Almost local drive speed through a DAC cable connected from a Mellanox CX5 to a another CX5.</p><h3>We need supernatural protection now.</h3><p>We need extra protection, and I’m not talking about a Firewall or something like that… after all that happened I felt like I need to give thanks to the gods so we went to a temple in Arashiyama ( Kyoto ) that is famous to give protection to all electrically related stuff… they even have the omamori (protective talisman) in SD card format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*M6vmTXvHEOr1JFD8r04hlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*EEGeiF79i5tZlhk2W8459A.png" /><figcaption>Arashiyama Omamori</figcaption></figure><p>This is gonna stay close by our server once is completed.</p><h3>Now Software part.</h3><p>Now that the hardware was all completed, and my friend tested with some fancy tools in Linux to check if the performance of the Mellanox was good,<br>We got a peak transfer of 98Gbe, not bad! No idea what he used… lots of instances of something… to saturate the connection, first sending zeroes, and the with other stuff, way too technical for me.</p><p>That 98Gbe is the connection speed not the Raid access speed, just to clarify.</p><p>I won’t go on very specifics because it can be quite dense here, file system, block size, snapshot setup, FTP access, permissions, Network optimization, and so on…<br>So I’ll just comment briefly each of the steps.</p><p>So next was OS and RAID.</p><h3>TrueNAS CORE.</h3><p>I don’t use fancy stuff, just server for files and few things more.. so TrueNAS Core seemed fine at first because is a proved OS already with some years… and SCALE at the time was in Beta still.<br>Installing it was easy and straight forward, no problems at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQnf0uZcA-KkBFNHMREMQA.png" /><figcaption>TrueNAS Core UI</figcaption></figure><h3>RAIDZ.</h3><p>We went for RAIDZ1 ( similar to RAID5 ), some people would say is too risky, just one drive failure tolerance, but after testing the speed RAIDZ1 performed better than RAIDZ2 with our use case… and we also have extra external backups every some hours and every day in spinning rust.<br>And SSD fail or don’t fail… but are quite stable over all.</p><h3>Windows Sucks.</h3><p>We soon realized that windows file transfer system sucks… the speeds we could get easily in Linux with multi thread transfers in Windows are capped to 1 thread… you can use RDMA and other command line copy tools but is a hassle, and we didn’t want to purchase Windows for Workstations.</p><p>So our top speed really will be a bit limited by windows limited transfers… a big shame ( and I’m happy we didn’t buy the NVME High Point card now… <em>phew!</em>… would have been a waste of money )</p><h3>TrueNAS CORE to TrueNAS SCALE.</h3><p>We recently changed to SCALE while it was on beta because we wanted to try some of the Docker functions it had to install a local GitLab server for instance.. and so on.</p><p>The performance it didn’t change meaningfully, with the first version of the beta we installed there was some minor issues in the UI but recent updates fixed most of it…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdcxkAZLH7aRxdDrveTF2Q.png" /><figcaption>TrueNAS Scale UI ( beta RC )</figcaption></figure><h3>Final Conclusion.</h3><p>Was a good experience, learnt a lot. I even would do it again! now that I learnt all that stuff, but only because I had a colleague that was supporting and giving me confidence in the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*i3FTttQicxxP2NtcyoD1lA.png" /><figcaption>Extra fans for cooling the Mellanox… it runs hot.</figcaption></figure><p>The server itself is awesome, is fast, silent very very quiet, power consumptions is around 100Watt, much more responsive than the old Qnap, and almost I forgot to do maintenance for months now, (touch wood and the Omamori Talisman)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*KG7qhJhv-36yMeiZzkueuQ.png" /><figcaption>DYNATRON A26 2 U First CPU cooler we tried, worked fine but when we changed for the huge Noctua it dropped like 17º Celsius.</figcaption></figure><p>So I would say, that even if I went the hard way, tried to push it a bit too much with the 100Gbe, I think 10Gbe was good enough.. it gets completely saturated with 2 computers accessing at same time though, possibly 25Gbe was sweet spot.<br>But just for fun now I can access my server at 100Gbe and get that extra boost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*jc5p9UuO46U6KIT2_QIteQ.png" /><figcaption>Omamori protecting and ugly and non impressive server Box.</figcaption></figure><p>The little server it is called RomeChan, because Epyc CPU product name.</p><p>For us, look developer artists, waiting 30 minutes to copy a 1000 frames sequence can be very upsetting, cutting the mood of creation and that after all, make us loose money, so I’m very happy that now that 30 minutes transfer is done in 1 minute.</p><p>At as for today, after several months of professional use, the only thing that failed was a couple of defective SSD that Samsung replaced without trouble, and we could do the change using TrueNAS UI options in a very smooth way. (I was sweating that day though… a lot)</p><p>The overall cost of the project was around 850.000¥ (7.800$ aprox ) and endless hours…<br>But that got us impressive specs, and future proof expandability. <br>I still think though that if you don’t want the hassle Qnap is a very good option, but certainly you will need to spend similar or more, and will be more limited with ports and hardware specs while giving you more options to play in their QTS OS as is a bit more user friendly overall and has nice online support.</p><p>So did it work? yes, did we put 100Gbe to the limit? not even close… but maybe in the future.</p><p>That is all! I know I’m a bit verbose when explaining but hopefully was a fun read. Good luck with your servers!</p><p>By the way If you like you can check <strong>our works at:</strong></p><p>Project Instagram URL : <a href="https://www.instagram.com/s.t.a.b.a.t/"><strong>https://www.instagram.com/s.t.a.b.a.t/</strong></a><strong><br></strong>Personal Instagram URL : <a href="https://www.instagram.com/s.t.a.b.a.t/"><strong>https://www.instagram.com/stragalet/</strong></a><strong><br></strong>Twitter: <strong>@stragalet</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92f187ac9efe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>