Author Topic: Documentation Error  (Read 3383 times)

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Documentation Error
« on: March 20, 2018, 09:40:16 pm »
The docs for Object3D state:

Quote
public Object3D(float[] coordinates,
                float[] normals,
                float[] uvs,
                int[] indices,
                int textureId)
uvs - the texture coordinates [u1,v1,u2,v2,...]

When in fact it seems to read ws too (thus being u1, v1, w1, u2, v2, w2...).

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Documentation Error
« Reply #1 on: March 20, 2018, 10:24:45 pm »
Well...no, it doesn't. jPCT has no concept of w? when it comes to texture coordinates.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Documentation Error
« Reply #2 on: March 22, 2018, 04:41:14 am »
They made more sense when I added them, though, if still not perfect.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Documentation Error
« Reply #3 on: March 29, 2018, 09:02:45 pm »
But that would just screw up the coordinates. I'm using the array as u1,v1,U2,v2...etc. Adding a w to that will just mix the uvs wildly.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Documentation Error
« Reply #4 on: April 20, 2018, 11:59:31 am »
I've already solved it by re-working the format. The bones thing is getting really close (except for the mysterious weights thing).