[Pas2js] OBJ loader with lighting example
Michael Van Canneyt
michael at freepascal.org
Mon May 21 12:24:56 CEST 2018
On Mon, 21 May 2018, Mattias Gaertner wrote:
> On Mon, 21 May 2018 12:15:50 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> On Mon, 21 May 2018, Ryan Joseph wrote:
>>
>> >
>> >
>> >> On May 21, 2018, at 4:49 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> >>
>> >> Can we add your demos to the pas2js demos in the FPC repository ?
>> >> (obviously with your name on it)
>> >
>> > Yeah but the demo has a 7MB .obj model in it. Maybe a smaller model is a better choice?
>>
>> Eh, 7Mb is not so much for a file ? Maybe I misunderstand your worry ?
>
> Why should all pas2js users download an extra 7MB for one example?
I don't think 7Mb is so much.
If something becomes >30Mb, I will maybe start to worry.
>
> Also: It takes a while to load the model. For a simple programming demo
> a simple obj file is enough.
Yes, but the dragon looks nice and is more impressive than the usual cube or
doughnut :)
Anyway, I get the message.
If it is not too much trouble to add/use another .obj file: fine,
I am already glad there is an example to begin with :)
Michael.
More information about the Pas2js
mailing list