Difference between revisions of "Tutorial: Creating Unity Assets with SOLIDWORKS"

From CEED Wiki
Jump to navigation Jump to search
Line 1: Line 1:
  
== Setting up the OS on a Raspberry Pi ==
+
==Exporting SOLIDWORKS Assemblies==
When you first get a Rasperry Pi you need to setup the operating system on a micro SD card. You will download the ZIP for the operating system and either copy over the files to the SD card (NOOBS) or use an imager to do the installation (Raspbian).
+
With SOLIDWORKS, open an assembly file. Under ''File'', select ''Save As'' and under ''Save as type'', select .STL. Afterwards, press the ''Options'' button, and make sure that the option ''Save all components of an assembly in a single file'' is unchecked. You should now have a .STL file for each assembly part. Place all the .STL files into a single folder.  
  
Here is a guide to help set up: https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up
+
==Importing .STL files into Blender ==
 
+
Open Blender, and delete the ''Camera, Cube,'' and ''Light'' on the right-hand side of the page by right-clicking on them, and pressing ''Delete''. Now, from the top left corner, press ''File, Import'' and ''Stl''. Navigate towards the folder that contains your .STL files. Once in the folder, CTRL + left-click all the .STL files, and finally click on ''Import STL.'' Once imported, the assembly will no longer have the textures or material appearances that were assigned to it in SOLIDWORKS. However, it is possible to assign new colors and/or textures to all the imported components using Blender.  
Here is the official operating system with an installation guide: https://www.raspberrypi.org/downloads/raspbian/
+
==Exporting to Unity==
 
+
In Blender, from the top left corner, press ''File,'' and then ''Save''. Simply drag and drop the .blend file into Unity, where the assembly can now be used as an asset. If you wish to modify the asset, such as change its size or its appearance, simply open the .blend file and modify it using Blender.
== Connecting to wifi networks on campus ==
 
Connecting to wifi on campus can be difficult. You can connect to your phone or laptop if you turn on a hotspot, you can connect to eduroam by configuring it in the Pi or you can connect to an IOT (Internet Of Things) network called UOdevices by providing your Pi's MAC address.
 
 
 
=== Hotspot ===
 
Setting up a hotspot with a PC: https://www.howtogeek.com/214080/how-to-turn-your-windows-pc-into-a-wi-fi-hotspot/
 
 
 
Setting up a hotspot with a MAC: https://www.howtogeek.com/214053/how-to-turn-your-mac-into-a-wi-fi-hotspot/
 
 
 
Setting up a hotspot with a smart phone: https://www.pcmag.com/how-to/how-to-turn-your-phone-into-a-wi-fi-hotspot
 
 
 
=== Eduroam ===
 
You will need to go into the network settings of the Pi to configure the eduroam parameters.
 
 
 
# Navigate to the folder etc/wpa_supplicant/ (cd /etc/wpa_supplicant/).
 
# Open the wpa_supplicant.conf file (sudo nano wpa_supplicant.conf).
 
# Add the lines below to the file, then save and close it.
 
# You may need to restart the Pi for the changes to take effect
 
 
 
network={
 
 
 
        ssid="eduroam"
 
 
 
        priority=1
 
 
 
        proto=RSN
 
 
 
        key_mgmt=WPA-EAP
 
 
 
        pairwise=CCMP
 
 
 
        auth_alg=OPEN
 
 
 
        eap=PEAP
 
 
 
        identity="USERNAME" (your email)
 
 
 
        password="PASSWORD" (your uozone password)
 
 
 
}
 
 
 
=== UOdevices ===
 
This network covers STEM, CBY and SITE.
 
 
 
# You will need the MAC address of the Pi so that your device can be registered and approved to use the UOdevices network, here is how: https://www.raspberrypi-spy.co.uk/2012/06/finding-the-mac-address-of-a-raspberry-pi/
 
# Once you have the MAC, please send it to makerlab@uottawa.ca so it can be given to our IT department.
 
# When the MAC has been added, you will be able to connect to it in the same way as the Eduroam network with the ssid UOdevices and makerlab@uottawa.ca will also be able to give you the password.
 

Revision as of 00:22, 23 June 2020

Exporting SOLIDWORKS Assemblies

With SOLIDWORKS, open an assembly file. Under File, select Save As and under Save as type, select .STL. Afterwards, press the Options button, and make sure that the option Save all components of an assembly in a single file is unchecked. You should now have a .STL file for each assembly part. Place all the .STL files into a single folder.

Importing .STL files into Blender

Open Blender, and delete the Camera, Cube, and Light on the right-hand side of the page by right-clicking on them, and pressing Delete. Now, from the top left corner, press File, Import and Stl. Navigate towards the folder that contains your .STL files. Once in the folder, CTRL + left-click all the .STL files, and finally click on Import STL. Once imported, the assembly will no longer have the textures or material appearances that were assigned to it in SOLIDWORKS. However, it is possible to assign new colors and/or textures to all the imported components using Blender.

Exporting to Unity

In Blender, from the top left corner, press File, and then Save. Simply drag and drop the .blend file into Unity, where the assembly can now be used as an asset. If you wish to modify the asset, such as change its size or its appearance, simply open the .blend file and modify it using Blender.