Skip to main content

a 3d object disappear at some position

3 replies [Last post]
pacgyver
Offline
Joined: 2010-05-05

Hello.

I have made a simple scene with 3 boxes.

On this image, you can see them :
http://img84.imageshack.us/img84/1019/imagewiththirdbox.png

I have a classe wich represent this type of boxe (WireFrameRepresentedBox).
I made 3 of it, and give it to another object (Box3dCreator) wich is a bit like a factory, and permit to put boxes at the right place.

If i put the 3rd box at a 0.999 position on z axis, it appear as on the image you have seen.
But if the position is 1 on z axis, it disappear, as on this new image :
http://img687.imageshack.us/img687/4171/imagewithoutthirdbox.png

You can see that the text, wich is a part of the box, is still visible.

Do you have an idea of where can the problem come from ?

I can post some source code, but it's very long.

thx.
Pac

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
darwinjob
Offline
Joined: 2004-11-16

>You can see that the text, wich is a part of the box, is still visible.

why does not it move together with the box then?

Marcel nagm

Well, Is far as i know.
That can be the bounds of the object is out of your vision.
Its my ideia,check if that works.

2010/6/22

> Hello.
>
> I have made a simple scene with 3 boxes.
>
> On this image, you can see them :
> http://img84.imageshack.us/img84/1019/imagewiththirdbox.png
>
> I have a classe wich represent this type of boxe (WireFrameRepresentedBox).
> I made 3 of it, and give it to another object (Box3dCreator) wich is a bit
> like a factory, and permit to put boxes at the right place.
>
> If i put the 3rd box at a 0.999 position on z axis, it appear as on the
> image you have seen.
> But if the position is 1 on z axis, it disappear, as on this new image :
> http://img687.imageshack.us/img687/4171/imagewithoutthirdbox.png
>
> You can see that the text, wich is a part of the box, is still visible.
>
> Do you have an idea of where can the problem come from ?
>
> I can post some source code, but it's very long.
>
> thx.
> Pac
> [Message sent by forum member 'pacgyver']
>
> http://forums.java.net/jive/thread.jspa?messageID=475355
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>
>

--
Atc. Marcel Nagm
"Rico é o homem que tem fé em si e em Deus"
[att1.html]

robroche
Offline
Joined: 2010-05-19

Hey,

I would check your Front and Back Clip Distances and make sure they have the correct ratio( I believe 1000-3000 back:front [See Java3D JavaDocs] ) and if that doesn't work you could try a CULL_NONE which I believe is part of the PolygonAttributes which is part of the Appearance Object for a particular Shape3D Object.

Hope this helps.

Rob