Sprites and Parents

BlitzMax Forums/MiniB3D Module/Sprites and Parents

WildStorm(Posted 2007) [#1]
Hi,
i've got here some Sprites parented to some Pivots. When i rotate these pivots (turnentity pivot,pitch,yaw,roll),then the Sprites don't "look" at the camera any more!
Is this a bug or my mistake?


simonh(Posted 2007) [#2]
Sample please...


WildStorm(Posted 2007) [#3]
Import klepto.minib3d

Graphics3D 800,600,32,2

Local camera:TEntity = CreateCamera()

Local lpivot:TEntity = CreatePivot()
Local lsprite:TSprite = LoadSprite("070320_miniB3D.png",1,lpivot)
'SpriteViewMode(lsprite,1)

MoveEntity lpivot,0,0,4

Repeat
	TurnEntity lpivot,1,1,1
	UpdateWorld
	RenderWorld
	
	Flip
Until KeyDown(KEY_ESCAPE)


use this image:

edit:// Well, it's the extended version, but i don't think, that klepto worked with the sprite stuff, did he?


simonh(Posted 2007) [#4]
Bug confirmed, will fix in the next release.


WildStorm(Posted 2007) [#5]
*yay* thanks :)


LarsG(Posted 2007) [#6]
Bug confirmed, will fix in the next release.

Any hints on when you're thinking the next release may be, Simon?
The 0.41 version was released in february, and I'm guessing quite a few things have been updated and fixed since that?!


simonh(Posted 2007) [#7]
Please see my worklog for more info about V0.42.