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

Basic node import #19

Merged
merged 37 commits into from
Jan 12, 2020
Merged

Basic node import #19

merged 37 commits into from
Jan 12, 2020

Conversation

ShellyHerself
Copy link
Member

@ShellyHerself ShellyHerself commented Aug 31, 2019

Doesn't support different shapes right now.

This should be all the basic functionality we need, but right now we're running issues with some bugs in the reclaimer library. I'd like to fix those and then test this all again.
Once we can fix the bugs in those libraries we might as well move the mode to mod2 conversion function into reclaimer instead of mozzarilla too, so we don't need to include it in our code.

If you try this, and you see the nodes all jumbled up in a little mess, that's the bug in reclaimer's doing. I'll update this pull request once we've made progress on that.

@ShellyHerself
Copy link
Member Author

The bug in reclaimer should be fixed once the pull request is accepted.

I consider this pull request final now.

@ShellyHerself
Copy link
Member Author

That is, final if the conversion function isn't suddenly moved before we've handled this.

@ShellyHerself
Copy link
Member Author

This should be ready for re-review now.

@ShellyHerself
Copy link
Member Author

Supports setting scaling, sizes for nodes. By default imports at Blender's metric (meters) size. Supports .gbxmodel, .model, .jms files.

@Mimickal
Copy link
Member

Mimickal commented Dec 9, 2019

I know we don't have Blender mocks yet, but if we did, what automated tests would you write? Let's get that stuff written down somewhere (preferably an issue) so we don't forget to add test coverage for this stuff later.

Indirectly fix a module being registered instead of unregistered.
@ShellyHerself
Copy link
Member Author

@Mimickal I made issue #21 as a response to your last comment.

@ShellyHerself
Copy link
Member Author

ShellyHerself commented Jan 10, 2020

Addressed review comments


return sphere

def create_cone(name="new_cone", base_size=1.0, height=3.0):
Copy link
Member

Choose a reason for hiding this comment

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

The only difference between create_sphere and create_cone is the calls bmesh.ops.create_uvsphere and bmesh.ops.create_cone. Can we do something to reduce the boilerplate required for any new shape?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but I'd like to get the importing done at a basic level before I go in and do good stuff for shapes. I want to get models in before I worry about those details.

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to move onto markers, and then geometry before I worry too much about the shapes of the nodes and markers

@ShellyHerself ShellyHerself merged commit babc0e4 into develop Jan 12, 2020
@ShellyHerself ShellyHerself deleted the nodes branch January 12, 2020 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants