I now got Windows 7 64bits (Home Premium, just installed it) but B3D Sprites, even on version 1.105 are still having problems.
I just tested my game Virtual Marbles, and I was having several glitches, the screen wasn't being redrawn and the game freezing from time to time - up to a point where the driver crashed.
This was the offending code, that once removed, the game now works without any issue:
Arrowspr=LoadSprite("arrow.tga",2+16+32)
SpriteViewMode ArrowSpr,2 ;free moving sprite
ScaleSprite ArrowSpr,20,20
HideEntity ArrowSpr
EntityOrder ArrowSpr, -1
When I replaced this with a simple quad created on code, it worked. This is the code I'm using now:
Arrowspr=CreateSpriteFix(0,0,0,20,20)
EntityTexture ArrowSpr, LoadTexture("arrow.tga",2+16+32)
HideEntity ArrowSpr
EntityOrder ArrowSpr, -1
Function CreateSpriteFix(x#,y#,z#, width#, height#)
Local quadmesh
quadmesh=CreateMesh(parent)
v=CreateSurface(quadmesh)
AddVertex v, x-width#, y+height#, z#, 0,0
AddVertex v, x+width#, y+height#, z#, 1,0
AddVertex v, x-width#, y-height#, z#, 0,1
AddVertex v, x+width#, y-height#, z#, 1,1
AddTriangle(v,0,1,2)
AddTriangle(v,2,1,3)
Return quadmesh
End Function
Before anyone questions: other games are running normally, and I do have latest nvidia drivers. The game also works normally on XP32 and Vista64.
The computer: HP Touchsmart, 4Gb RAM, Nvidia 9300GS video card. The game is written purely in B3D, no other 'add-ons' (like AShadow) is used.
|