[Papervision3D] What's this bug?
Florian F.
pezf68 at gmail.com
Wed Jun 13 16:54:57 EDT 2007
Not sure I've understood everything :/
What do you mean by a "BoxWorld" group? Is it an empty Cube or some kind of
container for my 6 planes?
> nullObject.z = camera.z + 1000000;
> scene.render(camera);
>
> What this does is make the z-depth of the boxworld go waaayyyy out there.
>
You're changing the null object z-depth but why the boxworld's z-depth is
changing too?
Collin Cusce wrote:
>
> Ah ok.. let's see.
>
> Well there's a few ways to tackle it, but the best way I've seen is to
> *force* the depth of the camera to always be less than the billboard. This
> means you make a "BoxWorld" group, and add a DisplayObject3D which is
> completely empty. Right before you render, make the z-position of the
> completely empty display object to be extremely large and away from the
> camera....
>
> like this:
>
> billboard = new Plain(yadda);
> WorldEnd = new DisplayObject3D();
> nullObject = new DisplayObject3D();
> BoxWorld = new Cube();
> WorldEnd.addChildren(nullObject, BoxWorld);
>
> and before you render
>
> nullObject.z = camera.z + 1000000;
> scene.render(camera);
>
>
> What this does is make the z-depth of the boxworld go waaayyyy out there.
> This means it will render first, and the plane will render second and
> appear
> as it should.
>
> Let me know if that works for you or if you need any more explanation.
>
> On 6/13/07, Florian F. <pezf68 at gmail.com> wrote:
>>
>>
>> Thanks for your answer, Collin.
>> Actually, if I could avoid a shrink operation it would be better. So I'm
>> interested in how you resolve this issue.
>>
>>
>> Collin Cusce wrote:
>> >
>> > I havent looked at the code, but it appears, and this is just a guess
>> mind
>> > you, that the plane extends past the length of the wall. It appears
>> > sometimes because of the way Papervision handles z-sorting.
>> >
>> > If you do not want that to happen, shrink the plane by 1/5th the size
>> and
>> > it
>> > wont go through the wall.
>> >
>> > According to developers, z-sorting is not a bug but a feature. In lieu
>> of
>> > proper z-buffer tables, they sort on depth, which in turn makes for
>> faster
>> > rendering times. However, you will see artifacts from time to time
>> because
>> > of this. I've worked out this problem, so if you dont want to shrink
>> the
>> > plane, respond as such, and I'll give you a solution.
>> >
>> > On 6/13/07, Florian F. <pezf68 at gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I came across this bug **while doing a tutorial on my blog (check the
>> >> color plane when you move the camera) :
>> >>
>> >>
>> >>
>> http://pez.cliranet.com/VisionneuseCubeHotspots/bin/VisionneuseCubeHotspots.html
>> >>
>> >> Source code is here :
>> >>
>> >>
>> >>
>> http://pez.cliranet.com/VisionneuseCubeHotspots/src/VisionneuseCubeHotspots.as
>> >>
>> >> Try also to push the color plane further and you'll see it disappears
>> >> sometimes :-/
>> >>
>> >> Any idea?
>> >>
>> >> --
>> >> Florian
>> >> _______________________________________________
>> >> Papervision3D mailing list
>> >> Papervision3D at osflash.org
>> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >>
>> >>
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/What%27s-this-bug--tf3915866.html#a11106036
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/What%27s-this-bug--tf3915866.html#a11108695
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list