Author Topic: Near plane clipping (was: techniques for displaying text)  (Read 2408 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Near plane clipping (was: techniques for displaying text)
« Reply #15 on: January 06, 2016, 07:08:16 am »
jPCT isn't a scene graph engine and it's not going to become one.

Edit: But for Object3Ds, you can get some of the wanted behaviour by using the child/parent relations. These can include dummy Object3Ds as well, which are empty, not part of the world and just act as containers for some common transformations for all of their children.
« Last Edit: January 06, 2016, 07:17:14 am by EgonOlsen »

Offline MichaelJPCT

  • long
  • ***
  • Posts: 140
    • View Profile
Re: Near plane clipping (was: techniques for displaying text)
« Reply #16 on: June 12, 2016, 08:09:14 am »
hello, i retry making a JPCT game and downloaded the JPCT package from the JPCT download page, the package doesn't contain this nearclip fix?
and i tried the newer beta version from the link in this post. in this version Camera.adjustFovToNearPlane() method doesn't require argument anymore? how can the method know which World should the Camera adapt to? and Java reports that a deprecated method is invoked if i use this version.
another question, can the Android version have this nearclip fix?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Near plane clipping (was: techniques for displaying text)
« Reply #17 on: June 12, 2016, 04:52:21 pm »
The beta version moves the setClippingPlanes into Camera, where they actually belong. The method in World is still there though, which gives you the deprecated warning when using it. Consider to refactor your code to use the method on Camera instead.
The jPCT-AE beta can be found here: jpct.de/download/beta/jpct_ae.jar. It should include the same fixes.

Offline MichaelJPCT

  • long
  • ***
  • Posts: 140
    • View Profile
Re: Near plane clipping (was: techniques for displaying text)
« Reply #18 on: June 14, 2016, 04:26:16 pm »
great! i will try these.