Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HOW can i render a object as one color whatever its position is change or not in the worldspace ?
Forum Updated to NodeBB v4.3 + New Features

HOW can i render a object as one color whatever its position is change or not in the worldspace ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 391 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jimfar
    wrote on last edited by
    #1

    with QT3D,HOW can i render a object as one color whatever its position is change or not in the worldspace

    DiracsbracketD 1 Reply Last reply
    0
    • J jimfar

      with QT3D,HOW can i render a object as one color whatever its position is change or not in the worldspace

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #2

      @jimfar

      I think you can change your theme. In my case, I wanted to plot a Q3DSurface and set the setAmbientLightStrength to 1 and disabled the background setBackgroundEnabled

          //Set theme
         Q3DSurface* m_graph;
         ...
      
          Q3DTheme* theme = new Q3DTheme(Q3DTheme::Theme(1), m_graph);
          m_graph->setActiveTheme(theme);
      
          theme->setAmbientLightStrength(1.0f); 
          theme->setBackgroundEnabled(false); //disable Xplane color, reflection etc...
      
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved