From: Jenny O. <jo...@cs...> - 2009-11-27 11:58:57
|
Hi, I'm trying to convert some of my old Stage 2.1.1 models to use Stage 3.2.2 but I'm having trouble making the blocks render properly. In my robot's "position" model I have two blocks, declared with the following code: block( points 6 point[0] [-0.5 -0.5] point[1] [-0.5 0.5] point[2] [0.25 0.5] point[3] [0.5 0.25] point[4] [0.5 -0.25] point[5] [0.25 -0.5] # z [height_from height_to] z [0 0.22] ) block( points 8 point[0] [-0.2 0.12] point[1] [-0.2 -0.12] point[2] [-0.12 -0.2555] point[3] [0.12 -0.2555] point[4] [0.2 -0.12] point[5] [0.2 0.12] point[6] [0.12 0.2555] point[7] [-0.12 0.2555] z [0 0.22] ) My problem is that the 6 pointed block just becomes walls (bad) but the 8 pointed block is a proper block which is filled in. I uploaded a picture here: http://www-users.cs.york.ac.uk/jowen/player/fillinblock.png and in the fancy new perspective view: http://www-users.cs.york.ac.uk/jowen/player/fillinblockperspective.png I don't see what the difference in the syntax is that would cause this to happen! Both blocks are on the same robot so I don't think it's a problem in the rest of my code, just the bits I've pasted here. I've uploaded the code that generated this simulation here if anyone wants to read it: http://www-users.cs.york.ac.uk/jowen/player/bigbob.tar I'm using Player version 3.0.0 if that's important. Does anyone know why the first block does not get filled in like a solid object? Thanks, Jenny |