Mac - 3D Engine Color

Advanced game related topics
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Mac - 3D Engine Color

Post by J. Baker »

Below is a link to a screen shot of a color error I'm getting in the 3d engine, on mac only. Anyone know anything that could help or is this a bug?
view screen shot
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Mac - 3D Engine Color

Post by DarkDragon »

RGB <-> BGR.
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac - 3D Engine Color

Post by J. Baker »

DarkDragon wrote:RGB <-> BGR.
The only color values in that code is in AmbientColor() and they are RGB(255, 255, 255)?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Mac - 3D Engine Color

Post by DarkDragon »

J. Baker wrote:
DarkDragon wrote:RGB <-> BGR.
The only color values in that code is in AmbientColor() and they are RGB(255, 255, 255)?
Sure, but PB OGRE should wrap the RGB to BGR inside the textures ;-) on your Mac. That seems to be a bug. Does it also happen with PB sprites? Do the textures on the filesystem look okay?

Here is your screenshot with RGB => BGR:
http://www.bradan.eu/files/rgb2bgr.jpg

Code: Select all

GetClipboardImage(0, 24)

StartDrawing(ImageOutput(0))
For x = 0 To ImageWidth(0) - 1
  For y = 0 To ImageHeight(0) - 1
    c = Point(x, y)
    Plot(x, y, RGB(Blue(c), Green(c), Red(c)))
  Next y
Next x
StopDrawing()

SetClipboardImage(0)
bye,
Daniel
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac - 3D Engine Color

Post by J. Baker »

Thanks, I understand now. So far everything else looks fine. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Mac - 3D Engine Color

Post by Fred »

Already fixed in 4.61beta1
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac - 3D Engine Color

Post by J. Baker »

Fred wrote:Already fixed in 4.61beta1
Sweet! Thanks Fred!
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] Mac - 3D Engine Color

Post by Fred »

May be you can check it to confirm ? (just don't use the terrain example as it is broken for now)
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: [Done] Mac - 3D Engine Color

Post by J. Baker »

Fred wrote:May be you can check it to confirm ? (just don't use the terrain example as it is broken for now)
It works! :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply