Hi TrueVision Community,
I just found a bug. I searched for it, but couldn't find anything. So here you are:
(I tested it (lots of debugging with break points etc.))
My result is:
LOG until error:
03-26-2011 16:14:45 | --------------------------------------------
03-26-2011 16:14:45 | Truevision3D Debug/Log File
03-26-2011 16:14:45 | --------------------------------------------
03-26-2011 16:14:45 | Engine Version : 6.5
03-26-2011 16:14:45 | ENGINE INFO : DLL Compilation time Nov 11 2009 23:25:48
03-26-2011 16:14:45 | DEVICE INIT : Initialize Depth
03-26-2011 16:14:45 | DEVICE INIT : Using Antialiasing with 8 samples
03-26-2011 16:14:45 | DEVICE INIT : Initializing the device in windowed mode, with a render surface size of 776x957, format 21, depthbuffer 75
03-26-2011 16:14:45 | VIEWPORT MANAGER : Main viewport initialization
03-26-2011 16:14:45 | VIEWPORT MANAGER : Main viewport initialized (776x957)
03-26-2011 16:14:46 | DEVICE INIT : Initialization successful !
03-26-2011 16:14:46 | DEVICE INFO : 3D Card : ATI Radeon HD 4600 Series | Card ID : 38032 | Driver ID : 656419
03-26-2011 16:14:46 | DEVICE INFO : Available texture memory : 2035 MB
03-26-2011 16:14:46 | DEVICE INFO : Vertex Shaders 3.0 supported in hardware.
03-26-2011 16:14:46 | DEVICE INFO : Pixel Shaders 3.0 supported in hardware.
03-26-2011 16:14:46 | DEVICE INFO : Driver used is a DirectX9-level driver 'aticfx32.dll'. Excellent
03-26-2011 16:14:46 | DEVICE INFO : Card Type Geforce6xxx/7xxx/8xxx/ATIRadeonX1xxx Level card, third generation of programmable card
03-26-2011 16:14:46 | TEXTURE MANAGER : Format of alpha texture changed to 21.
03-26-2011 16:14:46 | TEXTURE MANAGER : Format of non-alpha texture changed to 22.
03-26-2011 16:14:46 | TEXTURE MANAGER : Loading of 'a.jpg' successful 'a' on index 2
03-26-2011 16:14:46 | TEXTURE MANAGER : Successfully created a render surface 776x957 on slot 3
03-26-2011 16:14:46 | TEXTURE MANAGER : Successfully created a render surface 194x239 on slot 4
03-26-2011 16:14:46 | TEXTURE MANAGER : Successfully created a render surface 194x239 on slot 5
03-26-2011 16:14:46 | TEXTURE MANAGER : Successfully created a render surface 194x239 on slot 6
03-26-2011 16:14:46 | TEXTURE MANAGER : Successfully created a render surface 194x239 on slot 7
03-26-2011 16:14:46 | LANDSCAPE : Landscape object #0 has been initialized
03-26-2011 16:14:46 | LANDSCAPE : heightmap filename is a NULL ! Creating a empty terrain #0
03-26-2011 16:14:46 | LANDSCAPE : 1x1 Landscape successfully generated with 4225 vertices and 25350 indices in 0 milliseconds.
03-26-2011 16:14:46 | LANDSCAPE : Quadtree created for the landscape in 0 milliseconds.
03-26-2011 16:14:46 | TERRAIN MANAGER : Switching to Expanded texture
03-26-2011 16:14:55 | ACTOR MANAGER : TVA Actor '[path]\rancor_Final.tva' successfully loaded in 78 ms
Code line causing the error:
_result:=Scene.MousePick(x,y,TV_ALL,TV_TESTTYPE_ACCURATETESTING);
Some more code for better understanding:
procedure xy;
var x,y : Integer;
_result : ITVCOLLISIONRESULT;
begin
input.GetMousePosition(x,y);
_result:=Scene.MousePick(x,y,TV_ALL,TV_TESTTYPE_ACCURATETESTING);
// unrelated code here
end;
Other testtypes do work!
Debugger message:
Original message:
Erste Gelegenheit für Exception bei $76089617. Exception-Klasse EInvalidPointer mit Meldung 'Ungültige Zeigeroperation'. Prozess DAWN_Editor.exe (4952)
Translation:
First time exception at $76089617. Exception-class EInvalidPointer with message 'Invalid floating point operation'. Process DAWN_Editor.exe (4952)