Special Vertices

Started by AGP, December 23, 2016, 01:40:26 PM

Previous topic - Next topic

AGP

I'm taking the opportunity, as I finish my JSON-serialized format, to make special vertices (I'm thinking of three types at the moment, "regular," "hair," and "cloth" from which I might hang a runtime-generated cape). Where do you recommend I store this information (what might I subclass? Object3D? PolygonManager? SimpleVector?).

EgonOlsen

I'm not sure. Is this question just about how to store them or about how to render them?

AGP

Storing. I have to be able to identify them at runtime in order to attach dynamically-created things like hair or capes.

EgonOlsen

I guess I would Just extend Object3D then and add them as extra attributes.