Search found 9 matches

by mecio
Mon Aug 15, 2011 1:29 pm
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

It's not just a blue mesh. It's a whole world with blue planes somewhere. So I don't want to edit it manualy.
by mecio
Sun Aug 14, 2011 9:08 pm
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

I have found something     for(int i=0; i<node->getMaterialCount(); i++){             if(node->getMaterial(i).getTexture(0) == 0){                 node->getMaterial(i).PointCloud = true;             } }   But Now I see small blue points... I need to replace node->getMaterial(i).PointCloud = true; wi...
by mecio
Sun Aug 14, 2011 5:00 pm
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

Is there any solution to do it programaticaly?
I am thinking about something like this

Code: Select all

 for(int i=0; i<node->getMaterialCount(); i++){
          if(node->getMaterial(i).hasTexture{ 
                node->getMaterial(i).setTransparent(0);
          }
}
by mecio
Sun Aug 14, 2011 2:33 pm
Forum: Code Snippets
Topic: Simple cloud layer SceneNode
Replies: 71
Views: 27592

Re: Simple cloud layer SceneNode

I have it already but when i hanged

Code: Select all

    void CCloudSceneNode::setTranslation(core::vector2d<f32>& translation)
to

Code: Select all

    void CCloudSceneNode::setTranslation(const core::vector2d<f32>& translation)
message disappeared :shock:
by mecio
Sun Aug 14, 2011 1:33 pm
Forum: Code Snippets
Topic: Simple cloud layer SceneNode
Replies: 71
Views: 27592

Re: Simple cloud layer SceneNode

What is wrong? #include "CloudSceneNode.h"   using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui;   ... ...   CCloudSceneNode* cloudLayer1 = new CCloudSceneNode(smgr->getRootSceneNode(), smgr); core::vector2d<f32>...
by mecio
Sun Aug 14, 2011 1:00 pm
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

I was experiment with material type and the best resoult is EMT_TRANSPARENT_ALPHA_CHANNEL_REF but i have no idea how to disable thoses blue shapes.

I looks like
Image
by mecio
Sun Aug 14, 2011 12:04 pm
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

It was easy :) but now I have another problem. Some parts of my world does not has textures. I see them painted with blue color but I would like them to disappear.

Is there any switch, flag to do that?
by mecio
Sun Aug 14, 2011 11:43 am
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Re: Iterate all materials

My fault ;(

Code: Select all

 
 for(int i=0; i<node->getMaterialCount(); i++){
            node->getMaterial(i).Shininess = 0.0f;
        }
 
Thanks for help anyway.
by mecio
Sun Aug 14, 2011 11:22 am
Forum: Beginners Help
Topic: Iterate all materials
Replies: 12
Views: 382

Iterate all materials

Hi there. I wonder if is there any option to iterate all node materials? I have something like this.  node->getMaterial(0).Shininess = 0.0f; Now I would like to apply the same changes to all avaiable materials for this node. I am looking for something like this    for(int i=0; i<node->number_of_mate...