Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Blending and lighting problems: the blending function doesn't work after rotation...

  1. #1
    Newbie Newbie
    Join Date
    Apr 2013
    Posts
    1

    Blending and lighting problems: the blending function doesn't work after rotation...

    Hi,

    I am working for a 3D surface rendering. The rendering function works good when the rotation angle rotX(in x direction) and rotY(in y direction)
    is between -90 to 90 degrees, when they are between 90 to180 degrees, the 3D object can not be blended...

    the FOV is (-128, 128, -128, 128, 100, -100), the light is located at (128, 0, 0) and (-128, 0, 0)

    Is any ideas or advise about this issue? is it a drawing ordering issue or just depending the lighting and blending function?
    I am not sure why I couldn't post the source code...

    Thank you in advance!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,101
    drawing ordering issue
    For blending to work correctly you must draw back-to-front from the camera view point.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •