Search found 34 matches

by Tranen
Mon May 31, 2010 10:55 am
Forum: Beginners Help
Topic: Adding additional properties to sceneNodes...
Replies: 4
Views: 511

I had the same problem, check this tread:

http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
by Tranen
Sun Apr 25, 2010 3:18 pm
Forum: Beginners Help
Topic: Noob question about subclassing a IMeshSceneNode
Replies: 7
Views: 897

>there is no point in having another type of IMeshSceneNode, just to have a status variable I need to subclass the meshscenenode class for this reason: I need to create an animator that will do different animation (it changes position and or cololr) based on the status of this object, so I need to k...
by Tranen
Sun Apr 25, 2010 10:47 am
Forum: Beginners Help
Topic: Noob question about subclassing a IMeshSceneNode
Replies: 7
Views: 897

Thanks to all, I need something like the second solution, because in this way I can attach the node to the scenegraph and an animator to the node. The animator then reads the status of the node (using a cast in the animateNode function). The problem is that I get those errors related to abstract fun...
by Tranen
Sun Apr 25, 2010 9:47 am
Forum: Beginners Help
Topic: Noob question about subclassing a IMeshSceneNode
Replies: 7
Views: 897

Noob question about subclassing a IMeshSceneNode

Hi, I want to have an object that is an IMeshSceneNode but that contains other informations (for example a status), something like:

MyNode :: IMeshSceneNode
(
MyNode( ... );
int status;
int getStatus();
setStatus(int);
)

what is the best way to do this?
by Tranen
Sun Mar 28, 2010 4:33 pm
Forum: Beginners Help
Topic: Irrlicth has a scale animator?
Replies: 12
Views: 1196

Sorry I see that with this works:

Code: Select all

    
CScaleAnimator* sa2 = new CScaleAnimator(core::vector3df(4,4,4));
s->addAnimator(sa2);
Since I don't have launched a create* function a I don't need to drop the object right?

Thanks
by Tranen
Sun Mar 28, 2010 4:25 pm
Forum: Beginners Help
Topic: Irrlicth has a scale animator?
Replies: 12
Views: 1196

Hi, i'm trying to use Sudi code, here is what I do: IMeshSceneNode* s = smgr->addSphereSceneNode(10); s->setPosition(core::vector3df(0,0,0)); CScaleAnimator sa(core::vector3df(4,4,4)); s->addAnimator(&sa); before the render loop. Nothing happens it seems that the animatedNode function is never c...
by Tranen
Fri Mar 26, 2010 11:48 am
Forum: Beginners Help
Topic: Is possible to modify the alpha value of a texture?
Replies: 3
Views: 307

Hi hybrid thanks for the answer, since I'm new I don't want to use shader, I think that the better way maybe is to modify the alpha value of the pixel... The problem is that i don't know how to do this, in the api doc I see that there are some function on the IImage class: setPixel (u32 x, u32 y, co...
by Tranen
Fri Mar 26, 2010 9:23 am
Forum: Beginners Help
Topic: Is possible to modify the alpha value of a texture?
Replies: 3
Views: 307

Is possible to modify the alpha value of a texture?

My aim is to change the color of an object in a given amout of time, so I think that a possible way is to applying a texture of a given color and rainsing or lowering the alpha value of the pixels.

This is correct/possible? What is the best way to do this?

Thanks
Tranen
by Tranen
Tue Mar 23, 2010 1:07 pm
Forum: Beginners Help
Topic: Irrlicth has a scale animator?
Replies: 12
Views: 1196

Thanks! :)
Tranen
by Tranen
Tue Mar 23, 2010 10:02 am
Forum: Beginners Help
Topic: Irrlicth has a scale animator?
Replies: 12
Views: 1196

Irrlicth has a scale animator?

There is something like:
scenemanager->createScaleAnimator(...) that makes my object bigger or smaller while time is passing?

I've searched in scenemanager documentation but i haven't found it.

If I need to create it can you gave me some advice? Where I can start?

Thanks
Tranen
by Tranen
Tue Feb 23, 2010 2:12 pm
Forum: Beginners Help
Topic: [SOLVED]Newbie irrlicht question: how to set a material col.
Replies: 3
Views: 403

Thanks
Cheers
Tranen
by Tranen
Tue Feb 23, 2010 9:02 am
Forum: Beginners Help
Topic: [SOLVED]Newbie irrlicht question: how to set a material col.
Replies: 3
Views: 403

[SOLVED]Newbie irrlicht question: how to set a material col.

Hi I'm trying to set the emissive color of cube: IMeshSceneNode* node = smgr->addCubeSceneNode(); SMaterial mat = node->getMaterial(0); mat.EmissiveColor.set(1,1,0,0); but once I've done this I must do something like node.setMaterial(mat) ? I come from Java. SMaterial mat = node->getMaterial(0); mea...
by Tranen
Wed Feb 17, 2010 6:28 pm
Forum: Beginners Help
Topic: [SOLVED] Same mesh with different color
Replies: 16
Views: 1051

Hi Hybrid, my problem is that I create an object in blender and import it into irrlicht (the format is obj): http://www.flickr.com/photos/26280288@N05/4365913126/ and I want to make n instances of this objects with different color: http://www.flickr.com/photos/26280288@N05/4365924334/ I'have done th...
by Tranen
Tue Feb 16, 2010 3:59 pm
Forum: Beginners Help
Topic: [SOLVED] Same mesh with different color
Replies: 16
Views: 1051

I'm sorry if it's a stupid question, but i'm a bit confused. I don't want to load the mesh n times. I want to export my mesh from blender and load it then share the mesh definition (maybe SSharedMeshBuffer?) It is possible to use the same Mesh to create multiple objects whit different colors? How ca...
by Tranen
Tue Feb 16, 2010 1:35 pm
Forum: Beginners Help
Topic: [SOLVED] Same mesh with different color
Replies: 16
Views: 1051

[SOLVED] Same mesh with different color

Hi what is the best way to have the same mesh with different color. I create my mesh in blender but I need to create different instance of the same mesh with different color (for example I have a cube and I want to create a red cube a blue cube and so on) What is the best and fast way? Thanks a lot....