Search found 12 matches

by Viniterra
Fri Jun 22, 2007 10:15 pm
Forum: Beginners Help
Topic: Dynamic lightning problem
Replies: 6
Views: 590

I've just tryed this with .3DS, with the SAME code, just changing the file extension, and voila, the ilumination works.

So I guess it's a BUG.

Another observation, I don't know why, but the collisions are way better calculated ins the .3DS file..
by Viniterra
Fri Jun 22, 2007 9:57 pm
Forum: Beginners Help
Topic: Dynamic lightning problem
Replies: 6
Views: 590

I've setted the radio to 1000, 10000, and 100000 The .obj is completly black The meshes are so much iluminated with this settings.. I'm thinking it's a BUG too.. irr::scene::IAnimatedMesh *npcMesh = smgr->getMesh("media/npc.x"); irr::scene::IAnimatedMeshSceneNode *npcNode = smgr->addAnimat...
by Viniterra
Thu Jun 21, 2007 10:24 pm
Forum: Beginners Help
Topic: Dynamic lightning problem
Replies: 6
Views: 590

Dynamic lightning problem

Hi, I have 2 animated meshes imported in .(X) format, and the level in the (.obj) format. When I add some dynamic light to the scene, the animated meshes became iluminated, but the level is completely black. Since the default flags for any node is to be iluminated, I had not setted any flag at first...
by Viniterra
Wed Jun 20, 2007 2:45 am
Forum: Beginners Help
Topic: .x Model - No Texture
Replies: 14
Views: 1160

I had experiencing a similar problem exporting from Blender Maybe the solution could be the same: Open your .X on notepad, and then locate all the image citations on the file, (by extension: .bmp, .jpg etc). In my Blender exported models, there was something like "picture.bmp.001" I just t...
by Viniterra
Sat Jun 09, 2007 10:38 pm
Forum: Beginners Help
Topic: Getting a mesh from .irr file
Replies: 5
Views: 325

Hi Alex Your code helped me to add collision to my irr file. But I have a problem, the map is duplicated. I have the version I created with the smgr->loadScene() , and the mesh I setted up with the command scene::ISceneNode* node = node=smgr->getSceneNodeFromId(0); is there any way to delete the map...
by Viniterra
Thu Dec 21, 2006 6:56 pm
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

Here it is (just the relevant code): IAnimatedMesh* mesh = smgr->getMesh("media/model.x"); IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh ); if (node) { node->setAnimationSpeed(30); node->setFrameLoop(1, 24); node->setMaterialFlag(EMF_BACK_FACE_CULLING, false); //two s...
by Viniterra
Wed Dec 20, 2006 10:24 pm
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

EDIT: I made this works, thanks for the support.
by Viniterra
Tue Dec 19, 2006 6:13 pm
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

hybrid wrote:You usually use the alpha channel of the texture for transparency).
I think that is this that I wanna do. The TGA texture has an alpha channel, how can I use this in the model? Will be easiest if I can use PNG instead of TGA?
by Viniterra
Tue Dec 19, 2006 3:15 am
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

It seems to be a trouble of the .x exporter plugin. Do you know any format supported by irrlicht tha I can handle transparencies and animations working?

PS: its not transparencies applied to faces, its based on the alpha map. Isn't that per pixel?
by Viniterra
Mon Dec 18, 2006 8:08 pm
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

Sorry for the way I questioned it. I was thinking that the engine already has some way to simply set this alpha map. Now I understand why would you want the model, to see if the exporter is writing the transparency parts correctly, and maybe implement it, am I rigth? At this link http://homepages.dc...
by Viniterra
Mon Dec 18, 2006 3:40 am
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

Sorry, but I do not understand right your answer. I just wanna know how to add an alpha map to a model, so it will be visible in the game engine. It is not so simple to just send the mesh and add the transparencies, because there are many models to add to the game, and I don't want to depend someone...
by Viniterra
Sun Dec 17, 2006 5:51 am
Forum: Beginners Help
Topic: .X files and Alpha map
Replies: 14
Views: 608

.X files and Alpha map

Hi every one, I have a doubt about transparency on a model. I have made some model in blender, aplied a tga texture with alpha chanel as uv-map, and then exported to .x format. But when I open it on the Irrlicht model viewer, I can't see the transparencies. So I suppose that when I load this model i...