Search found 9 matches
- Mon Aug 15, 2011 1:29 pm
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
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.
- Sun Aug 14, 2011 9:08 pm
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
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; with something better.
Something that ...
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; with something better.
Something that ...
- Sun Aug 14, 2011 5:00 pm
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
Re: Iterate all materials
Is there any solution to do it programaticaly?
I am thinking about something like this
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);
}
}- Sun Aug 14, 2011 2:33 pm
- Forum: Code Snippets
- Topic: Simple cloud layer SceneNode
- Replies: 71
- Views: 35194
Re: Simple cloud layer SceneNode
I have it already but when i hanged
to
message disappeared 
Code: Select all
void CCloudSceneNode::setTranslation(core::vector2d<f32>& translation)Code: Select all
void CCloudSceneNode::setTranslation(const core::vector2d<f32>& translation)- Sun Aug 14, 2011 1:33 pm
- Forum: Code Snippets
- Topic: Simple cloud layer SceneNode
- Replies: 71
- Views: 35194
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> xx ...
#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> xx ...
- Sun Aug 14, 2011 1:00 pm
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
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

I looks like

- Sun Aug 14, 2011 12:04 pm
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
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?
Is there any switch, flag to do that?
- Sun Aug 14, 2011 11:43 am
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
Re: Iterate all materials
My fault ;(
Thanks for help anyway.
Code: Select all
for(int i=0; i<node->getMaterialCount(); i++){
node->getMaterial(i).Shininess = 0.0f;
}
- Sun Aug 14, 2011 11:22 am
- Forum: Beginners Help
- Topic: Iterate all materials
- Replies: 12
- Views: 924
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 ...
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 ...