Traductions possibles :
  • English
  • Français (French)

Ceci est une ancienne révision du document !


Tutoriel par AEO


3D : Google sketchup

Les bases de SKP sont disponibles ici ou directement dans SKP.
Téléchargez SKP gratuitement ici.



Pour la version gratuite de google sketchup, il est facile de configurer l'écran pour Simutrans. Téléchargez simplement ce template que j'ai fait dans SKP et découvrez-le. Il est facile à refaire vous pouvez donc refaire votre fichier vous-même.

Je n'ai pas trouvé mieux que de rendre différentes rotations, sélectionnez votre écran en entier par cliquez-déplacer, clic droit et “create group”, copiez, collez puis tournez-le avec l'outil rotation. Il est conseillé d'avoir un tile de base au sol pour chacun de vos projets, ce sera plus facile pour adaptez vos rendus.

For first time users, you should change some settings, as shown.

Pour les débutants, changez les réglagages comme ci-dessous :



Pour refaire le prisme d'alignement de la caméra :



Pour le moment, essayez juste de créer quelque chose en 3D dans SKP. Ce que c'est n'a pas d'importance, servez-vous simplement de SKP. Dans cet exemple, j'ai fait une maison très simple, mais une fois que vous êtes habitués à SKP, vous devriez facilement être capable de créer des objets bien plus complexes.

skpguide11.jpg

Pour rendre un objet dans le style graphique de Simutrans, modifiez les réglages suivants.
1: Menu: Camera → Parallel Projection


2: Menu: Window → Shadows


Shadow settings
- Display shadows: On
- Time: 13:30
- Date: 11/8
- Light: 80 (personal preference)
- Dark: 45 (personal preference)
- Use sun for shading: (optional)
- On faces: off
- On ground: on
- From edges: off
3: Menu: View → Display edges: off, Display profiles: off (on for comic)


4: Menu: View → Face style: Shaded with textures


5: Menu: View → Axes: off


6: Toolbar → Pointer Arrow → Right click on blue face of triangular prism to the left with “Align View” and Select “Align view”.


7: Toolbar → Hand icon → Pan camera to fit your creation on screen.


8: Toolbar → Zoom (magnifying glass icon) or use your mouse wheel to zoom in and out.



C'est difficile de reproduire un bon zoom pour les rendus si vous utilisez la version gratuite donc il faut fonctionner un peu par essai-erreur, mais le mieux est de travailler avec une taille de rendu qui soit deux ou quatre fois plus grand que la taille du pak pour lequel vous créez. Pour le pak128 il faut que le carré bleu fasse entre 253 et 258 pixels de large quand vous le rendez en 2D.

Pour rendre en 2D, il y a deux possibilités. La première c'est simple de faire une capture d'écran, vous aurez un rendu sans anti-crénelage. La seconde solution and d'aller dans Menu → File → Export → 2D Graphic → <insérez le nom>.png. Cette méthode vous donnera un anti-crénelage, mais comme l'image sera réduite il y aura un anti-crénelage quelque soit la méthode. C'est plus rapide de coller directement votre capture d'écran dans l'éditeur d'images.



Maintenant que les fichiers sont rendus, vous pouvez les ouvrir dans votre éditeur d'image préféré et vous pouvez modifier l'image comme vous le souhaiter.

First you should cut away the tile you want and make sure it is a square. The square in the background should be a perfect square, or pretty close to it. It's not too important if the background square is off by 1 or 2 pixels since you will be deleting it, all that matters is that your image is properly aligned inside the square. It's best if you first cut away the background from your main image and it's easier to separate the background from your object if there is no smoothing done to the edges. That's why I recommend using the screen shot instead of exporting. If your image editing program supports transparencies, use that so that there are no coloured background pixels on your main image. If your program doesn't have that, fill the background in with a high contrast colour, like magenta or lime green or cyan that's easy to distinguish.

Premièrement vous devez découper votre tile et vous assurez que vous obtenez ensuite un carré. Le carré de fond devrait être un carré parfait, ou très proche. Si le carré de fond dépasse d'un ou deux pixels ce n'est pas grave vu que vous le supprimerez. Tout ce qui importe c'est que votre image soit correctement alignée dans le carré.

[traduction en cours]

Comparison of screen capture vs. exported render:



So now you have a square cut away and the next step is to resize it to fit your pak tile size. Once you separate your image from the background, resize it using “bi-cubic”, “lanczos3” or whatever claims to be the slowest and best, but never use anything with “nearest” or “linear”. This is where it becomes important that you rendered your image in 2x or 4x size. The resizing function gives better results when resizing images if it's a simple number, like 50% or 25% of original size instead of 28.5%, 66.67% etc.

Once you have resized the image, you should clean up the edges, as this is unavoidable when using a resize that has AA. After cleaning up the edges, fill in the background with simutrans transparent blue, R231, G255, B255 (E7FFFF).

Tip 1: Render as many rotations and objects that fit on your screen at once. Much faster to do all the above steps when you have tools like magic wand and batch resize.
Tip 2: You can actually do both print screen and render through export and mix them together. Use the edges of the print screen and the core of the export.
Tip 3: You can do the same when resizing. Do a resize with 'nearest' and also a resize with 'bicubic'. Use the magic wand tool to select the background of the 'nearest' resize layer, then select the bicubic resize layer, hit delete, then merge the two layers. You'll now have crisp edges and a smooth core.
Tip 4: You don't have to use simutrans transparent blue during the render, as done in the template. Render with whatever colour gives high contrast.

next tutorial : Chapter III: source files.