Jump to content
  • Advertisement
Sign in to follow this  
giugio

General Importer c++

This topic is 3799 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hy. I'm writing a c++ library for the importation of meshes from 3ds and maya ,an future implementation. I create a base class Creader and inherit from it c3ds(for 3dstudio)and cmaya(for maya) Class C3ds:Creader { bool nextShell() { if(importationshellEnd) return false; else return true } void importShell(CString shellid,CString material ecc...) { // data extraction } } I'm writing next a general importation class CImportfile Class CImportFile { . . .//select the importer , from maya file or 3ds file pApi=new c3ds()or pApi=new cMaya() for (pApi->nextSHell) { CString strShellid,strMaterial; pApi->ImportSHell(&shellid,&material) { insert in a polygon class the data(shell,vertex ,edge ecc..) } } pApi->ImportMaterial() } This is a generic implemetation for the importer. My problem is that this class work fine for db importation , where i know the number of object(shell,material,vertex ecc..)and get the data is not sequential (i'm use sql),but for a file like 3ds or maya i'm not know before the number of object and get the data is more complicated than a db. What you advice to me? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!