Lesson3 - getting the shape right
~~~~~~~~~~~~~~~~~~~~

This next part will concentrate on getting the footplate profile and frames looking correct. Up till now we have done very little modelling ourselves - now it gets serious
Consequently, this Lesson I am going into as much detail as I can - though it is quite long, the actual work you do is quite small.

Firstly, this loco has a nice complex shape that the main body sits on.
All the locos I have built so far have had straight, flat surfaces - how do I build this one?

There are many possible ways - building up from several primitive objects joined together, object subtraction - Both options are either time consuming to do, or very expensive on polys (avoid object subtraction, it is not very accurate and can lead to complications later - 3DC V6 may fix this).

An alternative is to use an Extruded Object (not the extrude operation) - these are normally associated with high poly counts, but this can be easily controlled. It is worth practicing with this method as it can be used for many complex shapes found on locos (saddle tanks, smoke box supports etc - though for symmetrical items there is a slight change to the technique)

(This is where we find out how horizontal the plan is...)

  1. Drag the Extrude Object builder onto the scene - a new 4 panel window will appear - maximise this window.
  2. press the background picture button (the small truck image on the top menu) and select the scanned plan - use the navigate control to find the side view and zoom out or in on the top left panel - ignore the distortion of the shape, this is corrected later.
  3. On the lower left panel, select two points on the horizontal about 18 squares apart. Look at the bottom left status bar to make sure their Y coordinates (second value of "Position x.xxxx, y.yyyyy") are exactly equal. They can be adjusted by dragging the points with the mouse. This will give our object depth
  4. Pick a start point on the plan side view in the top right panel and click (lower front buffer beam).
  5. Now select subsequent points around the shape, clicking on each point twice until it turns blue. Where the shape is straight, place a point at each end of the straight. For curves, as a rough guide, use 2-4 points around a 90 degree bend (fewer for small radius curves). Hold the CTRL key and click to delete a point and SHIFT click to add a point before the one clicked.
  6. When you reach the start point again, instead of clicking on the start point, pick somewhere near, then drag
    the final point over the start point until you see an object appear in the top left panel - this could be below the grid so you may need to adjust the view as in the following...
  7. Now correct all the points by dragging with the mouse, so they are squared up horizontally or vertically and the Y or X coordinates match the other points. (my plan is not quite square, but the points should be made to match)
  8. press the save button and close the window.
  9. Now press the "Centre Selection on Frame" Operation button (white square with 4 black triangles and yellow centre) and drag the object up slightly with the right mouse button.
  10. We now need to orientate the shape correctly for the model. Right click on the object, select properties and adjust the group orientation - mine needed to rotate it 90 degrees anti-clockwise around the vertical axis (Y) then 180 degrees around the longitudinal axis (Z) like so ...

    It is possible yours may need a different rotation angles - I have yet to work out the mysteries of the extrude object.
  11. We can now correct the size (which removes the earlier plan distortion) - taking measurements from the plan (we already know the length is 14.32m), right click the object and select Scale/ToSize. Note because of the 90 degree Y rotation, X is currently the length for this object...
  12. Our extrude object group is currently not attached to the model so we drag it into the main group...
  13. Right click on the object and select properties once more... this time set the position values for X and Z to zero. Our object should appear centrally over the frames
  14. Select the old flat footplate/solebar object and delete it.
  15.  now use the right mouse button to drag the new object into position so the top of the frames object just disappears (use Ctrl UP/Down arrows for fine adjustment).
  16. Once you are happy with this, drag the object into the main group...


    Now that was proper 3D modelling! Just to finish off...
  17. Remove the two lowest flat faces - these shouldn't be visible in MSTS. Use the face selection tool (white square on the right). Viewing from below, hold the CTRL key down, click on both faces so they are highlighted in pale blue and press the Delete key.

    The remaining lower faces need to be moved up slightly...
  18. Use the CTRL Key to select all the remaining lower faces as before and press the Cut button (or press CTRL-X)
  19. Switch to object select mode and select the footplate object again by clicking and press the Paste button (or press CTRL-V)
  20. The paste operation creates a new object, in a child group of the currently selected group, centred at 0.5, 0.5, 0.5 relative to the parent group. Right click and select properties, then change the position to 0,0,0 -
    which puts the faces you selected back to their original position (except they are now independent)
  21. Right click and drag the new object up slightly so it looks like the underside of the footplate.
  22. You may notice the footplate shading has changed - to correct this back to normal, use either the crease or the optimize operations on the object.
  23. Finally, if you are happy with the position of the underside of the footplate, select this object and use the combine object tool (double white circles on the right) to merge it back into the footplate object.

 

