Hi i was wondering if you can help me. Im trying to extrude a triangle shape using vrml and the problem with my code is that some of the sides do not appear unless i rotate the scene. its has if some sides of the shape are hidde, i.e. back-face culling i think its called:
Anyways here is the code im working on:
Here is what it looks like from the code above:Code:########################the front roof##################################### Shape { appearance Appearance { material Material { } texture ImageTexture { url "floor.jpg" } } geometry IndexedFaceSet { coord Coordinate { point [ # buttom 0.0 15.0 0.0, 40.0 15.0 0.0, 40.0 15.0 30.0, 0.0 15.0 30.0, #middle part 0.0 30.0 15.0, 40.0 30.0 15.0, ] } coordIndex [ #buttom 0, 1, 2, 3, -1, #front 0, 1, 5, 4, -1, #right 1, 2, 5, -1, #back 2, 3, 4, 5, -1, #left 0, 3, 4 ] } }
And this is what it suppose to look like:
edit: I made a mistake, i diddnt apply extrution to this bit of code instead i used point co-ordinates but still have the same problem above..


LinkBack URL
About LinkBacks


Reply With Quote
SCAN.care@HEXUS
