Gimbal lock and other limitations introduction

BlitzMax Forums/MiniB3D Module/Gimbal lock and other limitations introduction

Sake906(Posted 2009) [#1]
Hello.

I'm planning to move my B3D project to miniB3D+BMX and I have been strolling around these forums to see how well it works. Apparently there seems to be an issue with rotations reaching gimbal lock, but then again I have to ask: wasn't this already happening in B3D or is that new to minib3d?

There are also other limitation questions I'd like to have answered if possible, and it is those with collisions and raycasting-picking commands: are these just as bad on miniB3D or has performance been improved on this area? I'd be glad to know.

Also the problems we had with world XYZ coordinates being limited due to the use of 8-dec floating point coordinate positioning and rotations: are you able to overcome this using miniB3D?

Thanks a lot in advance, I'm really looking forward to use this.


slenkar(Posted 2009) [#2]
if you download this one:

http://www.easy-share.com/1908345153/sidesign.zip

it will act just like blitz3d

I dont know if it still has the floating point limitation.

this library may speed up picking commands for you:
http://www.blitzbasic.com/Community/posts.php?topic=67309


Sake906(Posted 2009) [#3]
first link tells me the file has been deleted....


_Skully(Posted 2009) [#4]
Just be aware that there are no "image/texture buffers" in miniB3D... but as long as your not trying to draw to images directly you'll be ok


slenkar(Posted 2009) [#5]
http://rapidshare.com/files/305573856/sidesign.mod.zip.html


Sake906(Posted 2009) [#6]
Slenkar, these rapid sharing links don't really work at all.

_Skully, thanks for the info. How do you -indirectly- draw to images then?


Mr. Write Errors Man(Posted 2009) [#7]
Perhaps you are talking about render-to-texture, but if not, I edit textures directly simply by editing their pixmaps.


SLotman(Posted 2009) [#8]
What Slenkar is posting is the Matrix code by Warner, which can be found here: http://www.blitzmax.com/codearcs/codearcs.php?code=2498

The problem is, this is waaaay slower than regular minib3d; in one test I made using particles, I loose more than 20fps just changing from "regular" minib3d to this code from Warner :(


*(Posted 2009) [#9]
Si if you read this will there be a fix for gimbal lock officially otherwise it will make all games made with minib3d either tank games or simple fps's. Space games are a pain if you cant fix the gimbal lock issues.


Sake906(Posted 2009) [#10]
I just noticed on the Wiki the following command: BackBufferToTex()

It appears to be one that copies whatever has been drawn to the backbuffer onto a texture if I'm correct?