The International Simutrans Forum

PakSets and Customization => Pak64 => Pak64 Add-ons and Graphics => Topic started by: fuzion_051 on April 16, 2009, 01:18:41 PM

Title: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 01:18:41 PM
I was just wondering if models made from Google SketchUp (Freeware 3d program) can be used to make vehicles and other objects. It's just that I was already able to make various 3D airplanes in different liveries using the program for the past 2 years or so and this thought crossed my mind just recently.

Here's a sample of one of those:
Title: Re: Using SketchUp for creating models?
Post by: Zeno on April 16, 2009, 01:56:40 PM
I've never used SketchUp to make any model, thus I don't know if it has view/rotate and capturing functionalities; that's all you need to make a vehicle: rotate and take a photo.

Anyway, take care with ADC SketchUp models as many of them are copyrighted. The one in the screenshot seems to be a Philippine Airlines A340-300, made for the ADC competition (http://sketchup.google.com/3dwarehouse/cldetails?mid=268d23a34cea7fe1922d5faaa31e2553) and copyrighted by its author, so I wouldn't use that one. But I've seen many of them without reference to any license and I wonder wether they could/might be used or not.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 02:10:10 PM
SketchUp has rotational capabilities too. Actually, I've just taken rotational shots of a Lufthansa 747-400 and I'll post it shortly.

Regarding the ADC Competition, most of the plane liveries there are actually designed by me (Nix15) and my brother. We just gave credits to William T, from whom we got the default plane bodies.
Title: Re: Using SketchUp for creating models?
Post by: Zeno on April 16, 2009, 02:16:16 PM
Wow, that's good news then, as you'll have most of the work already done. You only need now to take 8 pics, one for each view (North, NorthWest, West, SouthWest, and so on...) and write the DAT file. You can take a look on gsc (http://graphics.simutrans.com) to get some examples on it.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 02:17:37 PM
Here are the rotational shots of a Lufthansa 747-400, designed by me

Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 02:22:03 PM
continuation of rotational shots

Title: Re: Using SketchUp for creating models?
Post by: Zeno on April 16, 2009, 02:25:32 PM
Ehm. Sorry, when I said capture I really meant render. If it's a 3D modelling program, even being free it should have rendering capabilities. You also should use the simutrans special color for image background (everything but the plane should be that color), which is #E7FFFF (rgb=231,255,255).
Beware with the scale you use, as each picture (each view) must be 64 pixel height and width. And that's pretty small. Also you can take some references from already done objects to get an idea of what size should have the object inside the 64 pixel image; I don't know if there are any rules in pak64 to draw aircrafts, maybe a pak expert could help better than me with that  :-\
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 02:30:57 PM
Oh ok I see. So what does "rendering" mean in terms of 3D modeling programs?
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 16, 2009, 02:39:34 PM
Just get an image of the model or scene. What you have done may be considered screenshots rather than rendered images.

EDIT:

This is (http://lh3.ggpht.com/XdXavier/SKnygldvOaI/AAAAAAAAAPs/dnEAjVfpqRM/textura.jpg) what you have shown us, however you need to get eight rendered images like this one (http://lh5.ggpht.com/XdXavier/SKnygVN2CtI/AAAAAAAAAPk/s8I0xm6Xy1I/render.png), to end joining all views images in a big one (http://lh6.ggpht.com/XdXavier/SKnwrq-eDtI/AAAAAAAAAPA/LgbXXaCGDWg/final.png)
Title: Re: Using SketchUp for creating models?
Post by: Zeno on April 16, 2009, 02:43:19 PM
After some googleing I've read most of the time you need an external rendering utility (a program which makes what vilvoh has explained). You may import it using 3d max, blender or another modelling software capable of rendering scenes.
Title: Re: Using SketchUp for creating models?
Post by: Isaac Eiland-Hall on April 16, 2009, 02:44:37 PM
Quote from: Zeno on April 16, 2009, 01:56:40 PMAnyway, take care with ADC SketchUp models as many of them are copyrighted.

I've a question about that that I put here: http://forum.simutrans.com/index.php?topic=1929.0 -- as it was offtopic for this thread.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 02:49:27 PM
Ok. Well I'm still determining if sketchup has rendering capabilities.
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 16, 2009, 03:01:04 PM
Yes It has. Extract from What makes SketchUp great? (http://sketchup.google.com/intl/en/product/features.html)

QuoteExport TIFF, JPEG and PNG

SketchUp lets you export raster images up to 10,000 pixels square, so generating an image which you can send in an email, publish in a document, or project on a wall is as easy as choosing a few options and clicking Export.

Indeed, the Pro version can export the models into serveral famous 3D formats like 3DS, OBJ, XSI, FBX, VRML and DAE.

I think we have confused you. In 3D Modeling jargon, rendering means to export the result (model or scene) into an image or video.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 03:06:59 PM
Ok I've seen it. Just a thought though. Would I already need to render the image from sketchup in 64 pixels, or do I use the rendered image and edit it in, let's say MS Paint, in order to modify it into 64 pixels?

EDIT: Also, should the model already have the prescribed background color for simutrans before I render it?
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 16, 2009, 03:21:39 PM
If possible, render it directly to 64x64 format. Edit usually implies rescaling, that almost always turns into a loose of quality

Quote from: fuzion_051 on April 16, 2009, 03:06:59 PM
EDIT: Also, should the model already have the prescribed background color for simutrans before I render it?

You've the answer at Zeno's post:

Quote from: Zeno on April 16, 2009, 02:25:32 PM
You also should use the simutrans special color for image background (everything but the plane should be that color), which is #E7FFFF (rgb=231,255,255).
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 03:44:19 PM
I've already tried rendering it..However, it seemed to be rather blurred as compared to the png images of pak64 planes.  :-\
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 16, 2009, 04:03:26 PM
Could you show us the resulting image? We may give you some tips.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 16, 2009, 04:05:30 PM
Here. The same plane (Lufthansa 747)

P.S.: Sketchup won't let me render at 64x64. It always uses the viewscreen as the basis, so when I type 64 at one box, the other one automatically sets up to 35.
Title: Re: Using SketchUp for creating models?
Post by: Zeno on April 16, 2009, 04:13:14 PM
The streched size don't matter. You can always fill up to 64 px with the background color.
The image is the problem. It looks like a rescaled image, that's why we recommended you to render it directly; but it seems the render engine is not enough precise  :-\
Maybe you should try an external render, or exporting the model to other rendering tools.
Title: Re: Using SketchUp for creating models?
Post by: VS on April 16, 2009, 07:32:20 PM
Try running "sharpen" filter in your favourite picture editor on that.

But given the results, I think you simply have too small details. The thing is, if something becomes less than a pixel in the final image... well, poop. I'm afraid there is no easy way out except for

a) changing details' size and lots of postprocessing (blurred edges) - essentially new model and manual repaint anyway
b) changing scale to something more kind
c) some procedure that does something differently (what?)
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 08:13:04 AM
Are there any free rendering programs available for download?
Also, anyone knows if blender can import 3D models from other 3D modeling programs (I haven't tried using blender yet but I'm downloading it to give it a try).
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 17, 2009, 08:37:31 AM
IIRC, Blender can import OBJ and LW files by default, but for the rest you may need a plugin. see http://www.blender.org/download/python-scripts/import-export/ (http://www.blender.org/download/python-scripts/import-export/)
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 09:15:10 AM
Ok.

Hmm..doing away with the graphics problem, I've already tried creating a png file of the rotational views of another test plane (this time CX B777-300). I've also created a dat file for it and produced a pak file of the vehicle. However, this is the resulting screenshots of the the plane in use in the game.
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 17, 2009, 09:31:29 AM
Known problem, very easy to fix. It happens when the image has the alpha channel (transparency) activated. Just cut and paste the rotations image into another new one.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 09:37:37 AM
Uhm, could you explain a little bit more about that? Sorry I didn't get it much.

Also, it has problems with the rotational views. The plane doesn't seem to face into the right direction at certain times. It is also sometimes misaligned with the taxiway. (I'll post screenshots of this)
Title: Re: Using SketchUp for creating models?
Post by: VS on April 17, 2009, 09:46:55 AM
Oversimplified, but anyway. Image exists in computer as array of pixels - and each pixel consists of three components describing the colour (red, green, blue). However, you can add fourth component, that describes how well can the background be seen through. Alpha, transparency, opacity... and makeobj can't deal with it. So you'll have to get rid of that somehow. Depends on your picture editor.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 09:48:31 AM
Rotational views of the aircraft as it goes around a taxiway
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 09:50:36 AM
Hmm..so how can I deal with it then? I've used ms paint in producing the png file and I've also made one in ms powerpoint
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 17, 2009, 09:56:43 AM
Probably, you may need a better painting program like Pain.NET or GIMP. MS Paint is very simple, iirc it can't deal with transparencies, and powerpoint is useless for this situation.

