Latest Uploads
PixeLink P ... zle Editor

rockford

PixeLink

rockford

image-21-0 ... -21-29.jpg

Jayenkai

image-15-0 ... -19-40.jpg

Jayenkai

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

Jayenkai

Bumble Bee

dna

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
1,2,3,95,98,7,8,10! ''Ready or not!!''
Kuron Tue 14:51
Smash Bros 3DS
rockford Tue 10:16
AGameAWeek Progress Report
Jayenkai Tue 08:36
Just-Keep-Eating
Jayenkai Tue 08:33
Going out of town
Kuron Mon 14:30
Amstrads and Thinness
steve_ancell Mon 11:54
NSFW : Boobage
steve_ancell Mon 11:48
Youngsters Getting Old
steve_ancell Mon 11:47
''New'' 3DS
Jayenkai Mon 10:13
Picross VS
rychan Mon 06:05
More

Latest Items
Rant : I Stubbed My Toe...
Jayenkai Tue 07:37
Blog : Bedroom 2.0
Kuron Mon 18:59
Link : Message(s) from the grave
Jayenkai Tue 09:27
Blog : 20 Years Ago....
steve_ancell Mon 15:28
Life : Back Online
Kuron Tue 11:48
Showcase : Munky Blocks DX
Jayenkai Mon 07:06
Showcase : Little Nemo's Nightmare
Jayenkai Sat 04:14
News : Newsletter #234
rychan Fri 08:02
Showcase : Space Rocket Adventurers
HoboBen Thu 16:56
Blog : Health Update : August 2014
Jayenkai Sat 11:31
Techy : Back from Game Dev Con!
Jayenkai Sun 16:52
Family : Sunday
Jayenkai Wed 03:31
Family : Good News (for once)
Kuron Tue 15:37
Showcase : Don't Tap The Zombies
therevillsgames Mon 16:26
Showcase : Mutant Monty
steve_ancell Wed 19:26
More

Who's Online
Kuron
Tue, at 15:48
Jayenkai
Tue, at 15:48
steve_ancell
Tue, at 15:21
shroom_monk
Tue, at 15:01
rychan
Tue, at 14:45
rockford
Tue, at 14:37
HoboBen
Tue, at 12:59
dna
Tue, at 12:41
spinal
Tue, at 08:28
Afr0
Tue, at 07:28
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.