If ObjModel.Load() turns out to be the bottleneck, you can convert the MD2
files (always make back up of the originals) as binary. And thus load them
directly to the arrays, which is much faster.



Jussi

On Fri, Sep 11, 2015 at 5:02 AM, Kevin Fishburne <
kevinfishbu...@eightvirtues.com> wrote:

> On 09/09/2015 09:08 AM, Tobias Boege wrote:
>
>> On Wed, 09 Sep 2015, Kevin Fishburne wrote:
>>
>>> The actual mechanics for loading the assets are Tobias Boege's
>>> ObjModel.class for loading Wavefront OBJ files (3D models)
>>>
>> Are you sure it's my code? I don't even know what a Wavefront is :-)
>> But I haven't found any mention of ObjModel in my mail archives so I
>> can't properly attribute the class to anyone else... OTOH, if it causes
>> slowdowns it might very well be mine... :-)
>>
>
> Hi Tobi. I think it was you. I believe it is the same author as the MD2
> loading/animation class included as an example in Gambas, but that you'd
> never published/distributed it. I've attached the class (with a few
> modifications by me) to this email. Basically it has a method to load OBJ
> files (exported from Blender) into a display list and a method to
> draw/render the list. It has no animation or material support, but works
> great.
>
>
> --
> Kevin Fishburne
> Eight Virtues
> www: http://sales.eightvirtues.com
> e-mail: sa...@eightvirtues.com
> phone: (770) 853-6271
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to