Google Sketch up to SRF

Topics about .dat, .srf, .dnm, .ist, Blender, Gepoly, etc.
Post Reply
User avatar
vandal
Veteran
Veteran
Posts: 1178
Joined: Thu Feb 03, 2011 3:16 pm
Favorite Aircraft: Tornado GR4
Location: Great Britain
Has thanked: 23 times
Been thanked: 148 times

Google Sketch up to SRF

Post by vandal » Fri Aug 12, 2011 7:18 pm

Original topic by Lord Flasheart
This seems to be an increasingly popular topic that keeps popping up so i feel the time has come to explain in detail how you convert Sketchup models into SRF meshes.

How to export to WRL/VRML, and then to SRF:
To start with, You will need to download google sketchup pro, as only this version has the vrml file exporter. Search 'Google Sketchup Pro free download' in web on google. The first or second link should redirect you to 'brothersoft.com'. Download the SKetchup pro setup file. Before you install, i recommend that you have google sketchup 7 installed on your computer, as the pro version is only a trial. This way you can model in Google sketchup 7 and export the file as VRML in Sketchup Pro. Once you have both versions of sketchup installed, open the model you want to convert in sketchup pro.If the edges aren't smooth in sketchup don't worry about it, the vertex rounding will take care of that in gepoly. The lower your polygon count on the model, the better. To export the model as VRML, click file, scroll down to export, another sub menu will appear. Click 3D model. A save menu will then appear. In the window where you choose what format to save the file, scroll down and click the VRML .wrl line. All you have to do now is click save/export.

Now that you have a VRML/wrl file of your mesh, you need to open it in YSVRML20, and export the file again as an srf. You will now be able to use/manipulate the file in gepoly.

How to make the SRF useable in a model without an extensive, unnecessary ammount of work:
To put it simply, a sketchup model usually has polygons on the interior that are a different colour to the rest of the model. After the model has been exported to wrl and finally srf format, open it in the coloursplit perl script, and export all colours apart from the one that represents the interior, unwanted polygons. Use the surfmerge tool to re-assemble the srf with the files that were created by the perl script. Once reassembled open it in gepoly and delete the same used vertex. Google sketchup models will rotate and rescale during the exporting process. As long as the model was positioned in the centre of the axis while it was in sketchup, you wont have to spend an unessesary ammount of time repositioning it in gepoly. The model will need to be rotated by -90 degrees in the 'P' feild of the rotation parameters in the rotate function within gepoly. To scale the model, i would advise using the perl script surfscale. To bring the model down to the same size in gepoly as it is in google sketchup, it will need to be downsized to 2.54% of its origonal size.

How to do all of the above without Sketchup Pro.
To being with, you willl need to download and install the latest version of google sketchup 7, availiable for download here: http://sketchup.google.com/download/
To be able to convert the sketchup model into an srf, you will also need to download the 3d modelling editing and creating software, blender. Availiable here: http://www.blender.org/
You will need to download and install the following plugins into blender to be able to import/export SRF and DNM files. http://www.yspilots.com/yspf/viewtopic. ... ilit=cobra These can be installed by simply pasting the script files within the zip into the scripts folder in the main blender folder.
Finally, you will need to install python 2.5.1, a program of sorts that will allow you to import/export collada (.dae) files. This is availiable from: http://www.python.org/download/releases/2.5.1

Now, onto the coverting process. As an example, i shall run through the process in which i converted my nimrod fuselage.
ImageImage

When importing in .dae format in blender, make sure that the buttons labeled 'Only import main scene' and 'new scene' are highlighted. In the menu select the file you wish to import and then click the 'import and close' button.
ImageImage

Now Export the file as a DNM.
ImageImage

Finally, convert the DNM into SRF format using the DNM2SRF perl script.
Paint it up, and... voila :)
Image

This process also works in reverse. To convert an SRF or DNM to modify in sketchup, Import it into blender, export as a 3DS, then import into Sketchup.
Image
Awesome 171st pilot
A member from yesteryear!
Also known as Princess Vandel

User avatar
TheJuli
Penguin Airways VA
Penguin Airways VA
Posts: 241
Joined: Fri Mar 02, 2012 2:42 pm
Favorite Aircraft: B777
Has thanked: 6 times
Been thanked: 8 times
Contact:

Re: Google Sketch up to SRF

Post by TheJuli » Tue Dec 27, 2011 11:50 am

can you save it as .SRF directly? not going thru the dnm2srf?

User avatar
Welshy
Staff
Staff
Posts: 2042
Joined: Thu Feb 24, 2011 4:53 pm
Favorite Aircraft: Sea Jet
Location: Wales
OS: Windows NT
Has thanked: 249 times
Been thanked: 253 times
Contact:

Re: Google Sketch up to SRF

Post by Welshy » Tue Dec 27, 2011 12:31 pm

nope
YSFHQ Elected Overlord
Overlord of VMFA-125 (CVW-171)
Previously Supreme Overlord of 323rd CAW
Friendly Neighbourhood Miscreant
Head Honcho at Talking Aero and British Defence
If you see me post like this in a thread pay attention!

User avatar
Dragon029
Veteran
Veteran
Posts: 601
Joined: Sun Feb 06, 2011 6:09 am
Favorite Aircraft: F-35A
Location: Australia
Has thanked: 42 times
Been thanked: 85 times
Contact:

Re: Google Sketch up to SRF

Post by Dragon029 » Tue Dec 27, 2011 12:33 pm

The first method described doesn't require dnm2srf, or blender, but I don't know if it's faster.

Regardless, that first method is the one I've used for all of my mods.
Per Ardua Ad Astra
>>> Dragon Addon Pack <<<
(PAK-FA, F/A-52, F/A-36, MQ-21)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest