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

splat disappear issue #410

Open
pradeepnandigam opened this issue Jan 23, 2025 · 1 comment
Open

splat disappear issue #410

pradeepnandigam opened this issue Jan 23, 2025 · 1 comment

Comments

@pradeepnandigam
Copy link

Hi @mkkellogg ,

First of all, I want to express my appreciation for your fantastic work on this repository. The results have been great overall, but I am encountering a minor issue while trying to change the color of the splat. This issue does not occur consistently, so I wanted to describe it in detail.

I am working on the delta feature, which represents changes, and I use colors to indicate these changes. For example, when I navigate to a particular spot, the delta is highlighted in green. Initially, the color changes work well for the first two or three locations, and I can clearly see the delta representation. However, after these initial changes, the splat starts losing its properties, and the color change no longer appears as expected.

I have attached images to demonstrate the issue:

Images 1 and 2 show the proper color change for the first two locations.
Image 3 illustrates the problem where the splat becomes less visible or does not display the intended behavior.
This issue happens consistently after the first two or three color changes. Could you please look into this? Any guidance or suggestions to resolve

**Code snippet , I am using to change color is **

this._gViewer.splatMesh.splatDataTextures.baseData.colors = updatedColorData;

this._gViewer.splatMesh.splatDataTextures.baseData.needsUpdate = true;

const toCount=this._gViewer.splatMesh.getSplatCount(false);

 this._gViewer.splatMesh.updateDataTexturesFromBaseData(0,toCount-1);

Image 1: (location 1)...........................worked well

Image

Image 2 :(location 2)............................worked well

Image

Image 3: (This is the issue)

Image

@pradeepnandigam
Copy link
Author

pradeepnandigam commented Jan 23, 2025

@mkkellogg, one more thing I observed is that if the changes are made at the same location multiple times , it works fine. However, the issue occurs when the location is changed simply when camera is moved to another location, and the color is updated

should i call any other function to update the data?

@pradeepnandigam pradeepnandigam changed the title Coloring issue splat disappear issue Jan 24, 2025
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