Similated a camera view from a mobile phone

Home Forums Puzzles Similated a camera view from a mobile phone

This topic contains 15 replies, has 4 voices, and was last updated by Mikhail Luzyanin Mikhail Luzyanin 5 months, 1 week ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #7709
    Avatar
    vincent
    Licensee

    Can you imagine the puzzle to built one special texture. I modelise a smartphone in blender and I would like to have the true scene in Verge3D inside the screen of the phone. I take a photo and I have the real scene 3D on my mesh.

    • This topic was modified 7 months, 3 weeks ago by Avatar vincent.
    • This topic was modified 5 months, 2 weeks ago by Avatar vincent.
    Attachments:
    You must be logged in to view attached files.
    #7719
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    This is possible to do right now with some code. We can make a dedicated puzzle for that in the future.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #7720
    Avatar
    vincent
    Licensee

    Thanks you for your attention, I imagine a texture or other thing…

    #7721
    Avatar
    vincent
    Licensee

    There is this case study (or similar) inside Experience Curiosity (Nasa)

    #7727
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Experience Curiosity uses a slightly different approach – a 3D scene is rendered to another WebGL canvas which is positioned inside a

    HTML element (strictly speaking this is not rendering-to-texture). It was also implemented with code being too specific for Puzzles.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #9615
    Avatar
    vincent
    Licensee

    Hello Yuri,
    With my team, we have improve the file js with some code.
    There is a second camera in the scene, but the view camera is not in a good frame. There is a problem of frame that is upside down and inverted left right. Can you tell us, how best to export the settings of the camera.

    #9619
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    So you see the rendering from the camera and the only thing wrong is that it is inverted? Cannot be it some issue in your JS code?

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #9620
    Avatar
    vincent
    Licensee

    Yes, I would like to improve my level, trust me… I am a true designer for Verge3D.

    Attachments:
    You must be logged in to view attached files.
    #9623
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Okay, can you attach a minimal example project? or email it our way. Thanks!

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #9768
    Avatar
    vincent
    Licensee

    Hi,

    Now, I have rendering the second camera in a rendertarget like the example (https://gamedevelopment.tutsplus.com/tutorials/quick-tip-how-to-render-to-a-texture-in-threejs–cms-25686).

    And all is correct except the rendering is flipped. I have use the flipY properties but it does nothing.

    How can I flip the texture.

    Thanks,

    #9782
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    How can I flip the texture.

    May be flipping the UV on the Blender model can help?

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #9821
    Avatar
    jbetbe
    Licensee

    Hi, this is a quite interesting post. I guess with that code I could try to load any texture (with alpha) on a model, right? But I want to go further and make some configurator where our clients could load a specific image on the model itself. Will it be possible? I have no idea where or how to start. :unsure:
    Thanks!

    • This reply was modified 5 months, 1 week ago by Avatar jbetbe.
    • This reply was modified 5 months, 1 week ago by Avatar jbetbe.
    #9827
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi!

    clients could load a specific image on the model itself. Will it be possible?

    I recall there were some discussions about that. See here for example:
    link1, link2
    We’ll think how we can make it easier for Verge3D users.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #9831
    Avatar
    jbetbe
    Licensee

    Hi Yuri.
    Yes, that’s right! I saw it, but I didn’t remember it :whistle:
    I’m going to try it.
    Thanks!

    #9834
    Avatar
    vincent
    Licensee

    May be flipping the UV on the Blender model can help?

    In Blender, no solution with the UVs.
    We have a solution to custom a camera, our case studies is reproduce a phone. There is an issue with the camera view, we have write, when we export in .gltf scale of x = -1 for have a true view.

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.