coding question

Discussion about everything. New games, 3d math, development tips...
Post Reply
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

coding question

Post by MikeR »

I've looked all over and can't find an answer to my question, so I'll post it for you.
In the examples, the color settings are something along the lines of:
(255,255,255,255) What is that 4th number? RGB is only 3.

also, when looking at size of an object, it's using something like (0.0f) ??huh?? I'm trying to understand these things.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

alpha, red, blue, green
float(?)
Guest

Post by Guest »

its f32! and when you give the size, rotation etc. its vector3df which contains f32 i guess
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

A color code with four components is called ARGB. On a total of 32bits, each one can be allocated 8 bits. 2^8 = 256 hence the 0-255 range.

As for f32, its Irrlicht's type definition for a 32bits float. It ensures portability.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Thanks. That answers those.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Post Reply