Print at Apr 1, 2020, 10:07:58 PM

Posted by okh at Aug 15, 2018, 10:02:52 AM
Re: Roofs
As UbuntyBirdy says, and as with most roofs, the model is quite simple to make with AoI, Blender, Sketchup or FreeCad. If you know how.

The one in the image, is made from identical roof module triangles), fit together and grouped. While that is a flexible and generic approach to enable many kinds of roofs with few models, it is a bit cumbersome. So, I think there are also some pyramid models posted in SourceForge (roofs).

For a pyramid roof, I would probably do like UbuntyBirdy, but for my own use I would probably also add a ceiling, sides and texturemap the roof (vt) so a texture (rooftiles) you add later will look the same on all sides, e.g. an .obj file looking something like this. Copy the text and save as pyramidroof.obj and import to SH3D (.mtl not needed for std colours: Java3DCubeColorsWithTransparency).

# pyramid roof with ceiling and texture co-ords
g ceiling
usemtl archwhite
v 20 0 980
v 500 500 500
v 980 0 980
v 20 0 20
v 980 0 20
f 1 2 3
f 1 4 2
f 5 3 2
f 5 2 4
g side
usemtl flwhite
v 1000 40 0
v 1000 40 1000
v 0 40 0
v 0 40 1000
f 3 5 6
f 3 6 7
f 4 8 6
f 4 6 5
f 3 7 9
f 3 9 1
f 9 8 4
f 9 4 1
g roof
usemtl redbrick
v 500 540 500
vt -11 0 0
vt 0 0 0
vt -6 8 0
vt 6 8 0
vt 11 0 0
vt -6 0 0
vt -11 -8 0
vt 0 -8 0
vt 11 -8 0
vt 6 0 0
f 8/1 9/2 10/3
f 10/4 9/2 7/5
f 10/6 6/7 8/8
f 7/8 6/9 10/10