How to not light an object?

Blitz3D Forums/Blitz3D Programming/How to not light an object?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks for the hint... I just tried it, but still no go. Have you had it working with that?
I'm pretty sure that I have applied the dot3 properly, because vertex light can't possibly do what I am seeing here :)

Here are some little chunks of source code that may have something I'm doing wrong.

Creation of platform:
	b.board=New board
	b\obj=Object_Create()
	;#Region Visual
	b\obj\vis\mesh=CreateCylinder(64)
	ScaleMesh(b\obj\vis\mesh,size,0.05,size)
	EntityPickMode(b\obj\vis\mesh,2)
	EntityShininess(b\obj\vis\mesh,1)
	EntityFX(b\obj\vis\mesh,1)	
	
	Texture=CreateTexture(64,64)
	SetBuffer(TextureBuffer(Texture))
	For y=0 To 1:For x=0 To 1
		If ( x + y ) Mod 2 = 0 Color 128,32,128 Else Color 64,16,64 
		Rect x*32,y*32,32,32,1
	Next:Next			
	SetBuffer(BackBuffer())
	ScaleTexture Texture,0.1,0.1
	TextureBlend Texture,2
	
	bump=CreateTexture(64,64,1)
	SetBuffer(TextureBuffer(bump))
	ClsColor(255,255,255)
	Cls
	SetBuffer(BackBuffer())
	TextureBlend bump,4
	
	EntityTexture(b\obj\vis\mesh,bump,0,0)
	EntityTexture(b\obj\vis\mesh,Texture,0,1)
	;#End Region


I am using functions from the Dot3 lighting example by Fredborg. (The one with the head).

Creating the point light:
light = Dot3_CreateLight(2)
PositionEntity(light,0,8,0)
Dot3_LightRange(light,100)


And updating the normal maps:
light = Dot3_CreateLight(2)
PositionEntity(light,0,8,0)
Dot3_LightRange(light,100)