strange color problem
I have a "spaceship" coloured in shades of green
the problem is that when I enable lighting the colors become light blu, white and green
what could it be?
the problem is that when I enable lighting the colors become light blu, white and green
what could it be?
Screenshots would be really helpfull here. Otherwise, it could be a number of things...
off the top of my head:
- When using lighting, materials are used instead of colors, unless you use GL_COLOR_MATERIAL. Are you setting the materials properly?
- Do your "shades" of green have non-zero green and red channels?
off the top of my head:
- When using lighting, materials are used instead of colors, unless you use GL_COLOR_MATERIAL. Are you setting the materials properly?
- Do your "shades" of green have non-zero green and red channels?
You really didn't tell us anything that could help us solve your problem, it could be hundreds of things. Are you sure your light is white?
yeah my light is white and I've enabled color material...
sorry for the short post but I'm a little tired
I'd post a screenshot, but I don't know how to take one under osx
sorry for the short post but I'm a little tired
I'd post a screenshot, but I don't know how to take one under osx
Go to the applications folder and then go to utilities. There is a program called grab. Then go up to capture and choose how you want to capture the picture. I personally like just using the selection tool. Don't worry the popup is invisible in the picture so don't worry about moving it.
You don't have to use Grab. Just press Cmd-Shift-3 to get the whole screen, or Cmd-Shift-4 to get a selection. Or Cmd-Shift-4, space to get a window (does not work with OpenGL content.)
This is documented in the Mac Help, btw.
This is documented in the Mac Help, btw.
Oh ok thanks. I didn't even know that. Wait, you said Cmd-Shift-4 twice. Which is which?
Oh I was thrown off by the comma in there.
without light:
with light:
the model is copyrighted, so please don't steal the magnificent model idea or my horde of lawyers will eat you
with light:
the model is copyrighted, so please don't steal the magnificent model idea or my horde of lawyers will eat you
maybe the solution lies here:
I'm importing models from meshwork, so to find a triangle color I divide the color of the material by 65535 (the program uses a 0-65535 scale)
the fact is that the colors I get with the lighting enabled are the same colors I get If I don't divide the colors by 65535
hope it helps someway
I'm importing models from meshwork, so to find a triangle color I divide the color of the material by 65535 (the program uses a 0-65535 scale)
the fact is that the colors I get with the lighting enabled are the same colors I get If I don't divide the colors by 65535
hope it helps someway
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Problem with the graphics color on a videogame for iphone | femmedragon | 6 | 1,905 |
Dec 16, 2012 07:37 PM Last Post: SethWillits |
|
| ? Find color value of 'pixel' in color buffer? | Elphaba | 1 | 3,513 |
Jul 22, 2009 01:23 PM Last Post: Bachus |
|
| GLLighting color problem | clapton541 | 4 | 3,357 |
May 5, 2007 08:34 PM Last Post: OneSadCookie |
|
| Strange lighting problem | Duncanla | 14 | 5,321 |
Mar 1, 2005 02:43 PM Last Post: Duncanla |
|
| Strange SDL problem | DJBlufire | 4 | 2,928 |
Sep 24, 2003 09:09 AM Last Post: MattDiamond |
|

