L3D - The Starts of a 3D Lib

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: L3D - The Starts of a 3D Lib

Post 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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: L3D - The Starts of a 3D Lib

Post 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
10$man
Citizen
Posts: 77
Joined: Sun Apr 22, 2012 10:40 pm

Re: L3D - The Starts of a 3D Lib

Post 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.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: L3D - The Starts of a 3D Lib

Post 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
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests