www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: paulscode on December 30, 2008, 10:50:21 pm

Title: Billboarded child of dummy object not visible (jPCT beta)
Post by: paulscode on December 30, 2008, 10:50:21 pm
I have tracked the invisible Object3D problem down to whenever the Object3D in question is billboarded and is the child of an Object3D.createDummyObj().  Problem only occurrs in the latest beta version of jPCT.  Should be simple to replicate, but if you need a test case I can post one.
Title: Re: Billboarded child of dummy object not visible (jPCT beta)
Post by: EgonOlsen on December 30, 2008, 11:23:42 pm
That means it works when the parent isn't a dummy? Has the dummy been added to the world as any normal object would have been?
Title: Re: Billboarded child of dummy object not visible (jPCT beta)
Post by: paulscode on December 31, 2008, 12:03:44 am
Doesn't seem to make a difference if it was added to the world or not.  There is no problem of course if the parent Object3D is not a dummy, as you probably already know from your recent tests on the billboarded child scale-inheritance issue.

--EDIT--
Using a "new Object3D( 0 )" for the parent has the same problem.  Adding it to the world and/or calling "build()" on it has no effect either.  However, making it a "new Object3D( 1 )" and calling "build()" seems to work (whether adding it to the world or not).  In either case, the problem only occurs if the child Object3D in question is billboarded.  Also, it doesn't seem to make any difference how far down the chain of inheritance the billboarded object is (it could be the great grandchild of a dummy and it will still be invisible).
Title: Re: Billboarded child of dummy object not visible (jPCT beta)
Post by: EgonOlsen on December 31, 2008, 12:54:05 pm
Ok, i've updated the jar with a version that should fix this. Objects with a size of 0 had a scaling of 0. This was more by accident than intentionally, so i've changed this.
Title: Re: Billboarded child of dummy object not visible (jPCT beta)
Post by: paulscode on December 31, 2008, 01:21:53 pm
Awesome!  Works great now.