addHillPlaneMesh base index

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
julienlecomte
Posts: 5
Joined: Mon May 01, 2006 1:02 pm

addHillPlaneMesh base index

Post by julienlecomte »

Something seems weird in addHillPlaneMesh: tileCount with a value of (10,10) should show 10x10 tiles right ?

If I set the same tilecount & textureRepeatCount with a debugging texture, I count 10-1 tiles horiz and vert. (81 tiles instead of 100 as expected.)


Code: Select all

  IAnimatedMesh* mesh = smgr->addHillPlaneMesh("myHill",
		core::dimension2d<f32>(1,1), /* tileSize */
		core::dimension2d<s32>(10,10), 0, 0, /* tileCount */
		core::dimension2d<f32>(0,0),
		core::dimension2d<f32>(10,10)); /* textureRepeatCount,: */
Result (count of white dots = 81) :
Image

Texture used:
Image
Post Reply