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. Qt3D: scale3D a point light
Forum Updated to NodeBB v4.3 + New Features

Qt3D: scale3D a point light

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 945 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.
  • M Offline
    M Offline
    Mephi
    wrote on last edited by
    #1

    I try to scale3D a QML PointLight entity with the componetns PointLight and Transform
    i set the scale3D propery of the transform component of the entity, but the light is not transformed.
    when i give the light a material and a mesh component, then i see that the mesh is transformed, but not the light.

    Maybe someone has an idea, how i can have a spotlight, that is not a circle, i would like to have an ellipse.

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      I assume: A point light is geometrically a point, so that it does not have a size, or rather size "zero". And scaling 0 stays 0. It's not a light globe or bulb sort of object.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mephi
        wrote on last edited by
        #3

        Ok thst is a good argument, but how can i transform scale or manipulate the light? Sometimes i dont want to have a circle (spot or point) maybe i want a light that looks like a elipse, you have any idea?

        1 Reply Last reply
        0
        • m.sueM Offline
          m.sueM Offline
          m.sue
          wrote on last edited by
          #4

          Hi,
          you can simulate it with a selection of point lights or implement your own shader like here: http://www.gamedev.net/topic/552315-glsl-area-light-implementation/

          You can google for extended light source or area light and see what you get. Qt3D does not have it of-the-shelf, at least AFAIK.
          -Michael.

          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