www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on March 20, 2018, 09:40:16 pm

Title: Documentation Error
Post by: AGP 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...).
Title: Re: Documentation Error
Post by: EgonOlsen 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.
Title: Re: Documentation Error
Post by: AGP on March 22, 2018, 04:41:14 am
They made more sense when I added them, though, if still not perfect.
Title: Re: Documentation Error
Post by: EgonOlsen 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.
Title: Re: Documentation Error
Post by: AGP 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).