Billboarded child of dummy object not visible (jPCT beta)

Started by paulscode, December 30, 2008, 10:50:21 PM

Previous topic - Next topic

paulscode

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.

EgonOlsen

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?

paulscode

#2
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).

EgonOlsen

#3
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.

paulscode