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

Ability to add primitive meshes (Planes, Cubes) #192

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

JamesTKhan
Copy link
Owner

I needed this ability for the Game Jam so worked it in quickly. You can now add Cubes and Planes meshes from the editor, good for prototyping and creating quick floors, walls, etc..

On create of plane or cube, first checks if a standard_cube or standard_plane model asset already exists, if so, it creates a new GO using the existing asset, else generates a new mesh in code, then creates a new model asset.

Untitled.34.mp4

@JamesTKhan
Copy link
Owner Author

Discovered a bug with this. Need to generate Tangents as well otherwise Normal Maps do not work. Will fix after jam completed.

@JamesTKhan
Copy link
Owner Author

Fix added

@JamesTKhan JamesTKhan merged commit 0e176dc into master Jun 28, 2023
1 check passed
@JamesTKhan JamesTKhan deleted the add-primitive-meshes branch June 28, 2023 18:58
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.

1 participant