.... Use the Fill tool and a small dark area cropped from the texture to give it a dirty black colour all over.

Lots of instructions, but relatively quick to perform once you get the hang of extruding and cut & paste.

Onto the frames - firstly the model, then the texture.

  1. The frames created by the Engineer plugin are just given default values for size - Measuring on the plan from the top of the new footplate to the lowest part of the frames and springs gives the new height - Right click on the frame object and select Scale/To Size - change the Y value to your new measured height.
  2. Use the Shift Object tool (White and yellow square on the right menu) and use the Right mouse drag to shift the object vertically so the top of the frame just meets the top of the new footplate.

Frames do not need to be highly detailed, a general approximation to the right shape looks OK as they are mostly hidden behind the wheels. However, I am a teeny bit concerned about the length of this loco, so I will distort the texture vertically to get a slightly better resolution in one direction.

  1. "cut out" an approximate outline of the frames and springs (from the top of the footplate) from the plan with the painting program.
    We can ignore the rear part of the texture where the footplate dips as there appears to be a raised cab floor and the bunker covering this. I will chop out the dip at the front and model the curved frames above the footplate front, as these are far more visible.
  2. I usually paste this as a new image to work on first, before adding to the final texture
  3. Resize it to 512 pixels wide and about 128 high - my paint tool aliases the mask on resizing so I have to correct the mask with the fill tool or the edges wil go fuzzy.
  4. give it some colour (muddy dark brown) and add some details.
  5. transfer the new object onto the main texture file.

Apply the mask so the frames shape will be opaque when painted onto the shape - the darker green in the above image shows the area masked off.

