Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


how to get CSLLight* in DotXSI???HELP

This topic is 5564 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

i tried to get lights'' handles in DotXSI file format via SOFTIMAGE|FTK, but failed. here is my code: void recurse4Lights(CSLModel* in_child) { //1st, transform it transformXSI2GL(in_child); //2nd, Draw axis glCallList(listGLaxis); //3rd, Now recurse its children // Loop through all children CSLModel* *l_childrenList = in_child->GetChildrenList(); for (int i = 0; i < in_child->GetChildrenCount(); i++ ) { recurseXSI( l_childrenList ); } //4th, set this light switch(in_child->GetPrimitiveType()) { case CSLTemplate::SI_DIRECTIONAL_LIGHT: case CSLTemplate::SI_INFINITE_LIGHT: case CSLTemplate::SI_POINT_LIGHT: case CSLTemplate::SI_SPOT_LIGHT: { CSLLight* left_prim = (CSLLight*)in_child->Primitive(); drawLight(left_prim, lightCount); lightCount++; break; } default: break; }//end of switch //5th, restore matrix restoreXSI2GL(in_child); } i passed scene.root() as the parameter to this function in the major loop, but no template step in the switch-case block. does anything go wrong? help me, please.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!