addTerrainSceneNode // 2px disappears.

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 // 2px disappears.

Post by idrose1025 »

Hello,

See this picture.
http://pds3.egloos.com/pmf/200610/13/56 ... 105473.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.
Last edited by idrose1025 on Fri Oct 13, 2006 1:49 am, edited 1 time in total.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Link to image gives "HTTP 404 error"
Image
Post Reply