We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Background color display issue

Home Forums General Questions Background color display issue

  • This topic has 2 replies, 2 voices, and was last updated 6 months ago by kdv.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #68084
    aqiang
    Customer

    In a default scene, colors other than white and black always appear brighter than the set colors. Has anyone encountered this issue?

    Attachments:
    You must be logged in to view attached files.
    #68086
    aqiang
    Customer

    To correct it, I found that the background color displayed correctly when SSAA wasn’t enabled, but when SSAA was added, the entire scene became brighter. The current issue is whether it’s possible to maintain the overall color while using SSAA.
    `app.enableSSAA(4, false)

    #68139
    kdv
    Participant

    Try this:

    const color = new v3d.Color(0x333333);
    if (app.postprocessing)
        color.convertSRGBToLinear();
    app.scene.background = color;

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.