What you've to do is to cut the original image and paste it into a new image. Then save it and will be fixed (I hope so..) If you've several independent images, repeat the sequence for each one.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 09:58:19 AM
continuation of rotation images
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 10:01:02 AM
I'll overwrite the previous image with a new one, is that it?
Title: Re: Using SketchUp for creating models?
Post by: VS on April 17, 2009, 10:03:55 AM
Yes, with paint - select all, copy, close, open new paint, paste, save over old file. Case closed.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 10:35:16 AM
Ok thanks I've done it. The alignment problems have also been solved.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 17, 2009, 12:25:16 PM
Just another question. How are night lights placed on the vehicle (for example, the lights on the wingtip of the aircraft)?
Title: Re: Using SketchUp for creating models?
Post by: sojo on April 17, 2009, 12:34:21 PM
You have to use special colors. Look here: http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=en_SpecialColors
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 29, 2009, 08:37:36 AM
I've already done several airlines in different aircraft types, although as I have said, their graphics is pretty much blurred. (I was only concerned into making my airlines identifiable at my "The World" layout, and I think the tails of the aircraft pretty much met up to that criteria). Also, I've only added nightlights to the wingtips as placing some for passenger windows made it messy to look at.

However, I'll upload some here and comments/suggestions would be appreciated.

