Are shapes solid
This may sound a really odd question, but are Java3d shapes solid. By that I mean if I create a cube is there a space inside it or is it completely solid.
I realise this is a horrendous newbie question and it might not even make sense, but I'm trying really hard to get my head round the basics of java3d at the moment and not having done any 3d programming at all really it is quite confusing.
no shapes are not 'solid'
and yes thats a very newbie question :)
all 3D systems work on the principle that, if you can't see it - its not there!
I dont think here is the place to explain the fundamentals of 3d modelling, perhaps you should get a decent book on 3d principles.
rob,
> you have to excuse abuse; he doesn't get enough fiber
> in his diet.
that is true - I havn't had breakfast in a long time :-/
>
> abuse -- how about helping me debug my snipplet of
> code?
what code snippet? If its j3d, then, the answer is no :-P
j3d and awt/swing are hot contenders for the least desirable code to debug
rob,
That's kind of what I thought, pretty much.
Does this mean that if I had a cube and I cut a hole in one side I would be able to see the far side of the cube, as though I had cut a hole in a cardboard box, rather than having to cut a hole right through the cube or define the outer and inner surfaces independently to generate an internal space?
This is still quite obvious but in the various parts of java I have worked I have found that often things just don't work the way that seems obvious when you are coming to them for the first time and I've wasted a lot of time on trying to do the impossible in the past. I've got some books on Java 3d and on 3d modelling on the way, so I'll probably start to come across a little more informed once Amazon get around to sending me post...
you have to define all surfaces which are visible. in other words you will have extra indices; no new points needed. for example if the cube is hollow and both left surfaces are visible, the left wall will have two indices (one in counterclockwise (outer) and one clockwise (inner).