Results 1 to 4 of 4

Thread: Problem which Color in 3d object

  1. #1
    Guest

    Problem which Color in 3d object

    I write programm, and there i have projector, and 3d objects.
    My problem is, that when i give to projector some color (or eaven if i don't give color), i cannot change color to my 3d objects, and i want make every object in ather color.

    How can i do that ?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Problem which Color in 3d object

    Hi !

    Yuo need to give more info here, are you using lighting or not ?, some code would not hurt either.

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2007
    Posts
    2

    Re: Problem which Color in 3d object

    Buy some paint

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Re: Problem which Color in 3d object

    As mikael_aronsson pointed out, it's important to knwo whther or not you are using lighting. I'll answer as assuming that you are...

    You should probably use glEnable (GL_COLOR_MATERIAL) - that way your material color will always match the vertex color you specify. If you do not, then changing the vertex color will have no effect on lit objects.

    Chris

Similar Threads

  1. Rebuffering a color array object?
    By Robbie in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 11-30-2011, 11:07 AM
  2. How do I color / texture a 3d object dynamically ?
    By brainydexter in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-25-2010, 12:22 AM
  3. set color for Nurbs object
    By stella in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-09-2005, 07:57 AM
  4. how to clear color of object from window?
    By meghnath in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-19-2005, 09:56 AM
  5. How to show object-color through light-color?
    By jonn in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-18-2001, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean