Announcement

Collapse
No announcement yet.

Great but...please a double precison solution

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Great but...please a double precison solution

    Hello,

    I am not a C++ expert nor a unreal engine expert but for now 6 month I am trying to prototype an application I would like to use to work with advertising agency ...there is a lot to do about virtual products...but I need some advanced options.

    So I'd try first with blueprint and discover the float/double precision problem...then I try to make it in C++ but it's much more complicated for me as you can consider me as an "artist" and not a programmer. I also tried to use math expression too but some of my data are like 0.000000000875 and so in float the result is 0 which is not possible...and multiply the value by 1000000 then divide the result is not possible as the algorithm is very complicated.

    also small bug ? math expression can't start with a negative value like -2.79....

    So...to make it shorter : I can see that you would like Architect, Enterprises, Engineers to use more UE4 but I think they also need double precision ... at least to make calculation and then convert the result to float if there is no other solution. So please can you do something here ? And if there is already a solution please make it more visible because after hours of search on the web I didn't find a solution...all I find is obsolete or useless

    This said I love UE4.Thanks !

    #2
    What are you trying to do?

    Comment


      #3
      Make a custom engine build that uses doubles.

      Or you could alter your algorithm to be in a higher exponent instead.

      Instead of 0.00000000000875 you calculate with 875 and shift it afterwards

      Comment


        #4
        Originally posted by Raildex_ View Post
        Make a custom engine build that uses doubles.

        Or you could alter your algorithm to be in a higher exponent instead.

        Instead of 0.00000000000875 you calculate with 875 and shift it afterwards
        Hello ! what do you mean by custom build ?

        Comment


          #5
          Originally posted by darthviper107 View Post
          What are you trying to do?
          Few different things and one is using astronomical values.

          Comment


            #6
            That doesn't help, are you trying to do a very large world or are you simply trying to do some math in Blueprints?

            Comment


              #7
              Sorry: both. A very large world but not problem until now has I am using world composition but I am not sure I will not have some trouble later in the project. And math in the project also: I can do it but I know that the result will be not as accurate as it should be because by example when using expression using 0.000000956717 / 367.25 (just example : false equation). But UE4 is so impressive on a lot of aspect that I am disappointed not to find double. Ok I imagine engineer will use C++ if they face such problem but I am not and don't have that people in my team... so...

              Comment


                #8
                You can get the unigine engine, for only 10.000 dollars

                Comment


                  #9
                  Blueprints have enforced smaller floating point range on input fields.
                  You don't need doubles, you just have to use C++.
                  3D coordinate system in double precision is generally a bad idea, GPUs would take 4x more time to run the math instead of increasing performance.
                  | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

                  Comment


                    #10
                    Originally posted by BrUnO XaVIeR View Post
                    You don't need doubles, you just have to use C++.
                    Yes...one more thing to learn...that makes harder to reach goals for small teams or studios.

                    Comment


                      #11
                      oniregoc
                      Originally posted by oniregoc View Post
                      Yes...one more thing to learn...that makes harder to reach goals for small teams or studios.
                      There are hybrid solutions that can be done using BP. For example, storing values as STRINGS at crucial points in the calc... Regardless, you can still make a single-player or (local multiplayer) game that's +-2000KM or larger without any of that, including skipping Origin Rebasing too. So long as its a 3rd-Person only POV using single meshes (without attached components). It all just depends. Its best to do some rapid prototyping to see what's possible in your use case...

                      Comment


                        #12
                        Search for 'landscape origin shift'.. basically anywhere in the world, the origin can be reset therefore, the floating point of the coordinates will never be big enough to cause jitter (and inaccuracies).

                        Comment


                          #13
                          for me the only solution is to go C++...which is not so easy for an "artist" . Blueprint is an almost "easy" solution for artists but not C++. I need to be able to use numbers like : 4.6692568 which is convert by float to : 4.669257

                          Comment


                            #14
                            Converting everything to double (if it is even possible) will not work, as physx is using float (32 bit) internally.

                            Comment


                              #15
                              So let's upgrade physix to double...CPU now can handle this isn't it ?! For me the only actual solution is to go C++ which is not "artist oriented" ...but as indie...no choice

                              Comment

                              Working...
                              X