Why aren't my cylinders visible?

hi,



I've tried to make up a car just by using shapes like Boxes and Cylinders. It is only a dummy. I am going to replace it when I have learned how to use Blender ;))

But: Why are my Cylinders not visible?



model=new Node("Car");
       Box b=new Box("chassis", new Vector3f(0, 0, 0), 2, 0.1f, 1);
       model.attachChild(b);
       Cylinder[] raeder=new Cylinder[4];
      
       raeder[0]=new Cylinder("Rad0", 1, 12, 0.2f, 0.1f);
       raeder[0].setLocalTranslation(new Vector3f(0f, 0f, -0.1f));
       model.attachChild(raeder[0]);
      
       raeder[1]=new Cylinder("Rad1", 1, 12, 0.2f, 0.1f);
       raeder[1].setLocalTranslation(new Vector3f(0f, 0f, 1f));
       model.attachChild(raeder[1]);
      
       raeder[2]=new Cylinder("Rad2", 1, 12, 0.2f, 0.1f);
       raeder[2].setLocalTranslation(new Vector3f(2f, 0f, -0.1f));
       model.attachChild(raeder[2]);
      
       raeder[3]=new Cylinder("Rad3", 1, 12, 0.2f, 0.1f);
       raeder[3].setLocalTranslation(new Vector3f(2f, 0f, 1f));
       model.attachChild(raeder[3]);



The Box is visible, but the cylinders aren't what is the problem? I think the cylinders should be at the corners of the box, shouldn't they?

Thanks for help,
campino

you attact model to the rootNode?

Yes, I do.



The Box b is visible and as you can see in my listening it is attached to the same node as the cylinders.

just a thought you might try putting them all on seperate nodes. i don't think thats it and hopefully one of the developers will be able to help you.

You have specified just one axis sample - minimum axis sample value is 2 (one at the beginning, one at the end).



Hmm, but I notice Cylinder does not have caps :expressionless: … which you will miss next, right?


irrisor said:

You have specified just one axis sample - minimum axis sample value is 2 (one at the beginning, one at the end).

Hmm, but I notice Cylinder does not have caps :| ... which you will miss next, right?




Thanks, you are right ;))

No, I didn't miss the caps cause it is only a dummy, but If you can tell me how to get them, why not? :D
campino said:

No, I didn't miss the caps cause it is only a dummy, but If you can tell me how to get them, why not? :D

Well, someone would have to enhance the Cylinder class and add caps... :)