jPCT-AE - a 3d engine for Android > Support

Vertex colouring from last jPCT-AE version

<< < (5/5)

mxar:

Hi again,

there are cases vertex normal are pre-known. In such case, these normals describe the real-world object more accurately than the calculated ones.

Is there a way to give the jPCT-AE engine the known normal?

Can I use vertex or fragment shaders to use the pre-known vertex normals when building Object3D models with this constructor?


 Object3D object3D = Object3D(float[] coordinates, float[] uvs, int[] indices, int textureId)

Thanks in advance


EgonOlsen:
Try this version: http://jpct.de/download/beta/jpct_ae.jar

I've added a new constructor that takes an additional normals arrays of the same size as the coordinates array and applies it.

mxar:
Many thanks,

 this beta version is exactly the same with 1.29 version?

 The addition of new Object3D constructor is the only difference with version 1.29?

Thanks in advance

EgonOlsen:
Yes, more or less. It also includes a correction in the spelling of the createPyramid() method in ExtendedPrimitives, but other than that, it's the same thing.

mxar:
Ok

thanks

Navigation

[0] Message Index

[*] Previous page

Go to full version