sokhuong-uon / equirectangular-cubemap

convert equirectangular image (360° panorama) to cubemap images
https://equirectangular-cubemap.vercel.app/
MIT License
2 stars 1 forks source link

Desired features #12

Open ikonnow opened 10 months ago

ikonnow commented 10 months ago

I would like to request a few features for the equirectangular-cubemap project which is awesome! Here is my take:

So thank you very much for the super tool, in fact the options it already has are great, it really only needs a little more to work perfectly for me.

sokhuong-uon commented 10 months ago

hello thank you for your request.

to make sure that I update it correctly, here is the list of what I will do:

  1. Allow importing HDRI images.
  2. Changing the projection size of the cube that the equirectangular image is projected on: currently we have 256, 512, 1024, and 2048. so I will add 4096 to the preset. I don't really understand though. I haven't work with 3D things for a while now so please correct me.
  3. Enable exporting a single plane-texture of the cube, such as the floor:
    • please explain me more because currently, we can export each face individually like -y, +x
ikonnow commented 9 months ago

hello thank you for your request.

to make sure that I update it correctly, here is the list of what I will do:

  1. Allow importing HDRI images.
  2. Changing the projection size of the cube that the equirectangular image is projected on: currently we have 256, 512, 1024, and 2048. so I will add 4096 to the preset. I don't really understand though. I haven't work with 3D things for a while now so please correct me.
  3. Enable exporting a single plane-texture of the cube, such as the floor:

    • please explain me more because currently, we can export each face individually like -y, +x

Yes, first of all thank you for the quick answer!

  1. perfect!
  2. the resolution is not the main problem, but 4k is nice. What i was talking about is basically a change of the size of the cube. It should cause a change of the projection. Desired result: Scale the cube down, by a value, the ground gets bigger / the projection of the HDRI is "bigger"
  3. works already!
ikonnow commented 9 months ago

image this image defines the point 2.

ikonnow commented 9 months ago

Hey, thank you very much for the updated version, with the 4k option, the fact that you have implemented this so quickly naturally reinforces my wish that the above-mentioned implementation will take place. That would be super cool! Thank you!

sokhuong-uon commented 9 months ago

On my laptop, the 4k is so slow. Great to know it work for you.

Regarding the scale of the cube, I still learning about it. I did some experiment and it does not seem to change (When all side of the cube are equal). I think that the size or scale of the cube does not effect the trajectory of the projection.

What I can think of right now is to only change the size of a desired face and export it individually. This case we don't want all its faces. Is that what you mean here?

Enable exporting a single plane-texture of the cube, such as the floor

ikonnow commented 9 months ago

On my laptop, the 4k is so slow. Great to know it work for you.

Regarding the scale of the cube, I still learning about it. I did some experiment and it does not seem to change (When all side of the cube are equal). I think that the size or scale of the cube does not effect the trajectory of the projection.

What I can think of right now is to only change the size of a desired face and export it individually. This case we don't want all its faces. Is that what you mean here?

Enable exporting a single plane-texture of the cube, such as the floor

did you read this? https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-skybox.html it might help to get some useful insights

ikonnow commented 9 months ago

From browsing through this: https://drakeor.com/2023/04/27/equirectangular-to-skybox-projection/ I think we wants to change is the radius of the equirectangular sphere so it's projection changes the size/way it influences the cube

sokhuong-uon commented 9 months ago

Thank you for the resource. I will learn more. This one will take some time since I'm currently busy finding job. xd