Announcement

Collapse
No announcement yet.

Box Camera mapping

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

  • Box Camera mapping

    I am working on a car interior that is to used in Unity.
    The end goal is that you can view the interior of the car using a vr head set (google cardboard) and you can look around.
    The camera is nodal and located where the drivers head would be.

    Its a really high poly and messy model that is not usable in Unity. So we have re-modelled a low res version of the interior.

    I have the worked up the high res model and got the interior looking pretty good in a vray render.

    I am trying to figure out a good way to remap the image back on the low res geo.

    So far I have rendered an image using the box camera in vray which has given me a cubic map.

    Now I need to project that map out of the camera on the geo. Any ideas?

  • #2
    Have no real experience with preparing games models for Unity so no idea if I am heading in the right direction.

    Using the new vraytriplanartex set to use the camera as its reference node I can apply a shader to all geo and look around the cube map I rendered out.
    Now I just need to figure out if it is possible to translate from the shader to the models using render to texture.

    Comment


    • #3
      For anyone interested in taking a high res scene, rendering it and re-projecting it back onto low res geo so that you can look around (Nodal camera) in Unity or any vr app I did get this to work in the end by using 6 cameras and camera projecting them.
      I highly recommend the excellent camera map gemini plugin for 3dsmax. Made the whole process so much easier than the regular 3dsmax camera mapping.


      That said it could be much easier.
      render out a cube image
      load it as bitmap in the vray hdri loader set to mapping type cubic
      put this in the vraytriplanartex set to reference using the camera from which you rendered the box image, put in diffuse slot and self illumination
      you now have a low res scene with all the detail of rendered high res scene projected on all in one go, no camera mapping.
      Apply to all the low res geo. look around and hit render and vray will translate the uvs perfect

      if it were possible to render this to texture it would be a very fast way to get environments into vr

      Comment


      • #4
        Wouldn't it be better to use spherical maps? The triplanar texture can only project three textures whereas you need six?

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment

        Working...
        X