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

Issue with rendering NestedVoxels #14

Open
dekuraan opened this issue Apr 29, 2020 · 3 comments
Open

Issue with rendering NestedVoxels #14

dekuraan opened this issue Apr 29, 2020 · 3 comments

Comments

@dekuraan
Copy link
Contributor

Hi!
I spent a long time tinkering and got rendering NestedVoxel::Material working, after that I moved on to getting NestedVoxel::Detail working as chunks, but I can't seem to get it working. I've tried both SimpleVoxel's and NestedVoxel's as child voxels. I've tried contructing the struct both manually and using NextedVoxel::from_iter, but I can't get anything working. Is the subvoxel rendering not complete?

@Kurble
Copy link
Owner

Kurble commented Apr 30, 2020

Hmm, that's kind of the whole point of the crate, so it should work. What systems/rendering bundles do you have registered?

@dekuraan
Copy link
Contributor Author

dekuraan commented May 1, 2020

.with_bundle(
            VoxelBundle::new(10)
                .with_source::<ChunkData, TestVoxelSource>()
                .with_voxel::<DefaultBackend, ChunkData>(),
        )?
        .with_bundle(
            RenderingBundle::<DefaultBackend>::new()
                .with_plugin(
                    RenderToWindow::from_config_path(display_config_path)?
                        .with_clear([0.0, 0.0, 0.0, 1.0]),
                )
                .with_plugin(RenderVoxelPbr::default())
                .with_plugin(RenderSkybox::with_colors(
                    Srgb::new(0., 1., 0.),
                    Srgb::new(0., 0., 1.),
                )),
        )?;

I also have a FlyControlBundle to look around.
my Limits are just all Some(0) so I get one voxel rendered.
my view dims are [1,1,1]
my subdiv value is 2 -> 8 subvoxels
my voxelsource just returns a full detail voxel (all subvoxels are a red material voxel)

@dekuraan
Copy link
Contributor Author

dekuraan commented May 6, 2020

Hello?

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

2 participants