Back to the model...

  1. View the model side that appears on the plan.
  2. Using the default orientation mode, crop the texture area to the new frames texture and use the Fill tool on the right menu on the frames object.
    (don't worry if a bit of the texture sticks up at the front, the modelled frames should cover it)
  3. Export the shape to MSTS, et voila....




    Next - fun stuff Pistons...  
Posted: 20 Dec 2002 20:43    Post subject:

Paul,

I'm not sure if it is because I only have 128 mb of memory and a 32mb graphics card but I cannot get any further than 2 as the image will not load into the extrusion object builder's window as you have mentioned so as you can imagine I am a little stuck 

I have no idea on what i can do.
_________________
Daryn Dunkley


Bringing yesterdays trains today!

Survivor of the Magical Mystery Tour
Posted: 20 Dec 2002 23:11    Post subject:


You could try trimming the image down to just the footplate area of the loco, i.e. a long oblong just covering the part required for the extrusion. That should save you a fair bit of memory. You could maybe even save the picture as black/white only to save some more memory.

Also you could try rebooting your PC and make sure 3DC is the only thing running which might help a bit as well.
_________________
Mike in OZ - Author of Route-Riter.

jasonclarke Posted: 21 Dec 2002 01:35    Post subject:

I have found that the backdrop works better with a square image - Might be worth a try if you have not already thought of it.

Jason
Posted: 21 Dec 2002 06:05    Post subject:


Yes, I usually use a square texture, but decided to try Pauls system this time. Richard does say you should use square textures to keep the shape correct.
_________________
Mike in OZ - Author of Route-Riter.
Posted: 21 Dec 2002 10:02    Post subject:  

Square textures do not distort the shape, but as I resize the object later, it corrects for this, I was just being lazy.

I also forgot to mention the zoom area next to the navigation control on the plan view which lets to zoom in/out from the plan.

Did you get it working in the end Daryn ?

Has anyone completed this OK or had other problems ?
_________________
DECAPOD
OOOOO
Posted: 21 Dec 2002 14:48    Post subject:

Decapod,

I'm trying to keep up. Just used the extrude feature to make the convoluted footplate of the H16.

http://members.aol.com/cua193/dec_4.jpg

You can see I've got two problems:-

the footplate has no sides - not entirely a catastrophy as I would have used transparent panels anyway.

Is there no way to scale the backdrop. I hate to mention it here but the control of background images makes TSM a thousand times easier to use. I can't yet see a way of making parts without measuring everything. Also in TSM I can use F2 & move, correct or scale any point or part - is there an equivalent? Can I scale with the mouse in the same way as in TSM? I don't seem to be able to juggle & squeeze with 3dCanvas.

A suggestion for the tutorial - more screenshots, not of the the loco but of the operation - if nothing else most of these buttons look the same.

BTW while Ian & you are reading this thread - if you make an .s file ( I'm thinking of interior views & crews for freightanim ) I assume it must have a hierarchy & a 'main' part with a co-incident datum as the target .s file?

regards
Richard Osborne
Posted: 21 Dec 2002 16:06    Post subject:  

The missing sides are probably where the end point didn't meet the start point exactly - 3DC only fills it in when the circuit is complete.

Backdrops work in reverse with 3DC you need to scale the picture first. (to a 10x10m square on the plan if you use a 10x10 grid)
Not perfect, but as I mentioned, I have never really found the need for backdrops as I scale everything exactly to the correct dimensions with the right click - this lets me weld objects together later for more optimal shapes. I also try and position using manual entry - again for accuracy. If a part doesn't fit then something has been built wrongly.

You can use the arrow keys for fine adjustment X & Z and hold the Ctrl key for Y.

3DC 6 is supposed to have more keyboard shortcuts which are presently lacking.

Freight anims - basically Yes, the X&Z coords must be the same, you only have some control of the height.
You can build two models for MSTS in once scene in 3DC - if both main groups are positioned at the same point, the positions will be correct in MSTS.
_________________
DECAPOD
OOOOO
ianm42 Posted: 21 Dec 2002 16:51    Post subject:

To create freight anim or passenger view models, I build them in the same scene as a copy of the wagon or coach, but in a separate hierachy. I position the model in the correct relationship to the wagon, 3D wise, then I move the main object of the sub-model into the top of the wagon hierachy.
Then I move it into a new child group, and then move that group back out to the scene level. The rest of the sub-model parts can then be moved into the new group to form a complete model, but the main object will have picked up the same main axis coordinates as the wagon model (which can be either deleted, or just moved 5 meters to the left for later).
mikesimpson Posted: 21 Dec 2002 21:08    Post subject:

For Richard,

On the Amabilis site under Tutorials, there is a good tutorial on Cross-section modelling which shows the use of the background pictures in modelling with 3D Canvas. This is not all that different to modelling in TSM once you grasp the differences.

I had some earlier versions of the Tutorial which Richard at 3D Canvas sent me while he was busy writing them, and in my opinion they were better than the ones now on his site, but unfortunately I printed them off, and do not seem to be able to find the files on my PC, or I could have sent them on to you.
_________________
Mike in OZ - Author of Route-Riter.
Posted: 27 Dec 2002 22:43    Post subject:

I have caught up now and from what I can tell I have not had any problems with this part after I managed to get the backdrop working 



I look forward to the next lesson 
_________________
Daryn Dunkley

Next Part >>