Page 6 of 6
Re: L3D - The Starts of a 3D Lib
Posted: Sat Nov 03, 2012 3:30 am
by substitute541
Ref wrote:Surprised that you order your triangles using the 'left-hand' rule.
Though most implimentations use the 'right_hand' rule???
To get the lighting to work correctly, I had to use 'left-hand' point order - see attached.
Who's one is using the left-hand rule? I am using the right hand rule.
Re: L3D - The Starts of a 3D Lib
Posted: Sat Nov 03, 2012 3:21 pm
by Ref
Ahm!
Try checking:
love3D.preset.triCube3D(sideLength, ox, oy, oz)
Think you will find that it used the left hand rule.
If you try my attached demo (above), I had to change the facets to left hand for the lighting to track properly.
Not stomping on your program (which is great), just an observation.
Best
Re: L3D - The Starts of a 3D Lib
Posted: Sat Nov 03, 2012 5:59 pm
by 10$man
Ahm!
Try checking:
love3D.preset.triCube3D(sideLength, ox, oy, oz)
Think you will find that it used the left hand rule.
If you try my attached demo (above), I had to change the facets to left hand for the lighting to track properly.
Not stomping on your program (which is great), just an observation.
Best
Excuse me, if you would like to help substitute with his 3d library, would you mind posting in his topic instead? I would prefer for my projects topic to stay on topic.
Thank you.
Re: L3D - The Starts of a 3D Lib
Posted: Sat Nov 03, 2012 10:53 pm
by Ref
Sorry for my confusion.
Lost track of who is doing what.
Just trying to use Love3d, Light3d & Present3D.
Will avoid your topic in the future.
Best