Latest Uploads
image-17-0 ... -18-36.jpg

Jayenkai

image-07-0 ... -20-20.jpg

Jayenkai

Kuron Cap Get!

rychan

Merry Christmas

Jayenkai

Invasion V ... tup screen

rychan

image-07-1 ... -20-59.jpg

Jayenkai

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.
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Survived another Ludum Dare
rychan Mon 14:05
Raspberry PI 2 Case
rockford Mon 07:42
Daily Doodles
Jayenkai Mon 04:27
Monkey For The Win
Jayenkai Sun 14:50
Cheesy photo moment
spinal Sun 12:35
Random Purchase : Tassimo
Jayenkai Sun 08:32
Great Big Youtube thread
Jayenkai Sun 08:16
Sun, Trees, Bushes and Bees
rockford Sun 06:41
EA Bundles
Hotshot Sun 05:43
How's Things? - April 2015
steve_ancell Sun 02:50
More

Latest Items
Showcase : Crime (reloaded)
rockford Wed 07:30
Blog : Back on the run
rychan Wed 03:16
Showcase : Blockman Forever
Steve Elliott Sun 12:42
Snippet : Lotto Number
Jayenkai Thu 15:14
Showcase : Invisible Munky 2
Jayenkai Thu 04:52
Blog : New Fence..
steve_ancell Wed 11:28
Snippet : Rotating Sphere
Dabz Sun 19:36
Woot : Three Years Later...
Kuron Fri 07:05
Snippet : IFS Fractal Viewer
Andy_A Mon 14:20
Showcase : Futrino
Jayenkai Thu 06:16
Showcase : Millenipede
Steve Elliott Mon 17:44
Showcase : Flappy New Year
rychan Wed 02:49
Snippet : Simple stack-based interpreter
tbohon Wed 12:08
Showcase : Santa's Workout 2
jayparker Tue 00:43
Dev-Diary : Stripping it All Away
Jayenkai Mon 01:57
More

Who's Online
shroom_monk
Tue, at 02:33
rychan
Tue, at 02:32
Afr0
Tue, at 02:26
steve_ancell
Tue, at 02:17
spinal
Tue, at 02:16
Dabz
Tue, at 02:12
Steve Elliott
Tue, at 00:32
Jayenkai
Mon, at 16:34
Hotshot
Mon, at 16:18
Pakz
Mon, at 15:59
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.