It is currently Sat May 25, 2013 12:15 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Mac - 3D Engine Color
PostPosted: Thu Feb 17, 2011 7:05 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
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

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Thu Feb 17, 2011 10:35 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 1917
Location: Germany
RGB <-> BGR.

_________________
bye,
Daniel

http://www.bradan.eu/


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Fri Feb 18, 2011 1:03 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
DarkDragon wrote:
RGB <-> BGR.

The only color values in that code is in AmbientColor() and they are RGB(255, 255, 255)?

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Mon Feb 21, 2011 7:26 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 1917
Location: Germany
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:
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

http://www.bradan.eu/


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Mon Feb 21, 2011 9:07 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
Thanks, I understand now. So far everything else looks fine. ;)

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Fri Apr 13, 2012 1:38 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8876
Location: France
Already fixed in 4.61beta1


Top
 Profile  
 
 Post subject: Re: Mac - 3D Engine Color
PostPosted: Fri Apr 13, 2012 1:44 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
Fred wrote:
Already fixed in 4.61beta1

Sweet! Thanks Fred!

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: [Done] Mac - 3D Engine Color
PostPosted: Fri Apr 13, 2012 1:46 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8876
Location: France
May be you can check it to confirm ? (just don't use the terrain example as it is broken for now)


Top
 Profile  
 
 Post subject: Re: [Done] Mac - 3D Engine Color
PostPosted: Fri Apr 13, 2012 1:56 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
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

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye