Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use desktopCamera pos as input camera pos , and align the GS render with mesh model ? #27

Open
cyz2727327 opened this issue Nov 16, 2023 · 0 comments

Comments

@cyz2727327
Copy link

Hi,

This is great work!

I have a quick question though, my web application has a 3D interface where I can navigate my camera to view a mesh model.

Now I want to feed my camera pos (4*4 matrix or a 1Delement[16]) into this and view the GS rendering from the camera pos, assuming I can make the mesh model and the GS model sharing the same coordinate, I would effectively align the GS rendering with the mesh model.

I've been trying to do this on my own for a while but it seems the GS rendering has a weird way of taking camera matrix. What I did was directly replacing actualViewMatrix with my desptopCamera pos, but it seems to have some inversed axis.

Can you give me some insights on this matter? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant