View Single Post
Old 07-24-10, 02:31 PM   #1203
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Quote:
Originally Posted by privateer View Post
Use whatever I do as you see fit Mate.


I'm sure you'll do a better job then me!
I do have one more question if you have the time.
In the SH5 Sim, ship_color, which is in the Unit_Ship controller.
It's 3 floats to define the color.
So we see:
ship_color 00 00 00 00 00 00 00 00 00 00 00 00 00
It's a float r, float g, float b, structure.
How best to declare this so S3D understands?
There's no wrapper for this (new) color type. Either use a Vector3 (3 floats xyz) or define a custom 'struct' (not class!) which contains 3 floats r g b. Either works, the latter has the benefit of less confusion. Unfortunately, the built-in color editor can't be used though...
skwasjer is offline   Reply With Quote