Embedding the viewport

Forum Forums Visual Components 4.0 .NET Addon Programming Embedding the viewport

Visual Components Essentials has been officially released, download link

Be sure to read the Forum Rules and Guidelines before start using the Forum.

Tagged: 

This topic contains 8 replies, has 5 voices, and was last updated by  pduda 4 days, 12 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #577

    Ralle
    Participant

    Hi,

    how can I embed the viewport of NG in another application?

    br/Ralle

    #593
    Gargamel
    Gargamel
    Participant

    Hello Ralle,

    Unfortunately this is currently not possible, and the whole feature is still in research phase -> won’t be available anytime soon..

     

    #1611

    Ralle
    Participant

    Hello, are there any news about the issue? br/Ralf

     

    #1860

    maik.poggendorf
    Participant

    Hi

    I also like to encourage you to publish an open interface for the viewports.

    that would adress cool opportunities, f.e.:

    – 360° Live Renderings /Videos
    – Stereo-Rendering (easy Oculus implementation)

    ———————————————–

    As far as i understand the current “shared” API:

    1.) It’s possible to create a 3DWindow with own Camera/View- Setting via IApplication.Create3dWindow() and manage them via (Delete3DWindow/ActiveWindow/Windows)

    2.) It’s also possible to set the newly created 3DWindow via IViewPort.SetWindow() as active

    Problem here is that modifying IViewPort just affects the UIElement of the VC-Application (IViewPort.RootElement) = System.Windows.Controls.Viewport3D

    I didn’t manage to “detach” or “clone” the IViewPort.RootElement from the VC-application into my application.

    —–>

    It would be great if IViewPort could publish for example an UIElement of type (Viewport3D)????

    Thanks

    #1862

    maik.poggendorf
    Participant

    Hi
    I manage to show the IApplication.ActiveWindow in a separate Window, but i’m not satisfied with the solution, because it’s not the viewport itself. To those who like to review the code… be warned… started .net 5 days ago. If you come up with a better solution… please share.
    Problems:
    1) Framerate: IApplication.SurfaceToBuffer() (1Hz) vs. IApplication.SurfaceToContineousBuffer()  (30Hz)
    2) IApplication.SurfaceToContineousBuffer() needs IApplication.SetRecordingMode(true)
    -> Rendering in VC-window paused
    – you can still drop layouts in VC-windows and play simulation
    – also pan/zoom in VC-windows effects just the 2nd window,  not the VC-window itself
    3) It seems that there are some async rendering functions with an explicity interface for a seperate 3DWindow:
    SurfacePrepareRender(3DWindow);
    SurfaceStartRender(3DWindow);
    SurfaceWaitRender(3DWindow);
    but i couldn’t find a way to use the SurfaceToBuffer() or SurfaceToImage() function independently from IApplication.ActiveWindow
    -> so if i like an “image” i have to make the 3dwindow active??

    I didn’t tried to get a better performance:
    -Direct3D UI stuff like SharpDX etc. for visualisation

    Attachments:
    You must be logged in to view attached files.
    #1895
    eme
    eme
    Moderator

    Thanks maik for sharing. I totally agree with you about the support for 360 video player, VC and AR type of use cases. It’ll probably need a little different type of approach from VC side.

    The support for the multi viewport support is basically still in the same state as Gargamel earlier stated. It’s in a research/development phase. You might get some things already working as you managed to do but support for navigation and handles (etc…) is not quite done yet. So for the time being I’d recommend to wait.. otherwise you’ll keep banging your head on a wall.

    #1898

    maik.poggendorf
    Participant

    Hi eme,

    thanks for reply to my investigation. As you mentioned, there are some parts of viewport already implemented. Is there any chance to get into a “fast ring” of beta releases? You may contact me also via email:

    maik.poggendorf@iff.fraunhofer.de

    thanks

    Maik

    #3378

    Ralle
    Participant

    Are there any news about the embedding possiblities research? In version 2014 it was a big strength to embedd the viewport in other applications.

    #3509

    pduda
    Participant

    Thanks for showing this example.

    I have a little different goal.  Instead of exporting the display to a different application, I want to display a second 3D graphics window in my VC application so I can have 2 views side-by-side.

    The naming implies that IApplication.Create3dWindow() would be a display ready element, but I cant seem to show it on the screen.

    Does VC have the capability to display 2 3D windows?

    Is this the “multi viewport” that eme indicated is still in research/development?

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.