iDevGames Forums
strange color problem - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: strange color problem (/thread-6295.html)



strange color problem - leggo - Aug 25, 2004 03:58 PM

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?


strange color problem - sohta - Aug 25, 2004 04:07 PM

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?


strange color problem - Jake - Aug 25, 2004 04:08 PM

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?


strange color problem - leggo - Aug 25, 2004 04:17 PM

yeah my light is white and I've enabled color material...
sorry for the short post but I'm a little tired Bored

I'd post a screenshot, but I don't know how to take one under osx Blush Blush Blush


strange color problem - Nick - Aug 25, 2004 04:27 PM

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.


strange color problem - leggo - Aug 25, 2004 04:29 PM

tnx! tomorrow I'll post some screens... now I need to slee... ZZZ ZZZ ZZZ ZZZ


strange color problem - arekkusu - Aug 25, 2004 04:40 PM

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.


strange color problem - Nick - Aug 25, 2004 04:51 PM

Oh ok thanks. I didn't even know that. Wait, you said Cmd-Shift-4 twice. Which is which?


strange color problem - sohta - Aug 25, 2004 04:58 PM

The second one is Cmd-Shift-4-space.


strange color problem - Nick - Aug 25, 2004 05:02 PM

Oh I was thrown off by the comma in there.


strange color problem - leggo - Aug 26, 2004 03:30 AM

without light:
[Image: no-light.jpeg]

with light:
[Image: light.jpeg]



the model is copyrighted, so please don't steal the magnificent model idea or my horde of lawyers will eat you Sneaky
Rasp


strange color problem - leggo - Aug 26, 2004 04:33 AM

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 Shock

hope it helps someway Sneaky


strange color problem - leggo - Aug 27, 2004 08:36 AM

I've resolved switching to wings3d and obj files... now the colors are ok Rasp