Sign in to follow this  

[G3D] Blender

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this