Bunz.io coming soon..
Bunz.io coming soon..
So I decided to shift focus from VR, and instead work on my software development project for TSA Nationals 2017. Since I already am doing some software development, I might as well use what I already have as my project. So here is SVG Exporter:
It’s an addon for Autodesk Maya 2017, a 3D modeling software. In Maya, you can use certain tools to create “curves”, essentially 2D curved lines that can be any drawing or whatever you want. You can also convert parts of 3D objects to curves. My tool takes these curves, and converts them to a file format called “SVG”, this format can be read by many other industry programs such as Adobe Illustrator and in the end, can be used to cut out any shape using a laser cutter.
My tool is simple to use, select any curves made in Maya, select where to export, change some settings, and bam: you have an .svg file ready to cut out!
The reason I decided to make this is because I am extremely proficient with Autodesk Maya but not other software such as Illustrator, and I needed to cut something out for class. My tool is a middleman that lets me use my Maya skills and takes the hard work into actually cutting it out.
Also, Maya is missing many essential features that are required in 2017 and beyond. I plan to add more features as custom plugins so that they may be added as standards to Maya in the future.
Here is what a curve is:
And my tool spits this out:
(Except the lines are super thin)
This red format allows the laser cutter to follow it presicely and cut out the exact shape of my name!
This is an example of a simple final example of what could be done with my tool:
But the possibilites are endless 😀
An installer is coming soon that will auto add it to your Maya shelf. Check my blog or Github in the future to find it 🙂
Purpose: Begin work on a new VR game idea surrounding boats and pirates and stuff.
Project Progression Summary & Reflection: Making this VR game is a big tackle for me as its only my second VR project, but I think its going magnificent so far. Modeling the raft and wheel has gone great, and they look exactly like my concept. Also, the boat physics combined with VR are super realistic and function exactly like I wanted them to. I also wanted to make it so you can grab the steering wheel and steer the boat, but its still pretty buggy and unfinished due to some coding errors. Overall, I am about 5% done with this game but its already a playable demo of some amazing sea physics and feels super cool when you actually play it IRL.
For modeling the raft and wheel, I used Autodesk Maya 2017, Student Edition. I got my inspiration from a simple online game called http://krew.io. It consists of a somewhat low poly render of two logs and some planks, held by metal. Its literally a raft. Lookee:
To texture the raft, I used Paint.net (http://getpaint.net). Its easier for me as I have much more experience with it than Photoshop, and its overall faster. All I had to do was go in maya to the UV Editor and go to UV -> UV Snapshot, and then export it as PNG, and edit that file. The final texture looks like this:
Its my first time UVing something and it turned out really good! I followed a similar process to make a steering wheel, which was much easier. Just circles and the UV was also pretty much circles. I got my inspiration from a Google image seen in the background 😛
Ironically, I created my own texture for the wood.
Lastly, I used Unity3D Game engine combined with the SteamVR plugin to put it all together. My game so far is pretty simple SteamVR assets for the camera and hands, as well as some coding to make the raft float realistically. The water is a default Unity3D asset. This is what it looks like so far from an outside view. You can just float around and even rotate the raft using the wheel but thats where it gets buggy.
In conclusion, VR is super hard, but super rewarding. I hope to keep working and finishing this game fully as its super cool, and I have just entered the brink of what is possible with VR.
For my game I need a phone so that I can create a text messaging scene, so I just replicated my phone quickly. I used 3 reference images and basic UV imaging using Paint.net… and it looks pretty good! Check it out:
Let me know if you would like the model, I would be glad to share it!
2016 has been a wild year, so I wanted to share what I accomplished so far; in chronological order..
More to come until new years…
Do you have a laser cutter?
Are you good at 3D Modeling in Autodesk Maya?
If you answered yes, then Maya To SVG is the perfect tool for you!!
Maya To SVG is a simple script I made for Autodesk Maya that will let you export any curves into cuttable SVG format for a laser printer. Is is in major version 1 right now so it is not the prettiest, but it has an installer and is pretty much usable 100%. It looks something like this:
To use it just select a curve and then put in your width, height of the board you will cut, choose your units, choose if you are going to fit to page or otherwise put a scale ratio, and press export. Whichever directory you choose will then contain an SVG file which you can open in Illustrator, or straight in your laser cutter software and cut it out on any material!
To make life simple, I created an installer for Maya To SVG which will put it straight onto your Maya shelf. All you have to do is download the corresponding installer for your OS here: https://github.com/Stasadance/MayaToSVG/releases/latest, No admin required! Then just run the exe or .app based on your OS and it should look like this:
All you have to do is click install, and when its done it will say 100%! If you experience any problems, please leave a comment or DM me on twitter and I will help you ASAP 🙂
Recently one of my teachers asked me to create a program that will let standard users on his computers install fonts for their artistic needs. Sounds simple enough.. right? The OS at hand was Windows 7 Enterprise. I had an idea in mind to edit the registry or add a Windows policy that will let me do such a thing, so I created a batch script. The first thing I needed to do was get admin rights. Hmm….
Thanks to Eneerge @ https://sites.google.com/site/eneerge/scripts/batchgotadmin, I was able to implement a simple vbs script that will execute my whole batch script as an administrator. It looks something like this..
:RequestAdminElevation FilePath %* || goto:eof setlocal ENABLEDELAYEDEXPANSION & set "_FilePath=%~1" if NOT EXIST "!_FilePath!" (echo/Read RequestAdminElevation usage information) set "_FN=_%~ns1" & echo/%TEMP%| findstr /C:"(" >nul && (echo/ERROR: %%TEMP%% path can not contain parenthesis &pause &endlocal &fc;: 2>nul & goto:eof) set _FN=%_FN:(=% set _vbspath="%temp:~%\%_FN:)=%.vbs" & set "_batpath=%temp:~%\%_FN:)=%.bat" fltmc >nul 2>&1 || goto :_getElevation (if exist %_vbspath% ( del %_vbspath% )) & (if exist %_batpath% ( del %_batpath% )) endlocal & CD /D "%~dp1" & ver >nul & goto:eof :_getElevation echo/Requesting elevation... echo/Set UAC = CreateObject^("Shell.Application"^) > %_vbspath% || (echo/&echo/Unable to create %_vbspath% & endlocal &md; 2>nul &goto:eof) echo/UAC.ShellExecute "%_batpath%", "", "", "runas", 1 >> %_vbspath% & echo/wscript.Quit(1)>> %_vbspath% echo/@%* > "%_batpath%" || (echo/&echo/Unable to create %_batpath% & endlocal &md; 2>nul &goto:eof) [email protected] %%errorlevel%%==9009 (echo/^&echo/Admin user could not read the batch file. If running from a mapped drive or UNC path, check if Admin user can read it.)^&echo/^& @if %%errorlevel%% NEQ 0 pause >> "%_batpath%" %_vbspath% && (echo/&echo/Failed to run VBscript %_vbspath% &endlocal &md; 2>nul & goto:eof) echo/&echo/Elevation was requested on a new CMD window &endlocal &fc;: 2>nul & goto:eof
This huge script is put at the bottom or invoked using call and then putting
call :RequestAdminElevation "%~dpfs0" %* || goto:eof anywhere before your admin-requiring code begins.
To allow regular users (conveniently named Users in Windows) to add fonts, the Users group in Windows just has to own the fonts folder in everyway possible. I accomplished this with a set of commands that require admin:
attrib -r -s C:\Windows\Fonts takeown /f C:\Windows\Fonts /r /d n cacls C:\Windows\Fonts /e /t /g Users:C cacls C:\Windows\System32\FNTCACHE.DAT /e /t /g Users:C
But this alone was not enough. There was one more step. The registry itself “owns” the Fonts folder in Windows, so you have to give the Users group permissions there too. Batch alone cannot do this.
With the help of a tool called SetACL, I was able to add this line
SetACL.exe -on "hklm\Software\Microsoft\Windows NT\CurrentVersion\Fonts" -ot reg -actn ace -ace "n:Users;p:full" to give the Users group full permissions over the registry key that handles Fonts. A reboot later.. and anyone could easily add their own awesome fonts!