Advertisement
CloneTrooper1019

Roblox Source Engine Model Guide

Oct 5th, 2014
2,463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. A GUIDE TO PORTING ROBLOX JUNK INTO GARRY'S MOD
  2. By CloneTrooper1019
  3.  
  4. You'll probably need the following stuff:
  5.  
  6. Blender (v2.66 or later):
  7. http://www.blender.org/
  8.  
  9. Blender Source Tools (Install it as a plugin. There should be a guide on that page somewhere)
  10. https://developer.valvesoftware.com/wiki/Blender_Source_Tools
  11.  
  12. Crowbar:
  13. http://steamcommunity.com/groups/CrowbarTool/discussions/0/540743212934593209/
  14.  
  15. VTFEdit:
  16. http://nemesis.thewavelength.net/index.php?c=178
  17.  
  18. ----------------------------------------------------------------------------------------------------------------------------
  19. // BLENDER STUFF //
  20.  
  21. * Open up Blender
  22. * Hit A twice, and press the Delete key (to get rid of the useless stuff)
  23.  
  24. * Import your model into Blender (File - Import - Wavefront (obj))
  25. * Right click on a part in your model (If your model is just a single part, skip this part)
  26. * Press A to select everything else, and then hit Ctrl + J
  27.  
  28. * Go into Edit Mode
  29. * Hit A, select the Axis Tool, and move the stuff to the center of your model's origin ( that yellow dot thing )
  30. * Move your model to the center of the grid stuff
  31. * Select the scale tool, Drag on an axis, and the resize thing should appear in the bottom left
  32. * From there, make sure all constraints are checked, and set the X/Y/Z values to a number around 8-12 (Source uses a larger scale)
  33.  
  34. * If your model uses multiple textures, its IMPORTANT that you convert it into a single texture.
  35. * Unfortunately it is beyond me to explain how to do this, so if you are in this situation, watch this video (as it helped me a lot): https://www.youtube.com/watch?v=Tj-S5QAac3U
  36.  
  37. * At the right hand side of the screen under the scene hierarchy, there should be a bunch of buttons.
  38. * The one on the very left being the render settings (it looks like a camera).
  39. * Two buttons to the right of that, should be a button that looks like a light with a grey sphere and a blue cylinder.
  40. * If you installed the Blender Source Engine tools correctly, scrolling down to the bottom should reveal something that says
  41. Source Engine Export.
  42. * Create a new folder on your desktop. You will use this to host all of the files and stuff.
  43. * When you see the Source Engine Export, click it (if its not open already) and set the export path to the folder you created
  44. * Where it says "Export Format" make sure its set to SMD (as I'm not sure if DMX works with this).
  45. * Finally, go to File - Export, and select Source Engine (.smd .vtx .dmx)
  46.  
  47. // COMPILING AND STUFF //
  48.  
  49. * If your model has a texture, make sure you save it as a .TGA file in the folder that you exported your smd file.
  50. * Open up the smd file using notepad, and Hit Ctrl + H. Make sure you replace whatever image is present (for example, House.png or Handle.png) with the name of your tga file (Its important that no extensions are present to prevent issues)
  51.  
  52. * Now here's where the fun begins. In order to actually compile this smd file into a .mdl file to be used in source, you need to
  53. write a QC file in NotePad.
  54. * A QC file is a script which controls the process of compiling SMDs into a binary model that can be loaded into a game.
  55. * Luckily, its not too hard.
  56.  
  57. * The first thing you need to do is open Notepad, and paste the contents of the following pastebin url into it:
  58. * http://pastebin.com/1C23zeQJ
  59. * Once you paste it, save it in the folder where you exported your model as "idle.smd"
  60. * This file will be used to make your prop a static non-animated prop.
  61. * If you wanted your model to be animated, thats a WHOLEEEEE DIFFERENT story and unfortunately I can't help you with that. Sorry ;)
  62. * Now we're going to write the QC file. Below I have provided an example QC file. If you'd like to know more information on some of these commands, feel free to check this out: https://developer.valvesoftware.com/wiki/QC
  63.  
  64. * Make sure to change things accordingly based on how I labeled them.
  65. * When the model is compiled, it will be located in a newly created roblox folder found in the model folder, found within the games files. The model will search in materials\models\roblox for the vmt file and vtf file (the textures for your model) but we'll get to that in a moment.
  66.  
  67. * Here is the example file: http://pastebin.com/5wAY7qn0
  68.  
  69. * Once you have adjusted everything to your needs, save it as a .qc file in the folder you exported your model. Your model is now ready to compile!
  70.  
  71. * Open up the Crowbar application, and select the Compiler tab.
  72. * Set the Game you want to compile for (preferrably Gmod for testing) and select the QC file that you just created.
  73. * Once that is all set, press the Compile QC File button located at the bottom of Crowbar.
  74. * Congratulations! You have successfully ported a roblox model into the source engine.
  75.  
  76. // TEXTURING THE MODEL
  77.  
  78. * Open up VTFEdit
  79. * Import the texture map of your character
  80. * Open the directory of the game you compiled the model to.
  81. * Go the materials folder, and open the models folder inside of the materials folder
  82. * If you haven't created a folder called roblox in this folder (or whatever you set your directory), do so now
  83. * Depending on what you named the tga file in the smd file, you need to save your imported image as that name in the folder. Source will search for it based on the name of the model's material.
  84. * If all went well, your model should be textured in-game now. If not, there are better guides online probably.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement