News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

OpenGL shape Collection.

Started by Farabi, April 26, 2005, 03:13:04 AM

Previous topic - Next topic

Farabi

Hi. If you have a open GL object you create like a truck, human, plane, or anything to share in MASM please put the source code here. So we have a object bank.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Tedd

'Objects' are just collections of shapes - data; not code. Meaning they aren't language specific, or even necessarily format specific (though some conversion might be required :P)

...Unless I'm missing your point and you are looking for code to just create a model?
No snowflake in an avalanche feels responsible.

Farabi

Quote from: Tedd on April 26, 2005, 10:54:14 AM
'Objects' are just collections of shapes - data; not code. Meaning they aren't language specific, or even necessarily format specific (though some conversion might be required :P)

...Unless I'm missing your point and you are looking for code to just create a model?

Ah ya, thats what I mean. Code to create a model.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Tedd

It's rare to write code to create, say, a car. The usual method is to have a data file with all the points for the object, load that into memory, and then go through that and 'build' the object. As for this method, once you know how to create a box, you're pretty much sorted for code :wink -- for which, there are many examples floating around (though not so many in asm, but it's mainly api, so it's not hard to convert.)

Unless we're talking 'procedural' objects (eg. auto-generated landscapes, fractal objects, L-systems), in which case it's all in the code :wink
No snowflake in an avalanche feels responsible.

Farabi

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

"Etos siperi elegi"

Tedd

#5
It depends what file format they are stored in. Once you have a file, you should know its format, and then you need to find out how that format works.
".3ds" and ".max" seem to be very common - see http://www.wotsit.org/search.asp?s=3d for many different formats.
And then it's a matter of reading the file into memory and 'decoding' the parts of the data you want (different formats store different types of information.)

By-the-by, it looks like that site only sells models, though they do have a links page to sites with free models http://www.amazing3d.com/modfree.html
Also, of course, you could try a web search with "3d model free" :wink
No snowflake in an avalanche feels responsible.

pbrennick

Hi Tedd,
Looks like BogdanOntanu beat me to the punch.  I still think checking with you first was the right thing to do.   :wink

Paul