Announcement

Collapse
No announcement yet.

Datasmith Feature Requests

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by goodchild31 View Post
    Hi, I need to read PDF files in UE4.
    A data of assets contain the path to the PDF file and I need to watch it in the viewport.
    Maybe it's already possible but it seems no.
    Is it possible now and how?
    Thks.
    I'd love to be able to load PDF data in too. I guess you'd need a PDF reader that could generate bitmap data for a texture at runtime. It's definitely possible to load in a folder of JPGs etc and use those dynamically. I wrote some C# functionality for that a while back using USharp to run the code in UE4. Adding the PDF conversion too would be a cool idea.
    David Gillespie
    Associate
    Foster + Partners

    Comment


      Are there plans to improve the Python API reference, to match the more recent features of the Dataprep asset? Would be nice to have those in relative feature parity. As far as I can tell the more recent features of Dataprep aren't covered by the API: https://docs.unrealengine.com/en-US/...s&area=default.

      Also speaking of the Dataprep asset, attempting to view Metadata to filter assets is nearly impossible through the Dataprep window—UI needs some adjustment.
      Click image for larger version  Name:	Annotation-20200114-163436.png Views:	0 Size:	40.7 KB ID:	1708590
      Last edited by pprfrost; 01-14-2020, 01:11 PM.
      Richard Frost

      Head of VR & AR
      Pilbrow & Partners

      Comment


        Dataprep Commit seems to add everything back into the current level, which is annoying if you've made changes. Datasmith has an option to not respawn deleted actors, but Dataprep doesn't seem to have this?

        Also, the result from the Dataprep Commit does not have the white balls on empty actors that the result from a straight Datasmith import has (which is preferrable actually, so I'd rather hope that when you drag a Datasmith scene into a level in the future the white balls will be hidden for it as well).

        Comment


          Originally posted by roberteker View Post
          Dataprep Commit seems to add everything back into the current level, which is annoying if you've made changes. Datasmith has an option to not respawn deleted actors, but Dataprep doesn't seem to have this?

          Also, the result from the Dataprep Commit does not have the white balls on empty actors that the result from a straight Datasmith import has (which is preferrable actually, so I'd rather hope that when you drag a Datasmith scene into a level in the future the white balls will be hidden for it as well).
          Once a Dataprep Commit has been made, I believe the intended workflow is to then update the scene through the Datasmith Asset Dataprep > Update Datasmith Scene(s). From my experience, this then works as expected.
          Richard Frost

          Head of VR & AR
          Pilbrow & Partners

          Comment


            I have recently been working with some very large Revit files. My workflow has been to break the model into 20 sectioned views in Revit and export them individually to Datasmith files. I have then created an editor utility that imports each view to a new streaming level. These can then be streamed in and out at runtime in UE4.

            Unfortunately, each separate Datasmith file creates its own Geometry, Materials and Textures folder. This means that even though assets are actually shared between views, each brings its own copies.

            It would be great to have a feature to allow multiple Datasmith files to share the same asset folders in unreal. On Datasmith import it could skip creating any duplicate assets and use the existing ones from the folder. This would both increase performance and make further data prep much easier.

            As a bonus, it would be amazing if the Revit exporter could export multiple Revit views at once (perhaps a gui to select which views to export?)

            Comment


              Dataprep only has a "filter by volume"... but how do you know the volume of your objects in the dataprep window?

              I can only see an "approx size" for the entire import, and even then, I have to manually multiply those three value together to get a volume.

              It would be nice to get the volume directly in the interface, and also be able to select and isolate individual objects in the view.

              (Also, if it will end up with a blueprint paradigm, and not stacks, it would be nice to see what rules affect what objects, like you can with the line highlights when pressing play.)

              Comment


                Originally posted by pauljohnson View Post
                I have recently been working with some very large Revit files. My workflow has been to break the model into 20 sectioned views in Revit and export them individually to Datasmith files. I have then created an editor utility that imports each view to a new streaming level. These can then be streamed in and out at runtime in UE4.

                Unfortunately, each separate Datasmith file creates its own Geometry, Materials and Textures folder. This means that even though assets are actually shared between views, each brings its own copies.

                It would be great to have a feature to allow multiple Datasmith files to share the same asset folders in unreal. On Datasmith import it could skip creating any duplicate assets and use the existing ones from the folder. This would both increase performance and make further data prep much easier.

                As a bonus, it would be amazing if the Revit exporter could export multiple Revit views at once (perhaps a gui to select which views to export?)
                Visual dataprep should allow you to select multiple datasmith input files and put it through one pipeline. It will only give you one Datasmith object at the end however the generated content should share materials (not sure if instancing works between files eg multiple Revit files each using the same chair family)
                David Gillespie
                Associate
                Foster + Partners

                Comment


                  Now that Rhino improvements have been made can we look forward to better Solidworks importing on the roadmap?

                  Comment


                    I'm a bit puzzled by this:

                    Click image for larger version  Name:	1.png Views:	13 Size:	26.4 KB ID:	1735064

                    If I search this forum, I can find a number of users asking for how to import Datasmith hierarchies as blueprint (actors), but the number of users asking for how to import them as a level seems to be zero...

                    ...was there a large architecture firm behind the scenes who wanted to do level streaming on their huge middle eastern projects, I wonder?

                    EDIT: Also, that level is not open, and I cannot delete it. What is going on?

                    Click image for larger version

Name:	1.png
Views:	60
Size:	23.8 KB
ID:	1735880
                    Last edited by roberteker; 03-23-2020, 04:51 AM.

                    Comment


                      Why the Data smith geometry imported now comes with it own post procession volume??
                      It took me a couple of day to figure out that, after each import my scene got black and I could figure out why. also when you do a search those volumes don't show up you have to scroll in the outliner to find them.

                      Comment


                        Originally posted by fco3d View Post
                        Why the Data smith geometry imported now comes with it own post procession volume??
                        It took me a couple of day to figure out that, after each import my scene got black and I could figure out why. also when you do a search those volumes don't show up you have to scroll in the outliner to find them.
                        Hi fco3d,

                        It sounds like you are using 3dsMax to generate your datasmith files : if that is the case, you can remove post process volumes from the max datasmith export by going in your "Rendering" settings, then "Exposure Control", and finally switching the exposure control preset to "<no exposure control>".

                        You can then export your scene and the post process volume will not exist anymore when the datasmith file is imported in the engine.
                        Antoine Guillo

                        Product Specialist AEC, Unreal Engine Enterprise
                        Epic Games - LinkedIn

                        Unreal Studio Documentation
                        Unreal Studio Technical Support
                        Report Unreal Studio Bugs

                        Comment


                          Originally posted by Antoine_Guillo View Post

                          Hi fco3d,

                          It sounds like you are using 3dsMax to generate your datasmith files : if that is the case, you can remove post process volumes from the max datasmith export by going in your "Rendering" settings, then "Exposure Control", and finally switching the exposure control preset to "<no exposure control>".

                          You can then export your scene and the post process volume will not exist anymore when the datasmith file is imported in the engine.
                          Thank you for the explanation.
                          Now I wonder what was the thinking on making this a default feature??
                          Is the lighting inside Unreal the same as what I would get inside 3D Max with V Ray renderings?? is that why?

                          Comment


                            Originally posted by david.gillespie View Post

                            I'd love to be able to load PDF data in too. I guess you'd need a PDF reader that could generate bitmap data for a texture at runtime. It's definitely possible to load in a folder of JPGs etc and use those dynamically. I wrote some C# functionality for that a while back using USharp to run the code in UE4. Adding the PDF conversion too would be a cool idea.
                            You can read directly pdf in cef, by recompiling source code for cef part.
                            I don't have experience with specific plugin creation, but I used that procedure last year and works well.
                            or you can setup a small web server with pdfjs or js reader and setup that in web browser
                            ​​​​​​First option is better of course.
                            It would be nice to create a small plugin with pdf reader (maybe starting from cef, like blui).

                            I found my old video on LinkedIn:

                            https://www.linkedin.com/posts/fcapp...212951552-nrOm



                            ---EDIT---

                            Click image for larger version

Name:	CatturaPDF.jpg
Views:	49
Size:	195.2 KB
ID:	1738864

                            Alternatively you can setup as said in this topic [Credits to user eray_ozr]:

                            https://forums.unrealengine.com/deve...th-web-browser

                            I find a javascript which works perfectly with UE4 Native Web Browsers. Maybe you can look it.

                            Quick Instruction:
                            - Download "Viewer JS" https://viewerjs.org/getit/
                            - Install Wamp (you can use another server)
                            - Create a folder in "www" with a name which you desire (mine is PDF_Viewer)
                            - copy "ViewerJS" folder and its contents from zip to created folder in www
                            - Create another folder in PDF_Viewer (or what you call your first created folder) (mine is PDFs)
                            - start wamp
                            - Point UE4 Web Browser Widget to "localhost/PDF_Viewer/ViewerJS/#../PDFs/file.pdf"

                            NOTE:
                            With this JS, you can show ".pdf / .odt / .ods / .odp" files

                            ODT = Open source version of .docx. Word can export
                            ODS = Open source version of .xlsx. Excel can export
                            ODP = Open source version of .pptx. Power Point can export.

                            this JS does not require scr script html tags. But URL must contain "#.." after "ViewerJS" point. This syntax will load js and go to your document.
                            if you use it with "a href="#" you need to write just URL with #..

                            License of this JS is Apache 2.0

                            Load time takes some seconds depends on your document.
                            Last edited by FrankiePibbs; 03-30-2020, 06:19 AM.

                            Comment


                              Please also have a look to latest BLUI version:

                              https://github.com/getnamo/BLUI/releases/tag/3.7.0

                              It supports natively PDF rendering, and seems best method to do everything.

                              Click image for larger version

Name:	PDFBLUI.jpg
Views:	73
Size:	258.1 KB
ID:	1738971


                              https://forums.unrealengine.com/comm...84#post1732284

                              Credits obviously to getnamo


                              PS: I have some problems to figure out to compile an exe version with this plugin included. If anyone has ideas howto, would be really pleasant.

                              Comment


                                • I have several models in a .udatasmith file
                                • After import, I use "convert selected components to blueprint class"
                                Now I want to update some of my models...
                                • Regardless if I use Datasmith or Dataprep, the entire scene is re-spawned in the level
                                • Now I have to delete it every time and ignore these "break reference" warnings.
                                • Also, in my blueprint actors, meshes not present in the update remains, which means they're not cleaned out from the content folders either.
                                It's a super annoying workflow!
                                Last edited by eobet; 04-04-2020, 07:13 AM.

                                Comment

                                Working...
                                X