camera problem

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
Ayanami
Posts: 24
Joined: Wed Jan 14, 2004 1:30 pm

camera problem

Post by Ayanami »

moin,

can anybody help me, please .. I modify the #2 tutorial

I load not a quake3 map, but a cubus.3ds und set texture

Code: Select all

	if (node)
	{	
		node->setPosition(core::vector3df(-100,-100,0));
		node->setMaterialFlag(EMF_LIGHTING, false);
		node->setMaterialTexture( 0, driver->getTexture("../../media/t351sml.jpg") );
	}
first problem the cubus is only brown .. what is it my mistake?

second problem I want set the cubus as camera target (camera allways show on cubus)
'setTarget' : is not element of 'ISceneManager'

Code: Select all

	smgr->addCameraSceneNodeMaya ();
	smgr->setTarget(node);
in result want with mouse move arround the cubus and zoom in/out

please plaese help me ;)

*wink*
DeusXL

Post by DeusXL »

If your want to set the camera target you must do that :

Code: Select all

camera->setTarget(node->getPosition());
setTarget isnt member of ISceneManager but of ICameraSceneNode[/quote]
Post Reply