Code archives/3D Graphics - Maths

Language: All | .bb | .bmx
.bmxEccentric Orbits using QuaternionsEccentric Orbits using Quaternions in miniB3DKrischan2017
.bbBlitz3D Maths LibraryBlitz3D Entities compatible Vector - Matrix3 - Matrix4 - QuaternionBobysait2016
.bbDropping 3 bombsDrops 3 bombs onto a heightmapped terrainBlitzplotter2016
.bbcapsule collider using one pivot + several ellipsoids + collidablesfor characters, for vehicles, using Blitz3d collision systemRemiD2016
.bbcapsule collider using one pivot + several linepicks + pickablesfor characters, for vehicles, using Blitz3d linepick systemRemiD2016
.bmxGravitySimple example of celestial body movement using newtons formulaKrischan2015
.bbGeneral solution to the lead target problemFunction which calculates the direction to shoot a bullet in to hit a moving target from a moving platform with fixed muzzle speedMatty2015
.bbPredict time of collision for two moving objectsA function for detecting the time when a collision will occur between two moving entities (maths only - no blitz specific 3d functions actually used)Matty2015
.bbbasic collisions exampleturningmoving colliders (ellipsoid) -> static collidables (mesh) | turningmoving colliders (ellipsoid) <-> turningmoving colliders (ellipsoid)RemiD2014
.bbSmooth Movement for EntitiesSmoothly move an entity from point A to point B (with rotation)Rob the Great2013
.bbFast ATan2 (4 precision)calculates angle using ATan2 method faster than blitz commandBobysait2013
.bbPointy RocketsPlots 4 rockets and rotates them to point to the next one (needs the rocket.3ds)Blitzplotter2012
.bbPickedUV / Move texture with mouseCalculates UV coordinates at picked location. Code comes with a sample on how to use this function to move a texture on a mesh with the mouseNoobody2011
.bmxLoads of quaternion functionsA lot of clever functions to do 3d rotations and operations on a sphereWarpy2011
.bmxminib3d AlignToVectorminib3d aligntovectorWarner2010
.bmx3D Math FunctionsMatrix and vector functions designed as an alternative to the deprecated OpenGL matrix functions.AndrewT2010
.bbMouse XY to 3D XYUse Mouse XY coordinates in 3D coordinatesMusicianKool2010
.bbImproved Perlin Noise 2D and 3DNoise for 2D and 3D manipulation.MusicianKool2010
.bbRounding NumbersCEIL, FLOOR and INTrolow2009
.bbTForm VectorTForm Vector using GetMatElementBobysait2009
.bbTForm PointTFormPoint using getmatElementBobysait2009
.bbDistance between many entitiesCalculate the distance between several entities, and choose the nearest oneRGF2009
.bmxMatrices in minib3duse quaternions and matrices in b3dWarner2009
.bbtransform point onto planetransform point from plane to realworld coordsWarner2009
.bbVerlet water :-)verlet water codeNate the Great2009
.bbcamera control in 3rd personcontrols camera movement it 3rd personNate the Great2008
.bbVerlet Physics (incomplete)Verlet Physics for simple low poly effects in a gameNate the Great2008
.bbAvoid_entity functioncone avoids red cubeNate the Great2008
.bmxDifference Clouds heightmapGenerates a heightmap using a diamond-square fractalJoshK2008
.bbYawToEntity function (plus smart missile code).This function yaws the source entity to point to the target entity at the specified rate. Useful for turning bots to face waypoints, 2D-in-3D missiles, etc.Zethrax2008
.bmx-Please remove--cut-Trader35642008
.bb-Please remove--cut-Trader35642008
.bmx-Please remove--cut-Trader35642008
.bbBMAX - Distance from Point to Lineget XYZ and Area distance to a lineLeon Drake2007
.bmxBoxes CollideMath only Box to Box Collision DetectionLeon Drake2007
.bbchaos cubetheory of chaosVignoli2007
.bbOrbital gravitySimple orbital gravitystu2007
.bbDeltaRollAs belowStevie G2007
.bbSnap to grid movementDemonstrates camerapicking a point on a grid and moving an object so that movement is snapped to the size of the grid cellZethrax2007
.bbLib to create an OBB and test if a point or entity is inside its spaceThis lib allows you to create and configure an Oriented Bounding Box (a box that is not locked to the dimensional axiis), and then test if a point or an entity has intruded into the OBB's space.Zethrax2007
.bmxBMax Math Lib v3.0New high speed to easy use math library.Chroma2007
.bbTriggerplate system for detecting intrusion eventsTriggers an event when an entity with a trigger atached collides with a triggerplate quad. Useful for visibility management, etc. Example includes vis code.Zethrax2007
.bbPoint distance to a LineCalculates the shortest distance between a point P and a lineDanny2006
.bbPool GameJust a simple pool game done in 2 hoursJeppe Nielsen2006
.bbInfinite far clipplaneStops clipping entities!bytecode772006
.bbSimple Wheel PhysicsUsing Circumference to calculate wheel rotation based on velocityMCP2006
.bbNA_ODEMapping ODE with B3d Commandsnamar7772006
.bbCreate Tiled TerrainCreate a Terrain that exists as a mesh with tile mapping!Leon Drake2006
.bbCalc terrain height - Ideal for terrain toolUses Cos#() to calc the vertex/terrain height for ex. a mountainKimoTech2006
.bmx3D Math Lib - BMaxEasy to use 3d math lib for BMax. Can do complex equations on a single line.Chroma2005
.bbAsteroids FPSDemonstrates how to make an asteroids game in 3D with a First Person ViewAndy2005
.bbPickedVertex()Returns the nearest picked vertexKimoTech2005
.bbSee if an Entity is in ViewThis uses Vector Maths to find out if Entity A can See Entity B with angle and range parametersBerbank2005
.bmxCircle Circle Instersection PointsFinds and give the two points that intersects two circlesHaramanai2005
.bmxCower.Math3D3D Math code (Matrix, Vector3, Quaternion, Vector2, Rectangle)N2005
.bbNon-Type Based Vector LibYour standard vector lib. with banks instead of types and many vector functions.Jonathan Nguyen2005
.bb3D math functionsVarious 3D math functions I wrote for Vein R3N2004
.bbEntitySphere elapsing box checkdont look at me like that! i know, uber simple but i put it up anyway... still usefullaab2004
.bbtriangle - box intersectionChecks intersection between a triangle and a boxelias_t2004
.bbRigid Body SimulationSimple Rigid Body Simulation (No collisions yet)Sweenie2004
.bbPointHeightOnTriFunction that calculates the height y# for position x# z# on a Triangle in a 3D environment.RGR2004
.bbVector 3D Math Library [v1.7]Vector 3D Library converted from C++.Chroma2004
.bbGradient Of a TriangleFinds the maximum gradient of a triangle's defined planeMr Snidesmin2004
.bbVector/Matrix LibVarious vector/matrix/transform funcsAntonyWells2004
.bbCrude Little coding Object Pushing!this is a REALY simple pushing items exampleNeochrome2004
.bbRay Box IntersectionRay Box Intersection functionelias_t2004
.bbEnemy chasing with collisionShows how enemies can chase a target, without sliding into same position. No blitz collisions used, only math.Jeppe Nielsen2004
.bbRay->Sphere IntersectionReturns intersection pointselias_t2004
.bbsphere_and_boxsphere pushing a box aroundRiverRatt2004
.bbPush a row of cubes!Pushes a row of cubes, uses blitz collisions systemRoss C2004
.bbray->plane ray->triangle intersectionThe intersection point is calculatedelias_t2004
.bbTrue 3D Visibility / Line of Sight code (pseudo LOS)Fast LOS code, accounts for all polysOpticEvIl2004
.bbDynamic Collision LibA small lib that allows for dynamic sphere -> dynamic poly collisions using Blitz's built-in collision systemsimonh2004
.bbObscurer example - With viewangleAn example showing how to calculate if entities can see each otherJeppe Nielsen2004
.bbAlign an Object to a Triangle.Align an Object to a Triangle.Richard Betson2003
.bbVector ExampleGraphically shows the use of aligntovector, dot and cross productsJeppe Nielsen2003
.bbWheel rolling exampleShows how to roll a wheel, unlike a ball it cannot go in any direction.Jeppe Nielsen2003
.bbBall rolling exampleShows how you can make a ball rollJeppe Nielsen2003
.bbRay / Line Segment IntersectionRay_Intersect_Triangle, and Ray_Intersect_Meshsswift2003
.bbSphere-Box Intersection RoutineTests to see whether a solid sphere intersects a solid axis-aligned boxsimonh2003
.bbSimple car physicsDrive a cube around in a spherical worldJeppe Nielsen2003
.bbSimple 3D sphere-to-sphere physicsSimple 3D sphere-to-sphere physicsKen Lynch2003
.bb3D "Verlet" Collision EngineVERY fast collision code adapted to Blitz3DMiracle2003
.bbgeneric bouncing codewant your objects to bounce? come right in...DarkEagle2003
.bbBezier Interpolation in 3DBezier Interpolation in 3DMarkus Rauch2003
.bbTriangle intersection dllchecks intersection between 2 triangleselias_t2003
.bbNo Reponse CollisionsNo response collisions.Ken Lynch2003
.bbRay intersectCalculates the intersection between a triangle and a ray(vector) in 3d spaceGrahamK2002
.bbintersection dllintersection dllelias_t2002
.bbQuaternionsSome basic quaternion functions (useful for rotating objects)Wavey2002
.bbPoint Inside Oriented Bounding BoxThis function tells you if a point is inside an entity's oriented bounding box.sswift2002
.bbInsideCheckThe function checks to see if a point is within another point*2002
.bbRay Intersect Triangle TestThis function tests if a ray intersects a triangle, and if so returns true. It also calculates the UV cordinates of the collision.sswift2002
.bbArea Collision LibAs the title says..David Bird(Birdie)2002
.bbVehicle pitch and roll without child/pivot entitiesLooks at a mesh as a single object on a terrain and calculates the pitch and rollMadJack2001
.bbsimple ball physicsTypes and simple ball physicsbradford62001