Search found 97 matches

by klikli234
Thu May 05, 2011 2:16 pm
Forum: Beginners Help
Topic: about drop device problem
Replies: 1
Views: 193

about drop device problem

first I load map than release map,
than drop device will I get Memory error on drop device.
thanks.
and where is my wrong?

m_gamemap.loadMap(); //like examples 16
//quit loop
m_gamemap.releaseMap();
m_device->drop(); //here is memory error



//release map
void CGameMap::releaseMap()
{
if(m ...
by klikli234
Sat Apr 30, 2011 12:39 am
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239


//new flash updata position code
vector3df flash3d = flashbonescenenode->getPosition();
flash3d.Z -= 40.f;
flash3d.X -= 20.f;
flash3d.Y += 5.f;
flash3d.rotateXZBy(-boneNode1->getRotation().X);
flash3d.rotateXYBy(boneNode2->getRotation().Y);
nodemuzzleflash->setPosition(flash3d);

new ...
by klikli234
Fri Apr 29, 2011 3:10 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

when you load the mesh gun, it is loaded at 0,0,0 coordinates, then create a billboard , position it in front of the gun, then bind the billboard as child to the mesh gun;
then, all the times you move the gun, the billboard will keep relative position to the gun;

thanks,
but useless.
I moved the ...
by klikli234
Fri Apr 29, 2011 2:27 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

That`s exactly what I wanted to say- you don`t need to if you setup your parent-child pairs correctly. But as you intend on positioning it manually, for getting world (absolute) positions you can try:

flashbonescenenode->updateAbsolutePosition(); // just to make sure it`s updated. You usually don ...
by klikli234
Fri Apr 29, 2011 2:04 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

Once you create the character, weapon and flash nodes and set the correct parents, no additional calls like
vector3df flashpos = flashbonescenenode->getPosition() + weaponnode->getPosition();
nodemuzzleflash->setPosition(flashpos);

will be needed. All this is causing you trouble. When a node ...
by klikli234
Fri Apr 29, 2011 1:34 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

I'm sorry, I still can't solve the problem.
:(

How do I calculated flash world coordinates
by klikli234
Fri Apr 29, 2011 12:55 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

Has always been there
Image
by klikli234
Fri Apr 29, 2011 12:37 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

but
Doesn't work.
flash has been in one place

if I set weaponnode as parents , the nodemuzzleflash can follow my character
by klikli234
Fri Apr 29, 2011 12:00 pm
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

ok! what should I do
by klikli234
Fri Apr 29, 2011 11:59 am
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

thx
here it is

/*
* 人物模型节点 character node
*/
node = smgr->addAnimatedMeshSceneNode(Urban_Mesh,0);
node->setPosition(core::vector3df(0,36.f,0)); // Put its feet on the floor.
node->setRotation(core::vector3df(0,180.f,0)); // And turn it towards the camera.
node->setMaterialFlag(EMF_LIGHTING ...
by klikli234
Fri Apr 29, 2011 9:23 am
Forum: Beginners Help
Topic: problem Billboard's position
Replies: 16
Views: 2239

problem Billboard's position

I have a gun muzzle bone node.
But muzzle bone node's position is unchanged, no matter where I move
what should I do?
or how to gets the position of the node for muzzle bone in the whole world coordinates.
thanks very much
http://img181.poco.cn/mypoco/myphoto/20110429/17/5666791320110429171931085 ...
by klikli234
Mon Apr 18, 2011 1:29 pm
Forum: Beginners Help
Topic: How to use ISkinnedMesh for animation blending
Replies: 10
Views: 3245

thanks Lonesome Ducky and mongoose7 very much
by klikli234
Mon Apr 18, 2011 12:37 pm
Forum: Beginners Help
Topic: problem about x file of animation
Replies: 16
Views: 1806

mongoose7 wrote:I think you need

bonenode1->UseAnimationFrom = bonenode2;

Then bonenode1 will have the animation of bonenode2.
I tried.
Such things Bonenode1 animation will be replaced as bonenode2 animation, which did not reach mixed animation
by klikli234
Mon Apr 18, 2011 12:28 pm
Forum: Beginners Help
Topic: How to use ISkinnedMesh for animation blending
Replies: 10
Views: 3245

If you can get a joint, that is all you need. See the other thread.

Where should I get a joint. ISkinnedNode or IAnimationSenceNode

You can also load the same mesh twice, the first time with the first animation and the second time with the other animation. Then, go though all the joints of the ...
by klikli234
Mon Apr 18, 2011 9:29 am
Forum: Beginners Help
Topic: How to use ISkinnedMesh for animation blending
Replies: 10
Views: 3245

thanks for your help.
but here I still have problem.
how can I get joint ratation and position from cskinnedmesh with animation. and how to casting this cskinnedmesh.
thanks again