- 3,746
Hi, another Java programming thread from me, but this time it's Java3D. I've got a 3D Graphics assignment to design a 3d map, and I've decided to map the Interlagos circuit (I did Silverstone for the 2d assignment). We've had a 50 minute lecture on Java3D and basically been told to go and learn it ourselves, so I've been looking at examples and I've downloaded the J3D tutorials (which I don't seem to be having much success in using). The API is also a bit abstract (pardon the pun), it's very different from the Java API I'm fairly used to.
Anyway, on to my problem...at the moment I've got a text file with a load of 3d co-ordinates in it for specific points on the circuit (taken from a map of the circuit at small intervals) and I'm simply making Boxes at each sample point. Not elegant at all, I know, but it seems to be working. However, I can't see all of what I've drawn at once (see the attached screenshot below, the boxes are coloured red/green and blue just so I can see the overlap). At first I thought this was just due to the size of my BoundingSpheres on the lights and/or the contentBranch or viewBranch, however, I've increased the radius of these to a figure orders of magnitude larger than the biggest value I'm using (all of the BoundingSpheres for lighting, content and viewBranches are 100000 in radius and my largest X co-ordinate is less than 90).
I'm feeling very lost on this at the moment, so any advice would be very, very appreciated
I've also attached the source to this post, it's only minimally commented, partly because I'm not sure what most of the framework stuff does exactly.
edit: Got this sorted last week at uni. Increasing the back clip distance of the View solved it.
Anyway, on to my problem...at the moment I've got a text file with a load of 3d co-ordinates in it for specific points on the circuit (taken from a map of the circuit at small intervals) and I'm simply making Boxes at each sample point. Not elegant at all, I know, but it seems to be working. However, I can't see all of what I've drawn at once (see the attached screenshot below, the boxes are coloured red/green and blue just so I can see the overlap). At first I thought this was just due to the size of my BoundingSpheres on the lights and/or the contentBranch or viewBranch, however, I've increased the radius of these to a figure orders of magnitude larger than the biggest value I'm using (all of the BoundingSpheres for lighting, content and viewBranches are 100000 in radius and my largest X co-ordinate is less than 90).
I'm feeling very lost on this at the moment, so any advice would be very, very appreciated
I've also attached the source to this post, it's only minimally commented, partly because I'm not sure what most of the framework stuff does exactly.
edit: Got this sorted last week at uni. Increasing the back clip distance of the View solved it.