Latest Uploads
Mutant Mon ... (Blitz3D)

steve_ancell

Mutant Mon ... r package.

steve_ancell

image-13-0 ... -01-38.jpg

Jayenkai

Mutant Monty Remake

steve_ancell

hai.jpg

CodersRule

SillyAddition.png

Jayenkai

Forum Home

Blitz 3D math source

UserMessage
Posted : Monday, 05 December 2011, 19:48 | Permalink | Mark Here
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?
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!
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.
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.
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
Mutant Monty update.
steve_ancell Mon 21:49
Shoutbox Topic - 160
therevillsgames Mon 19:43
Shoutbox Topic - 161
dna Mon 17:24
Aminal Xing Knew Leef
rockford Mon 14:04
HoboTile
steve_ancell Sun 10:07
Hoover
steve_ancell Sat 21:53
Scrabble Rabble
Jayenkai Fri 08:13
Not Fit for Purpose
Jayenkai Thu 20:29
Happy Birthday, Krakatomato
steve_ancell Thu 18:03
How Deep is Your Code?
Hotshot Thu 14:35
More

Latest Items
Blog : Snow Worklog
Cower Mon 12:23
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
steve_ancell Sat 19:12
Showcase : MLG : Microscopic Lifeform Genocide
rockford Wed 09:24
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
More

Who's Online
spinal
Mon, at 23:07
blanko1324
Mon, at 22:39
Mog
Mon, at 22:22
steve_ancell
Mon, at 21:50
Evil Roy Ferguson
Mon, at 20:57
therevillsgames
Mon, at 19:43
HoboBen
Mon, at 18:31
Hotshot
Mon, at 18:09
CodersRule
Mon, at 17:50
dna
Mon, at 17:25
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.