Jump to content
  • Advertisement
Sign in to follow this  

[G3D] Blender

This topic is 3135 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'm newbie of g3d. I've loaded in my viewer an avatar and i've apply a texture. Now i want apply a blander (i.e. 0.5) but i haven't found a good example or a bit of documentation. Sameone can help me? This's my sample code: Avatar *avatar = Avatar::getAvatar(); avatar->init(0.8, 3.4,50); avatar->load(dataDir +"3ds/pknight/tris.md2", dataDir + "3ds/pknight/knight.pcx", 1); -------------------------------- void Avatar::load(std::string fileAvatar, std::string fileTexture, float scale) { model = MD2Model::fromFile(fileAvatar, scale); texture = Texture::fromFile(fileTexture, TextureFormat::AUTO(), Texture::DIM_2D, Texture::Settings::defaults(), Texture::PreProcess::quake()); } ------------------------------- Thanks a lot

Share this post

Link to post
Share on other sites
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!