addTerrainSceneNode problems

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
idrose1025
Posts: 17
Joined: Mon May 08, 2006 8:58 am

addTerrainSceneNode problems

Post by idrose1025 »

See this picture.

http://cafefiles.naver.net/data22/2006/ ... 2px259.jpg

I used addTerrainSceneNode 2^N+1.

heightMapFile = 129*129 it uses.
ColorTexture = 256*256 it uses.

But there is not 2px.

The order of hue is like this.

Yellow 1px
red 1px
green 1px
blue 2px
green 5px

2px should have disappeared why, there isn't a person who knows the bedspread?

It does how and it will be able to solve?

Code: Select all

// add terrain scene node
	scene::ITerrainSceneNode* terrain = smgr->addTerrainSceneNode( 
		"Image/Map/black_129_32.bmp");

	//terrain->setScale(core::vector3df(40, 4.4f, 40));
	terrain->setMaterialFlag(video::EMF_LIGHTING, false);

	terrain->setMaterialTexture(0, driver->getTexture("Image/Map/5_Color_256_4_Class.bmp"));
	terrain->setMaterialTexture(1, driver->getTexture("Image/Map/detailmap3.jpg"));

	terrain->setMaterialType(video::EMT_DETAIL_MAP);

	//terrain->scaleTexture(1.0f, 20.0f);
2xp disappeared.
Post Reply