Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDrawLoader Example: Demonstrate loading flat colors to match instruction booklet style #23098

Merged
merged 4 commits into from
Dec 29, 2021

Conversation

gkjohnson
Copy link
Collaborator

Related issue: --

Description

Adds a "Flat Colors" option to the LDrawLoader example to better match the rendering style used in official lego instruction manuals.

Live demo:

https://raw.githack.com/gkjohnson/three.js/ldraw-flat-colors/examples/webgl_loader_ldraw.html

Default Flat Colors Instruction Manual
image image image
image image image

Comparing to the instruction manuals again it definitely looks like the instruction manual rendering is a bit more stylized with subtle lighting and uses an orthographic camera but I think the flat materials suit the instruction book look more closely. It seems this is also how at least one of the LDraw editor tools, LeoCAD, renders the models.

cc @yomboprime

@yomboprime
Copy link
Collaborator

It looks great. Im on mobile, cant read the code ATM

@mrdoob mrdoob added this to the r137 milestone Dec 28, 2021
@mrdoob mrdoob merged commit 4f3f8d0 into mrdoob:dev Dec 29, 2021
@mrdoob
Copy link
Owner

mrdoob commented Dec 29, 2021

Thanks!

@gkjohnson gkjohnson deleted the ldraw-flat-colors branch December 29, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants