Dasoccerguy Posted February 22, 2015 Share Posted February 22, 2015 (edited) KSPBlender - v0.95(ish) April 7 UpdateGithub Repo(imgur link if the picture doesn't show up) Here are the reddit posts I've made for anyone who's curious:http://www.reddit.com/r/KerbalSpaceProgram/comments/2qfye6/wip_ksp_in_blender/http://www.reddit.com/r/KerbalSpaceProgram/comments/2qmb25/wip_ksp_in_blender_update_1/http://www.reddit.com/r/KerbalSpaceProgram/comments/2rcnxn/wip_ksp_in_blender_update_2/http://www.reddit.com/r/KerbalSpaceProgram/comments/2s5d1p/wip_ksp_in_blender_update_3_beta_than_befo/http://www.reddit.com/r/KerbalSpaceProgram/comments/2wye1v/wip_ksp_in_blender_update_4_still_alive/http://www.reddit.com/r/KerbalSpaceProgram/comments/2xkcy7/addon_kspblender_update_5_much_better/http://www.reddit.com/r/KerbalSpaceProgram/comments/31ssje/addon_kspblender_update_6_all_the_mods/As well as the Trello page where I've been doing project organization:https://trello.com/b/ffCPkGyM/kspblenderWhat it doesMy project would be impossible without taniwha-qf's .mu importer addon for Blender (https://github.com/taniwha-qf/io_object_mu). It heavily relies on this..craft file is loaded and parsed to find the locations and rotations of every part in the craft.The importer is called for every unique part (a crucial speedup over importing for every part).Parts are cleaned up by hiding collision meshes and things like that, then given a bounding sphere for manipulation.Parts are grouped into stages and can then be selected by stage.Materials are reworked to function in the Cycles renderer, Blender's physically-based render that (in my opinion) gives much better results.Animation data is time-shifted so that parts can be deployed and undeployed as desired.Additionally I have added a custom menu pulled up by pressing K in object mode. I'm open to any suggestions for more features for this menu."Select Ship" (based on the current selection, for moving everything around)"Select Stage" (if you wanted to break down the ship)"Select All of This Part" (like if you want to delete all the struts)"Toggle Deploy" (to go between the deployed and undeployed positions... getting reworked soon)"Make One Mesh" (useful for quickly applying one material to the whole ship)"Make 3D Printable" (almost works... makes the ship a unified, manifold mesh)"Toggle Editable" (to make the actual ship unselectable, only the spheres (more like how it is in game))"Delete Part" (use this to delete stuff... selecting a bounding sphere and pressing delete won't get it all)I'm still working on several parts of the project to bring extra functions.Working on a kerbal, who you can see on the Trello page.I've also spent some time making an alternative model set that would give you a geodesic, "low-poly" look if you want that instead.I put some effort into making the model 3D-printable, but it's not as easy as it might seem.I will be reworking the animation toggle with Blender "Drivers," a cool feature I recently learned about.I'm going to add a streamlined process for creating panaround gifs and other simple renders.Like you, some of my coolest creations were assembled in orbit and not the VAB. I've found a way to import them from space... I just need some time to sit down and write the code.Why you should careI can't make you care if you don't want to , but I'm very excited about this project. It enables you to render any ship from any angle, with any lighting, with any setting. You could also render multiple ships together. Ultimately, you have nearly infinite freedom with Blender, from things like making gifs to show staging separation to making your ship look like it's made out of solid gold. Though you'll have to learn some Blender if you're going to do that stuff, which may or may not be an ulterior motive of mine .Where the project liveshttps://github.com/Dasoccerguy/io_kspblenderI'll be posting updates both here and on reddit, something like once a week until this is as done as it can be.Please download the demo (and follow all the setup instructions) on the Github page and let me know what you think. Follow the installation instructions in the readme and you should be good to go!Update 3-1Turned a messy collection of scripts into an easy-to-use Blender addonContinued work on the kerbal and low-poly modelsetIt should work on Linux and Mac now! Huge thanks to Sma for debugging.Added Kethane mod support, and working on B9 Aerospace.Update 4-7Sorry I lied about the weekly updatesThis now supports EVERY MOD (thanks to Cptman's work)Tons of minor fixes to make things work a little betterI need your help with the mods, though. There are going to be bugs, so please let me know what goes wrong!This plugin is GPLv3 licensed. Edited April 8, 2015 by Dasoccerguy minor updates Quote Link to comment Share on other sites More sharing options...
BenjiGH Posted February 22, 2015 Share Posted February 22, 2015 Won-der-ful if it work (I'll test it tomorrow) making animation and picture for ksp will be a hell lot easier thanks to this Quote Link to comment Share on other sites More sharing options...
philotical Posted February 22, 2015 Share Posted February 22, 2015 Impressive..welcome to the forums.. Quote Link to comment Share on other sites More sharing options...
Gaalidas Posted February 23, 2015 Share Posted February 23, 2015 That's some crazy stuff. I like it. I can imagine several tests of this thing causing you to nearly turn blue from holding your breath. Quote Link to comment Share on other sites More sharing options...
lo-fi Posted February 23, 2015 Share Posted February 23, 2015 Fantastic. A warm welcome, and thank you! Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 (edited) Wow. Just wow.This has got to be the coolest thing for Blender that I've ever seen. Wee bit tricky to get it working, but hey, AMAZING! Welcome, welcome to the forum, sir!Magic! (Not the addon, Blender and Gimp.) Edited February 23, 2015 by Starwhip Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 Does anyone know how to use this? I'm blender-challenged, I have both the "io_object_mu-master" and the "kspblender-master" and have no idea what to do next. Quote Link to comment Share on other sites More sharing options...
GusTurbo Posted February 23, 2015 Share Posted February 23, 2015 Glad to see this make its way over here.I put my stock Saturn V in Blender, then Sketchfab. The file size was too big to upload on a free Sketchfab account. Maybe the texture files are too big? Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 Does anyone know how to use this? I'm blender-challenged, I have both the "io_object_mu-master" and the "kspblender-master" and have no idea what to do next.I do!Here:kspblender==========KSP in BlenderThis is all based around the python file ksparser.py, which operates on a given Kerbal Space Program .craft file(the file type that ships are stored as)HOW TO USE DEMO:1. Download Blender from http://blender.org2. Download .mu importer Blender addon from https://github.com/taniwha-qf/io_object_mu3. Extract, put "io\_object\_mu\_master" folder (the whole folder) in Program Files\Blender Foundation\Blender\2.72\scripts\addons4. Enable the addon in Blender. Press Ctrl+Alt+U or go to User Preferences under File. Go to the Addons tab, search for "mu" and enable the addon by clicking the little checkbox5. Download kspblenderdemo.blend from this repository6. Place .craft file into the same folder as the Blender file (they can be found under "saves" in the KSP.exe folder)7. Follow these setup instructions: http://imgur.com/a/oTjPTChange to Coding viewChange line 23, the KSP.exe directory, to your own directory (be sure to use double backward slashes!!!)Change line 1196, the craft name, to be the name of that fileChange back to Default viewPress Run Script in the bottom rightWait patientlyPress Render (or F12)7. Ask for help on reddit if these instructions suck8. Render, then press F3 in the render window and save the image where you want it.9. You can do tons more, but it will require learning some Blender. I'm happy to help with that.Project's Trello: https://trello.com/b/ffCPkGyM/kspblenderI English-ified the ReadMe a bit. Also:Javascript is disabled. View full albumPut the io_object_mu-master folder inside Blender's "scripts" folder. Mine was here: "C:\Program Files\Blender Foundation\Blender\2.71\scripts"Then, inside "kspblender-master" is a folder called "demo". Open up the file called "kspblenderdemo.blend" with Blender.Follow the instructions on the ReadMe: Copy your craft file into "kspblender-master\demo", where the .blend is.Then, find the line WAY down at the bottom, where it asks for the name of your craft. Change it to the name of the craft INSIDE "kspblender-master\demo".Near the top is a line where it asks for your KSP.exe directory. Go to KSP.exe, right click and go to Properties. Copy the "location" line into blender.Then, hit "run script" at the bottom and it should work. I may have missed something. Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 (edited) I can't find the coding view - I don't get that selection. Nevermind, found it I don't get blender at all, i guess i should sit down and learn it one day.Your'e a lifesaver Starwhip.EIDT ITS WORKING (or at least the program is frozen, not creating error - probably not smart to start with my shuttle ) Edited February 23, 2015 by zekes Quote Link to comment Share on other sites More sharing options...
Red Iron Crown Posted February 23, 2015 Share Posted February 23, 2015 Wow, this is an exciting project. Can't wait to see the visualizations people make using this (I'm blender-challenged too, though).Best first post I've seen in a long while, welcome aboard! Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 I can't find the coding view - I don't get that selection. Nevermind, found it I don't get blender at all, i guess i should sit down and learn it one day.Your'e a lifesave Starwhip.Hey, no problem. I just fiddle with the thing, and I can do some cool stuff. But I hardly know a thing about it. Here's what the professionals do: It makes me feel so small. Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 Hey, no problem. I just fiddle with the thing, and I can do some cool stuff. But I hardly know a thing about it. Here's what the professionals do: It makes me feel so small. Yeah. That is intense. Ok the gnomes in my computer are hard at work loading my craft. Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 Which one? I get the feeling it's going to take a LONG time. XD Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 Which one? I get the feeling it's going to take a LONG time. XDThe 1300 part one, that starts with an "S" Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 Methinks I just killed Blender with the WAL I. *crosses fingers* C'mon, you can do it! Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 Methinks I just killed Blender with the WAL I. *crosses fingers* C'mon, you can do it!Mine's still frozen. this might take a while Tell me how long yours takes ,I'll multiply that by four, and that's how long my Shuttle will take.Does this program auto-include the textures and everything? so it will look like your first screenshot? Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 It's alive! This thing really works good! Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 (edited) It's alive! http://i.imgur.com/OVY6oxV.pngThis thing really works good!AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA THIS IS SO AWESOME! uncaps.EDIT: It's rendering right now nad the computer is seriosuly suffering. Edited February 23, 2015 by zekes Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA THIS IS SO AWESOME! uncaps.I know! Oh, BIG note!Unless you want it to take five years to render, set the "Samples" setting to something low. The WAL I was at 10, I think, and Starstreaker III at 75.By default it's at 1000. Go to the little camera icon on the right hand panel, scroll down to "Sampling". It's in there. Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 I know! Oh, BIG note!Unless you want it to take five years to render, set the "Samples" setting to something low. The WAL I was at 10, I think, and Starstreaker III at 75.By default it's at 1000. Go to the little camera icon on the right hand panel, scroll down to "Sampling". It's in there.http://i.imgur.com/WAxhIaS.pngHow do i move the camera, or get back to the model? I seem to be stuck in this view.... Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 (edited) Okay, prepare for a bit of complicated-ness. Hit "CTRL+ALT+U". This opens the User Preferences panel.Check "Rotate around Selection". Save User Settings and close the panel.If you're stuck in Camera mode, hit "0". That'll get you out of it.Do "SHIFT+S". Click "Cursor to Center"Then do "ALT+HOME".Mousewheel zooms you out.Then, click a part on your ship with left button. Stop, DON'T touch anything! Holding down your mousewheel will let you rotate the view around the part you've selected. Find a good angle, and zoom out much farther than expected.When ready, hit "CTRL-ALT-0" to set camera to your active view.If not good enough, you can probably select the camera with the right mouse button if you click on the black outline, and then hit G to drag it around. Hitting "Z" twice lets you move it "in" and "out".Left click when done, or hit ENTER.Should be okay. (Downloading and trying it myself, just in case. )EDIT:Oh, boy, my fan is revving up. If my computer slags I blame zekes' shuttle. XD Edited February 23, 2015 by Starwhip Quote Link to comment Share on other sites More sharing options...
zekes Posted February 23, 2015 Share Posted February 23, 2015 (edited) Okay, prepare for a bit of complicated-ness. Hit "CTRL+ALT+U". This opens the User Preferences panel.http://i.imgur.com/TltNYBC.pngCheck "Rotate around Selection". Save User Settings and close the panel.If you're stuck in Camera mode, hit "0". That'll get you out of it.Do "SHIFT+S". Click "Cursor to Center"Then do "ALT+HOME".Mousewheel zooms you out.Then, click a part on your ship with left button. Stop, DON'T touch anything! Holding down your mousewheel will let you rotate the view around the part you've selected. Find a good angle, and zoom out much farther than expected.When ready, hit "CTRL-ALT-0" to set camera to your active view.If not good enough, you can probably select the camera with the right mouse button if you click on the black outline, and then hit G to drag it around. Hitting "Z" twice lets you move it "in" and "out".Left click when done, or hit ENTER.Should be okay. (Downloading and trying it myself, just in case. )aaah. Okay. Well I have to re- run the program now because i messed some stuff up - will have to wait another 15 minutes or so. Will have to go and delete all the launch clamps though. Edited February 23, 2015 by zekes Quote Link to comment Share on other sites More sharing options...
Robotengineer Posted February 23, 2015 Share Posted February 23, 2015 This is cool, will try. Quote Link to comment Share on other sites More sharing options...
Starwhip Posted February 23, 2015 Share Posted February 23, 2015 I see why you said "Fifteen Minutes", zekes. "Load! Load! Load! load! load... load?"It's a race I think I'm going to lose. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.