Latest Uploads
Title Anim ... d Biomorph

Andy_A

Investigating

Jayenkai

Fancy Robot

Jayenkai

Top Secret

Jayenkai

Bargain

Jayenkai

Time for a ... op perhaps

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
Cower


How does a simple math library say anything about "modding" Blitz3D?
Homepage : https://www.spifftastic.net/
Posted : Tuesday, 06 December 2011, 09:22 | Permalink
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
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
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
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
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
dna


An Oxymoron of math.

Or Sorts.
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 84|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Decorations
Jayenkai Sat 09:22
Advent Calendars - 2016
rockford Sat 05:31
Gatlinburg Fire
Jayenkai Sat 04:54
Android Consoles aren't surviving
rychan Fri 17:43
Pop Quiz, HotShot
Jayenkai Fri 13:22
I Don't Need These...
rockford Fri 08:43
Colouring for Adults
Jayenkai Fri 02:41
RIP - Andrew Sachs
Jayenkai Fri 01:48
The Trouble With Pebble
LineOf7s Thu 16:12
Spinal's Search for Tech
Jayenkai Thu 11:47
More

Latest Items
Snippet : Grass like image generator
Pakz Thu 00:09
Pets : Molly On The Couch
Jayenkai Wed 05:32
Snippet : Grid Menu
Pakz Mon 12:15
Showcase : Gamma Collexion
Jayenkai Sun 12:56
Showcase : SSASE
spinal Sun 07:51
Snippet : Water in 2d map
Stealth Sat 20:19
News : Newsletter #292
rockford Fri 12:16
Showcase : Mining Map AI Demo
Stealth Wed 08:02
Blog : Spilling my Noodles
Jayenkai Tue 21:58
Dev-Diary : Current Direction
Pakz Tue 13:46
Showcase : Biomorph Fractals
Andy_A Tue 13:15
News : Newsletter #291
steve_ancell Fri 08:56
Snippet : Futuristic Weapon Images
Pakz Fri 04:01
Snippet : Face Formula
Andy_A Thu 14:56
Snippet : Three Bezier Functions
Andy_A Thu 14:52
More

Who's Online
rychan
Sat, at 12:39
spinal
Sat, at 12:35
Jayenkai
Sat, at 12:22
Evil Roy Ferguson
Sat, at 12:01
rockford
Sat, at 11:47
Kuron
Sat, at 11:28
shroom_monk
Sat, at 06:18
GfK
Sat, at 06:17
steve_ancell
Sat, at 05:01
Pakz
Sat, at 03:47
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.