Accessing one object in a whole my3d scene ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
eviral
Posts: 91
Joined: Mon Oct 25, 2004 10:25 am

Accessing one object in a whole my3d scene ?

Post by eviral »

Can i access to an object in a .my3d scene ?

I have a my3d scene (a temple) and i would like for exemple to change the texture of one wall (i have a lot of walls in that scene but i want to change properties of only ONE object in that scene).

Is it possible or a whole my3d scene is just one entity (one big object) ?

Thanks

Eviral
ZDimitor
Posts: 202
Joined: Fri Jul 16, 2004 3:27 am
Location: Russia

Post by ZDimitor »

No you can't.

One my3d file - one lightmapped mesh.
eviral
Posts: 91
Joined: Mon Oct 25, 2004 10:25 am

ZDimitor

Post by eviral »

ZDimitor,

do you plan to release a new version of my3d file format with the support of bump, detail, normal, or parralax mapping ???

It would be soooooooo nice :)

Eviral
ZDimitor
Posts: 202
Joined: Fri Jul 16, 2004 3:27 am
Location: Russia

Post by ZDimitor »

:)))))

Only when i'll upgrade my system, to support any shaders features.
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

I've never used My3d, is it like a model format (like 3ds, ms3d, x, etc..)?

If so, yeah, you should be able to edit quite a few of its parameters at runtime.

To edit material information:

node->getMaterial(index).Whatever = WhateverYouWant;
node->getMaterial(10).Texture1 = driver->getTexture(t_path.c_str());
node->getMaterial(4).EmissiveColor = Color;
etc.. etc...

Note that in your example, if multiple walls use that material, then all of them will change. I recomend using a specific texture on the wall that you want changed, I noticed Irrlicht combines mesh buffers that share materials in ms3d so this may be the case with my3d as well.
Guest

Post by Guest »

What, i cannot change materials at runtime with my3d? Why not? Apart from that i can have several lightmaps in one my3d. Would be nice to replace them at runtime faking light off/on.
Again, why not?
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

Only when i'll upgrade my system, to support any shaders features.
dude, if that's the only problem,I will suport you with a ATI 9100 AGP4x, just give me the address....damn we should donate somethin to you after all
what is this thing...
Post Reply