Results 1 to 6 of 6

Thread: 3D file formats

  1. #1
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    3D file formats

    Guys, I have been looking into various 3d File Formats and starting to understand a little bit how they work.
    Petr, did a great job in giving us a simple file format with M15, I didn't think so at first, but after I see the others... I see what a great job he did.

    My main thing is being able to use other packages and get more features. Mike of course wrote the awesome Blender Export script, but not being able to use a standard file format is limiting.

    I have looked at Collada and FBX, but they are very rich huge file formats not suitable for games.
    Obj is nice, but it doesn't support animation.

    This leaves 2 formats, DirectX's X format and 3ds. I am leaning towards 3ds. The reason when I was working with DirectX, not all programs had DirectX exporters, where as everyone seems to have 3ds support. I wanted to see if any of you had used anything else that you would recommend me looking in too. The format should support animation, texture maps, and transparency.

    I am thinking of developing a loader and then passing it on to Petr to refine with his tremendous skills.

    Here are some things that will be returned, let me know if you guys think of any others.

    Bounding Box size
    Center of object
    Radius of Object (this is used to set the camera so you always see the objects at a good size, clever idea)
    The model will support transparency and textures... I found out you draw the model in 2 passes and draw the faces accordingly.

    Also I will look into using one of the libraries Jose has converted to powerbasic to allow us to use different graphic file formats, my main interest right now is png as it is a great all around file format that allows everything at a great size.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #2

    Re: 3D file formats

    Hi Kent,

    about 3DS, I don't know any 3D package that supports the animation parts in 3DS. The file format supports it but I never saw a file that actually contains it. Other file formats that I know are more game related and so mostly not supported out of the box. Like MD2, MD3, B3D, DBO.


  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: 3D file formats

    3DS Max is great program,

    but I think most people cannot effort it. And writing format in other than "mother" application is always a bit tricky.
    Take for example as simple stuff as OBJ - it could not be simplier, but many programs export it not according to specs.

    What is DBO format Mike ?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: 3D file formats

    I have been doing lots of reading tonight. I had a made a demo in darkbasic with animated 3ds file I made, but I can't find it

    Anyways, I see many posts saying that, yes 3ds is nice, but old and you are better using a newer format.

    I am now researching perhaps writing a direct x format file importer. I don't know... it is pretty nice is all you can do with it, but I am sure it is a nightmare to import.

    MD3, I was thinking about, but you only see characters modeled in it it seems and not much else. Also they seem low poly and not the greatest looking, but I could have just not seen good examples.

    Petr, DBO is DarkBasic's Format.

    But DBO, B3D are not widely supported like 3ds. Even .x is not as widely supported. I see people saying use collada, I guess you can import it and just make the display list with the parts you need and ignore what you don't.

    Everyone says google and I do, but it is getting hard to find useful info on these matters.

    I guess I will try to write another 3ds model viewer in Darkbasic and do tests to push it to see how well I can make a model look with it and then determine if it will be worth using it.

    Any other ideas?
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  5. #5
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: 3D file formats

    Found this: http://www.hexus.net/content/item.php?item=6664&page=1


    So maybe Collada is the way?
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  6. #6

    Re: 3D file formats

    I say go for collada, it has a future.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •