The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
August 26, 2019, 01:24:21 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  Project Support Forums
| |-+  OpenGL Forum
| | |-+  Model Loader
« previous next »
Pages: [1] 2 Print
Author Topic: Model Loader  (Read 11268 times)
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Model Loader
« 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)
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Draakie
Member
*****
Gender: Female
Posts: 223


Mad hatter syndrome.....


Re: Model Loader
« Reply #1 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.  ThumbsUp  But YES it could be
allot better - should actually have flogged it in The Lab weeks ago.

Should I post it?

Draakie
Logged

Does this code make me look bloated ? (wink)
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Model Loader
« Reply #2 on: November 10, 2008, 11:50:45 PM »

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.  ThumbsUp  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.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Draakie
Member
*****
Gender: Female
Posts: 223


Mad hatter syndrome.....


Re: Model Loader
« Reply #3 on: November 11, 2008, 05:25:13 AM »

Quote
Why 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
Logged

Does this code make me look bloated ? (wink)
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Model Loader
« Reply #4 on: November 11, 2008, 01:12:08 PM »

Quote
Why 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.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Draakie
Member
*****
Gender: Female
Posts: 223


Mad hatter syndrome.....


Re: Model Loader
« Reply #5 on: November 11, 2008, 05:07:02 PM »

Logged

Does this code make me look bloated ? (wink)
BogdanOntanu
Global Moderator
Member
*****
Gender: Male
Posts: 1154


Re: Model Loader
« Reply #6 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.
Logged

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Model Loader
« Reply #7 on: November 13, 2008, 11:15:06 AM »

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.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Mark Jones
Drifting in the Abstract
Member
*****
Posts: 2302


=- Stargate Atlantis -=


Re: Model Loader
« Reply #8 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.
Logged

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08
BlackVortex
Member
*****
Posts: 983



Re: Model Loader
« Reply #9 on: November 13, 2008, 05:20:47 PM »

I do not understand, where did Drakkie ever say this was not her work? It appears to be hers. Nice work.

Roll Eyes
Actually, she specifically said its her work. Don't know why the copyright bomb dropped in here.
Logged
BogdanOntanu
Global Moderator
Member
*****
Gender: Male
Posts: 1154


Re: Model Loader
« Reply #10 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

« Last Edit: November 13, 2008, 08:44:01 PM by BogdanOntanu » Logged

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro
Draakie
Member
*****
Gender: Female
Posts: 223


Mad hatter syndrome.....


Re: Model Loader
« Reply #11 on: November 13, 2008, 07:23:27 PM »

Quote
I 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  Tongue, 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
Logged

Does this code make me look bloated ? (wink)
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Model Loader
« Reply #12 on: November 14, 2008, 05:32:35 AM »

Drakiee, I got error message: "Cannot create openGL instance".
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Model Loader
« Reply #13 on: November 14, 2008, 05:41:22 AM »

Anyway does anyone know why hitchickr Vertex_Array_And_WaveFront_Obj example did not work?
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
dancho
Member
****
Posts: 86


Re: Model Loader
« Reply #14 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 */
Logged
Pages: [1] 2 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!