The MASM Forum Archive 2004 to 2012

Project Support Forums => OpenGL Forum => Topic started by: Farabi on November 07, 2008, 04:31:04 AM

Title: Model Loader
Post by: Farabi on November 07, 2008, 04:31:04 AM
Anyone have a model loader that load one or more 3D File format? (like 3ds, obj etc)
Title: Re: Model Loader
Post by: Draakie on November 10, 2008, 08:29:15 AM
Wrote one a couple months back for 3DS - still needs a lot more features - but works.
Uses recursive method. Reasonable support for the strange and wonderfull (un-tested).
Works with  17 models I've thrown at it. Hubby was impressed.  :U  But YES it could be
allot better - should actually have flogged it in The Lab weeks ago.

Should I post it?

Draakie
Title: Re: Model Loader
Post by: Farabi on November 10, 2008, 11:50:45 PM
Quote from: Draakie on November 10, 2008, 08:29:15 AM
Wrote one a couple months back for 3DS - still needs a lot more features - but works.
Uses recursive method. Reasonable support for the strange and wonderfull (un-tested).
Works with  17 models I've thrown at it. Hubby was impressed.  :U  But YES it could be
allot better - should actually have flogged it in The Lab weeks ago.

Should I post it?

Draakie
Why not Draakie?
I did use the .obj loader from hitchkr example but it doesnot work, also, the glmDraw function is so slooow.
Title: Re: Model Loader
Post by: Draakie on November 11, 2008, 05:25:13 AM
QuoteWhy not Draakie?

Erm...
1. Just wanted to know if that's what you were looking for.
2. Perhaps you found something already [non-3ds or otherwise]

OK. Will post in the LAB shortly.

Draakie
Title: Re: Model Loader
Post by: Farabi on November 11, 2008, 01:12:08 PM
Quote from: Draakie on November 11, 2008, 05:25:13 AM
QuoteWhy not Draakie?

Erm...
1. Just wanted to know if that's what you were looking for.
2. Perhaps you found something already [non-3ds or otherwise]

OK. Will post in the LAB shortly.

Draakie

Wel drakiee, if that was copyrighted algo, dont post it.
1. It is what I looking for.
2. Yes I did, but it too slow.
Title: Re: Model Loader
Post by: Draakie on November 11, 2008, 05:07:02 PM
http://www.masm32.com/board/index.php?topic=10318.0

There ya go. :wink
Title: Re: Model Loader
Post by: BogdanOntanu on November 11, 2008, 09:40:57 PM
Quote
Wel drakiee, if that was copyrighted algo, dont post it.

Farabi, anything that you did not write your self IS COPYRIGHTED by default under the current laws, the copyright belongs to the original author even if the author does not say so clearly. There is no way under the law that he can loose his copyrights.

In consequence you either write it yourself without copy paste (the safest option) OR you get a permission in writing  from the original author OR the author is kind and releases it with a free or liberal license but even so under the law some restrictions do apply  ;)

For example you can never claim that you have written the code.

So, my advice would be that you check available code and examples like the one that Draakie so kindly provided (and others) and try to understand them and when you did really understood them then you do write your own.

The only valid proof that you understood something and you are now "over it" is when you are able to create it from scratch with ease.
Title: Re: Model Loader
Post by: Farabi on November 13, 2008, 11:15:06 AM
Quote from: BogdanOntanu on November 11, 2008, 09:40:57 PM
Quote
Wel drakiee, if that was copyrighted algo, dont post it.

Farabi, anything that you did not write your self IS COPYRIGHTED by default under the current laws, the copyright belongs to the original author even if the author does not say so clearly. There is no way under the law that he can loose his copyrights.

In consequence you either write it yourself without copy paste (the safest option) OR you get a permission in writing  from the original author OR the author is kind and releases it with a free or liberal license but even so under the law some restrictions do apply  ;)

For example you can never claim that you have written the code.

So, my advice would be that you check available code and examples like the one that Draakie so kindly provided (and others) and try to understand them and when you did really understood them then you do write your own.

The only valid proof that you understood something and you are now "over it" is when you are able to create it from scratch with ease.


Thanks Bogdan, It nice information. I dont really understand about the law.
Title: Re: Model Loader
Post by: Mark Jones on November 13, 2008, 05:02:12 PM
I do not understand, where did Drakkie ever say this was not her work? It appears to be hers. Nice work.
Title: Re: Model Loader
Post by: BlackVortex on November 13, 2008, 05:20:47 PM
Quote from: Mark Jones on November 13, 2008, 05:02:12 PM
I do not understand, where did Drakkie ever say this was not her work? It appears to be hers. Nice work.

::)
Actually, she specifically said its her work. Don't know why the copyright bomb dropped in here.
Title: Re: Model Loader
Post by: BogdanOntanu on November 13, 2008, 05:39:34 PM
It is easy / simple:

See my quote from Farabi above. Farabi told Draakie that "IF it is copyrighted work THEN do not post it..."

I found this remark very funny because automatically ALL original work "is copyrighted" by default. Of course it is copyrighted by Draakie in this case. Hence I have tried to explain a few things about copyright to Farabi .... that is all ;)

I did this because I "sense" a little tendency of Farabi to ask for people's code probably in order to copy and paste into his project of the day. In this case It "might" be OK to do this IF Draakie agrees BUT in the long term... sooner or later with no understanding of copyright law Farabi might get into some kind of trouble.

I wanted to explain him some common details of the copyright laws and maybe save him some problems in the future.

Apparently by his remark he did not understood it and unfortunately not knowing or not understanding the law is not acceptable as a defense in a court of law :D

Title: Re: Model Loader
Post by: Draakie on November 13, 2008, 07:23:27 PM
QuoteI do not understand, where did Drakkie ever say this was not her work? It appears to be hers. Nice work.

I'am flattered, YES it's waaaaaay toooo sloppy not to be mine  :P, Except for large influences of Hitchikers opengl framework.
It's really pre-alpha - but I did'nt have time to hammer it into shape, as explained.

Do with it whatever you wish - just post your solutions so that I might learn. Tit-for-tat

Thanks
Draakie
Title: Re: Model Loader
Post by: Farabi on November 14, 2008, 05:32:35 AM
Drakiee, I got error message: "Cannot create openGL instance".
Title: Re: Model Loader
Post by: Farabi on November 14, 2008, 05:41:22 AM
Anyway does anyone know why hitchickr Vertex_Array_And_WaveFront_Obj example did not work?
Title: Re: Model Loader
Post by: dancho on November 14, 2008, 09:20:50 AM
@Farabi

check this :

http://www.lib3ds.org/

and this:

http://www.flipcode.com/archives/

/* great collection of tutorials and articles */
Title: Re: Model Loader
Post by: Farabi on November 14, 2008, 12:47:22 PM
 :eek Thats weird, suddenly Vertex_Array_And_WaveFront_Obj example is working. Whats wrong with my PC?
Title: Re: Model Loader
Post by: Draakie on November 14, 2008, 01:24:17 PM
QuoteDrakiee, I got error message: "Cannot create openGL instance".

Open GL Window creation at 16-bit high colour 800x600 failure - Looks like you've got
graphics card configuration issues.

Draakie