The ball in my test was not being stopped by the box blocks. All the blocks use the same 3ds mesh but modified for each of the 4 using irrEdit. The problem lied on the code trying to get the non-transformed bounding box from the irrlicht scene node and using that wrong sized bounding box to create the shape for the Bullet physics engine. I replaced the getBoundingBox () call in my code for getTransformedBoundingBox(). Now the ball does get stopped.
The following Powershell script will convert a batch of JPEG files to TIFF format: #This Code is released under MIT license [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") $files_folder = 'C:\path-where-your-jpg-files-are\' $pdfs = get-childitem $files_folder -recurse | where {$_.Extension -match "jpg"} foreach($pdf in $pdfs) { $picture = [System.Drawing.Bitmap]::FromFile( $pdf.FullName ) $tiff = $pdf.FullName.replace('.PDF','').replace('.pdf','').replace('.jpg','').replace('.JPG','') + '.tiff' $picture.Save($tiff) }
Comments