Showing particles only in a Viewport (or in a 2D Node)

(8 posts) (4 voices)

Tags:

No tags yet.

  1. hiddentux

    3D Experience Guru
    Joined: Feb '09
    Posts: 381

    Hi,

    I have a 2D Node with a behavior with a Render To Texture Building Block, which shows a different point of view (camera) than the one of my Viewport.

    I'd like to show particles only in this 2D Node, and not in the Viewport.

    Problem is, particles don't have any fGroup. So how am I supposed to do ?

    Thanks

    Posted 2 years ago #
  2. tiusnonos

    Studio/Virtools Guru
    Joined: Jun '07
    Posts: 343

    Hello Hiddentux,

    Maybe you could edit the render options of your viewport to tick fSkip3D ?
    Thus the particles will be only displayed in your texture.
    But maybe this solution is quite limited for you if you still want to display other 3d object...

    Eric

    Posted 2 years ago #
  3. tiusnonos

    Studio/Virtools Guru
    Joined: Jun '07
    Posts: 343

    Have you tried to set your particle system on a 3DEntity? (like the Point Emitter in the Library)?
    vkEntity3D have filter group

    Posted 2 years ago #
  4. hiddentux

    3D Experience Guru
    Joined: Feb '09
    Posts: 381

    Hi Tiusnonos

    At the begining I thought of your second solution, but sadly the fGroup aren't propagated to children...

    And for the first one, yep I need to show other 3D Objects (that's for my Experience on the Coriolis effect)

    Posted 2 years ago #
  5. qfarizon

    member
    Joined: Feb '10
    Posts: 17

    Maybe you could try vkViewport::NodesToRender() ...
    It' a bit complicated, since you may have to create your own culling system, and set it with SetNodesToRender(..), or you could try getting the culling system and modify it

    Posted 2 years ago #
  6. tiusnonos

    Studio/Virtools Guru
    Joined: Jun '07
    Posts: 343

    If you drag and drop a vkParticleSystem on a vkEntity3D, it does not create a subactor (children).
    It becomes a part of the vkEntity3D and just add a vkParticleSystem type in the component ring of the vkEntity3D.
    Thus the fgroup is working.
    Here is a project example with an AspectRatioManager I created. It renders the scene into a texture with correct aspect ratio.
    I set the particles into fgroup3 and deleted the fgroup3 from the main viewport. The render to texture create another viewport so the particles are rendered into the texture but not in the viewport.

    Eric

    Attachments

    1. ShowingParticle.zip (22.1 KB, 14 downloads) 2 years old
    WARNING: Files uploaded in the forums are not monitored by 3DVIA and therefore might contain content that is malicious or offensive. Download at your own risk
    Posted 2 years ago #
  7. hiddentux

    3D Experience Guru
    Joined: Feb '09
    Posts: 381

    Best Answer

    So if anyone has the same problem and wants to know the answer , the solution is simple : upgrade your version of 3DVIA Studio !

    Thanks Eric/Tiusnonos

    Posted 2 years ago #
  8. jdelrio

    Community Manager
    Joined: Apr '08
    Posts: 1,613

    /aproved

    Posted 2 years ago #

Reply

You must log in to post.