www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on December 23, 2016, 01:40:26 pm

Title: Special Vertices
Post by: AGP on December 23, 2016, 01:40:26 pm
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?).
Title: Re: Special Vertices
Post by: EgonOlsen on December 23, 2016, 06:52:07 pm
I'm not sure. Is this question just about how to store them or about how to render them?
Title: Re: Special Vertices
Post by: AGP on December 24, 2016, 07:02:44 pm
Storing. I have to be able to identify them at runtime in order to attach dynamically-created things like hair or capes.
Title: Re: Special Vertices
Post by: EgonOlsen on December 25, 2016, 12:21:46 pm
I guess I would Just extend Object3D then and add them as extra attributes.