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

NodeEditor: Add missing position entries #23310

Merged

Conversation

fyoudine
Copy link
Contributor

Add missing position entry according to PositionNode
Add missing normal entry according to NormalNode
Add missing Angle/Trigonometry functions

Add missing normal entry according to NormalNode
Add missing Angle/Trigonometry functions
@fyoudine fyoudine mentioned this pull request Jan 24, 2022
@@ -13,7 +13,8 @@ export class NormalEditor extends BaseNode {
const optionsField = new SelectInput( [
{ name: 'Local', value: NormalNode.LOCAL },
{ name: 'World', value: NormalNode.WORLD },
{ name: 'View', value: NormalNode.VIEW }
{ name: 'View', value: NormalNode.VIEW },
{ name: 'Geometry', value: NormalNode.GEOMETRY },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we can remove it , and others at the end of the array.

@@ -10,12 +10,19 @@ export class TrigonometryEditor extends BaseNode {

const node = new MathNode( MathNode.SIN, DEFAULT_VALUE );

super( 'Trigonometry', 1, node, 175 );
super( 'Angle / Trigonometry', 1, node, 220 );
Copy link
Collaborator

@sunag sunag Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I had separated Angle from Trigonometry in Editor. @mrdoob Some suggestion?

Copy link
Owner

@mrdoob mrdoob Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean having a node that mostly converts radians to degrees?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, yes. A Node in Editor only for it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that sounds good yes 👍

@sunag sunag changed the title NodeEditor Add missing position entries NodeEditor: Add missing position entries Jan 24, 2022
@mrdoob mrdoob added this to the r137 milestone Jan 24, 2022
@sunag sunag merged commit 1a0abe4 into mrdoob:dev Jan 25, 2022
@sunag
Copy link
Collaborator

sunag commented Jan 25, 2022

@mrdoob I will merger and make an cleaup.
@fyoudine Thanks!

@sunag sunag mentioned this pull request Jan 25, 2022
@fyoudine fyoudine deleted the feature/nodeEditor-add-missing-node-options branch January 25, 2022 22:02
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.

3 participants