Jump to content
  • Advertisement
Sign in to follow this  
laeuchli

Collada DOM question

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

Hello All, I have a quick question about exporting color using collada DOM. First I'm trying
        

       daeElement* effectLib = root->add("library_effects");
       daeElement * effect =  effectLib->add("effect");
       effect->setAttribute("id", sEffectName.c_str());
       daeElement* profile = effect->add("profile_COMMON");
       daeElement* technique = profile->add("technique");
       technique->setAttribute("sid", "common");
       technique->add("phong diffuse color");
       double rgb[3]=///blah blah;
       
        std::stringstream lColorStream;
        lColorStream<<rgb[0]<<" "<<rgb[1]<<" "<<rgb[2]<<" ";
        daeBool returnv = technique->setCharData("1 2 3");
however returnv is false. What am I doing wrong? Second, following the method in the export example, I'm able to set my diffuse color to a texture, which works fine. Using the common profile though, is there a way to have botha diffuse color and a diffuse texture assigned to the same technique? If not, whats the best way to have both a diffuse color and a texture applied at the same time, other then baking the color into the texture? Regards, Jesse

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.

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!