Latest Uploads
isometric test

realtime

dungeon ma ... litz basic

realtime

Crystal Ca ... een So Far

rychan

Crystal Ca ... Screen V1

rychan

Day 5 Graphic

rychan

Mutanty Mo ... Workfiles.

steve_ancell

Forum Home

Blitz 3D math source

UserMessage
Posted : Monday, 05 December 2011, 19:48 | Permalink
dna


I thought that some of you might miss this and so I posted it here.

It's from the internal guts of B3D

-->

After viewing this it seems as though B3D would be easier to mod than imagined.

-----
DNA
Posted : Monday, 05 December 2011, 23:26 | Permalink | Mark Here
Cower


How does a simple math library say anything about "modding" Blitz3D?
Homepage : http://www.spifftastic.net/
Posted : Tuesday, 06 December 2011, 09:22 | Permalink | Mark Here
Afr0


WW Entries : 3
In theory this could be "modded" and compiled into a DLL that you could use with Blitz, but you wouldn't need this to do that.
The Doom 3 source also has a math library you could use with Blitz if you wanted to.

-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Homepage : http://www.afr0games.com
Posted : Tuesday, 06 December 2011, 16:10 | Permalink | Mark Here
JL235


WW Entries : 7
Cower's point is that the maths library is only one small section, and it's quite generic. Pretty much any other 3D engine will have similar (for example PMC has it's own for the 2D gfx engine).

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Homepage : http://www.StudioFortress.com
Posted : Tuesday, 06 December 2011, 19:59 | Permalink | Mark Here
Evil Roy Ferguson


WW Entries : 3
I have to admit that my favorite part of this code is the fact that infinity is defined as 10 million.
Posted : Tuesday, 06 December 2011, 20:23 | Permalink | Mark Here
JL235


WW Entries : 7
10 million isn't that strange of a choice. Due to the way that floating point numbers work, there is a limit on the smallest number you can add, and this is based on the size of the floating point number. For example 10000000000000000.0 + 1.0 is 10000000000000000.0.

With 10 million, the smallest number you can add is 0.000000002.

So if a larger value is allowed for the maximum number, then PI and other values that include a long series of decimals will begin to lose their accuracy.

or at least, that's my guess.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Homepage : http://www.StudioFortress.com
Posted : Wednesday, 07 December 2011, 20:49 | Permalink | Mark Here
Evil Roy Ferguson


WW Entries : 3
@JL235 - I am aware of how floating point math works -- it's not that 10 million is an odd choice but that "infinity" is expressly given a finite value. I'd probably have to call it something more like "MAX_SIGNIFICANT_VALUE" if I wanted to be able to read my own code without giggling.
Posted : Thursday, 08 December 2011, 18:53 | Permalink | Mark Here
dna


An Oxymoron of math.

Or Sorts.
Latest Posts
Little Lever News
Jayenkai Wed 06:50
Rooting for OUYA
9572AD Tue 19:07
Scene Demos
rockford Tue 07:46
AGameAWeek Progress Report
Kuron Mon 17:21
Happy Easter
rockford Mon 11:10
Jay gets a Wii U
Jayenkai Sun 07:14
Win7 Installing
dna Sat 13:32
A New Theme!?
Jayenkai Sat 05:30
Ramble ramble/finishing stuff
therevillsgames Fri 19:41
Mint
Dabz Fri 01:02
More

Latest Items
Dev-Diary : Another Evening Of Coding Approaches!
rychan Tue 16:45
Blog : DX9Engine
Kuron Tue 05:22
Family : :c(
Kuron Tue 04:27
Dev-Diary : Yet another one...
Jayenkai Tue 00:01
Blog : EmuMenu
rickdangerous Fri 04:16
Showcase : BambooBasic
Dabz Thu 18:46
Blog : FInally Some Game Dev Time
rychan Thu 15:35
Showcase : isometric prototype
Jayenkai Thu 04:31
Showcase : dungeon maker algorithm
Jayenkai Wed 01:42
Dev-Diary : More Screens
Kuron Sat 09:01
News : Newsletter #221
Dabz Fri 10:07
Dev-Diary : Crystal Catch Development
rychan Thu 14:38
Link : Sfxr
rychan Thu 04:16
Showcase : SpringySquirrel
Jayenkai Tue 22:58
Dev-Diary : More Planning and Framework Learning
rychan Tue 17:23
More

Who's Online
steve_ancell
Wed, at 08:07
Jayenkai
Wed, at 07:40
spinal
Wed, at 07:21
rychan
Wed, at 06:33
Dabz
Wed, at 04:30
Mog
Wed, at 03:02
shroom_monk
Wed, at 02:56
rockford
Wed, at 02:03
MetalMan
Tue, at 23:43
dna
Tue, at 20:37
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.