P.S: how can I upload .pak files here?
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 29, 2009, 08:42:24 AM
Could post some images to have a general idea of what you're talking about?

Quote from: fuzion_051 on April 29, 2009, 08:37:36 AM
P.S: how can I upload .pak files here?

put them in a zip file.
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 29, 2009, 10:59:27 AM
Here's a sample. They're generally much smaller than the default passenger planes in the pak.
Title: Re: Using SketchUp for creating models?
Post by: vilvoh on April 29, 2009, 11:16:05 AM
I'm agree, they should be larger but the graphics look very good. Good work!
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on April 29, 2009, 11:32:46 AM
Here are some zip files
Title: Re: Using SketchUp for creating models?
Post by: VS on April 29, 2009, 01:19:17 PM
Nice! I'm glad you got over the technical problems :)
Title: Re: Using SketchUp for creating models?
Post by: PlayTrans2009 on September 12, 2009, 05:30:58 AM
The British Airways is corrupted. Can you fix it?
Title: Re: Using SketchUp for creating models?
Post by: einself on September 23, 2009, 01:50:08 AM
Hey fuzion,

really amazing work which you have done by creating these airplanes.

For the moment I also try to get used to SketchUp, but I have some problems with the alignment, when I'm trying to render the 3D-Models. How did you align the exact camera position? Are there any tutorials or can you give me some hints, please?

Thanks,
einself
Title: Re: Using SketchUp for creating models?
Post by: fuzion_051 on October 17, 2009, 04:13:52 PM
Good day,

Sorry for the late reply. With regards to aligning the camera in sketch-up in order to get the correct views for an object, go to the menu "Camera" then click "Parallel Projection". With that, you can use the isometric view of the object for rendering purposes.  ;)
Title: Re: Using SketchUp for creating models?
Post by: prissi on October 17, 2009, 07:15:26 PM
Well, all of the images sees corrupt ...
Title: Re: Using SketchUp for creating models?
Post by: einself on October 21, 2009, 01:43:30 AM
Thanks for your answer. So far it works!

But how do I get the correct size? Is it just try and error, or is there a possibility to regulate the size exactly? Because I'm not a great follower of approximate solutions.
Title: Re: Using SketchUp for creating models?
Post by: ӔO on January 04, 2010, 12:10:16 AM
how's this for a template?
30-60-90 right triangle prism offset 45 degrees and camera set to parallel for viewing angle.
and even a 3D template box that's not very hard to create.
still not perfect, but should be pretty close.
3200x3200x1309.2mm cube

(http://i199.photobucket.com/albums/aa131/AEObikes/simutrans/th_simutranstemplate.png) (http://i199.photobucket.com/albums/aa131/AEObikes/simutrans/simutranstemplate.png)
Title: Re: Using SketchUp for creating models?
Post by: VS on January 04, 2010, 09:34:13 AM
Close enough :D
(http://graphics.simutrans.com/albums/userpics/10003/cd_test2.png)