Real noob question on ScaleEntity

Blitz3D Forums/Blitz3D Beginners Area/Real noob question on ScaleEntity

Tobo(Posted 2008) [#1]
Dear all,

Re-introducing (hyphenated?) myself to the 3D side of BB and am going through this fantastic book. However, there is an example on page 92 where they flip a simple shape using ScaleEntity object,1,1,-1. However, when I try to replicate it, it doesn't flip the shape but just adjusts the lighting!

Graphics3D 640,480
SetBuffer BackBuffer()

cone=CreateCone()
light=CreateLight()
cam=CreateCamera()

PositionEntity cone,0,0,5
ScaleEntity cone,1,1,-1

EntityColor cone,125,201,190

While Not KeyDown(1)


	RenderWorld
	Flip

Wend
End


Please feel free to point and laugh.

Many thanks.

Tobo


Happy Sammy(Posted 2008) [#2]
Hi Tobo,

I guessed that old statement was ScaleEntity object,1,1,1 and you changed 1 to -1.
If so, it already flipped the shape, not just adjusted the lighting.
You could open official example file "ScaleEntity.bb" for details.


LedgerARC(Posted 2008) [#3]
oh!!! I learned Blitz on that book!!!! w00t! what's happening is that the entity is actually flipping, but it's flipping on the z axis, so it's not really visible the the veiwer, try scaleentity cone,-1,1,1 or scaleentity cone,1,-1,1

I read that whole book in less then a month. :D

hope I helped
Andrew