Author Topic: Billboarded child of dummy object not visible (jPCT beta)  (Read 4520 times)

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Billboarded child of dummy object not visible (jPCT beta)
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Billboarded child of dummy object not visible (jPCT beta)
« Reply #1 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?

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: Billboarded child of dummy object not visible (jPCT beta)
« Reply #2 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).
« Last Edit: December 31, 2008, 12:21:19 am by paulscode »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Billboarded child of dummy object not visible (jPCT beta)
« Reply #3 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.
« Last Edit: December 31, 2008, 07:02:35 pm by EgonOlsen »

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: Billboarded child of dummy object not visible (jPCT beta)
« Reply #4 on: December 31, 2008, 01:21:53 pm »
Awesome!  Works great now.