Skip to content

Conversation

@hai-vr
Copy link
Owner

@hai-vr hai-vr commented Feb 14, 2020

No description provided.

@hai-vr hai-vr added the not-ready-for-review This is a work in progress, the PR is not ready for review and integration. label Feb 14, 2020
Copy link
Owner Author

@hai-vr hai-vr left a comment

Choose a reason for hiding this comment

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

⛔ This guide is not up to date


- Create a black point light with the following settings:
- realtime
- radius: 0.9 (**it is important to keep the radius very small**)
Copy link
Owner Author

Choose a reason for hiding this comment

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

0.9 may be too large

- Disable cast shadows.
- Disable receive shadows.
- Set Override Anchor to be the hips of the avatar.
- Use **INSERT PLUGIN NAME** and multiply the bounding box values of the MeshRenderer by 100.
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is super hard. Also use 1024 instead of 100 for consistency


If not already done, reduce the avatar to use a few materials and ideally one mesh. Having many materials and meshes will make the job extremely difficult.

## Text editor: Create a shader to hide the real arm of the main avatar
Copy link
Owner Author

Choose a reason for hiding this comment

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

Remove this section and add a link the the advanced shader guide.

- Add a geometry shader or edit the existing one.
- In the geometry shader, return immediately if the fake arm is enabled AND the values of green and blue are zero.

## Text editor: Create a shader to show the fake arm
Copy link
Owner Author

Choose a reason for hiding this comment

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

Remove this section and add a link the the advanced shader guide.

In a copy of your main avatar:

- Select the vertex groups of hand & fingers, forearm and upper arm. Don't select the shoulder.
- Use Vertex painting to set these vertices RED (1.0, 0.0, 0.0).
Copy link
Owner Author

Choose a reason for hiding this comment

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

The color needs to be reviewed to support the left arm.

- Select the vertex group of hand & fingers and forearm.
- Set the vertex color to RED (1.0, 0.0, 0.0).
- Select the vertex group of upper arm.
- Set the vertex color to GREEN (0.0, 1.0, 0.0).
Copy link
Owner Author

Choose a reason for hiding this comment

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

The colors are wrong since the vertex painting has completely changed.

- Select the vertex group of upper arm.
- Set the vertex color to GREEN (0.0, 1.0, 0.0).
- Select all vertices.
- Perform a vertex paint smoothing.
Copy link
Owner Author

Choose a reason for hiding this comment

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

May need to find another way to copy the vertex paint. Mandate usage of another lightweight editor script here?

- radius: 0.9 (**it is important to keep the radius very small**)
- color: (0, 0, 0, 255)
- not important
- intensity: the random value you chose
Copy link
Owner Author

Choose a reason for hiding this comment

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

Mention usage of negative light intensity

- Set the main avatar skinned mesh renderer material property to enable the fake arm.
- Set the fake arm mesh renderer material property to enable the fake arm.
- Add that gesture animation to your animator controller.
- Make sure the avatar uses that animator controller.
Copy link
Owner Author

Choose a reason for hiding this comment

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

There is another animation strategy to hide the arm

@hai-vr hai-vr changed the title Create advanced modification guide. ⛔ Create advanced modification guide. Feb 14, 2020
@hai-vr hai-vr added the contains-wrong-information The content of the branch is misleading. label Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contains-wrong-information The content of the branch is misleading. not-ready-for-review This is a work in progress, the PR is not ready for review and integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants