Skip to content

Conversation

@Nitish-bot
Copy link
Contributor

Closes #57

@Nitish-bot
Copy link
Contributor Author

have also tried to implement a translate_3d and sphere function that appends a sphere to the current geoemetry mesh but Im not sure if it's a particularly correct implementation. It currently throws an error that goes: GeometryNotFound

Upon running the example without the sphere function, it displays nothing but also doesn't throw an error which makes me think all is going well.

@catilac catilac self-requested a review January 24, 2026 18:52
@catilac
Copy link
Contributor

catilac commented Jan 25, 2026

Hi @Nitish-bot, thank you again for working on this. I'm finally running your patch. It isn't working, and the PR has gone beyond scope, and we are limited on time for debugging folks' work.

If you would like, remove the sphere implementation, and the translate related code you added as well as it's out of scope and broken. Then make an implementation that demonstrates the begin/end_geometry implementation is actually working, using the other functionality that does work (ie draw_cube).

Lastly, take a screenshot before you re-open this PR demonstrating that it is working.

We are still in the design phase for a lot of the API and much of it will change and we aren't ready to support new contributors for most tasks. We are trying to get there! And I really want you to be involved, but this not a stable enough project to quickly bring people into just yet.

@catilac catilac closed this Jan 25, 2026
@catilac catilac reopened this Jan 26, 2026
@catilac catilac requested a review from tychedelia January 26, 2026 21:32
@Nitish-bot
Copy link
Contributor Author

Hey @tychedelia! As moon rightfully mentioned, the PR is a little bit beyond scope and it wasn't working entirely.

I couldn't simply test this with the draw_box function since that creates a whole new geometry of it's own so it wouldn't test the functionality at play here which I why I resorted to adding a sphere function that appends a sphere to the running geometry held inside of RenderState.

I made a fresh commit that tests the lower level functions in a rust example. Now the rust example partially works displaying a sphere in the center of the screen but not responding to any translation commands. On the python side of things, nothing shows up at all even though both examples are effectively the same.

Comment on lines +379 to +398
let layout_entity = commands
.spawn(VertexLayout::with_attributes(vec![
builtins.position,
builtins.normal,
builtins.color,
builtins.uv,
]))
.id();

let mut mesh = Mesh::new(
Topology::TriangleList.to_primitive_topology(),
RenderAssetUsages::default(),
);

mesh.insert_attribute(Mesh::ATTRIBUTE_POSITION, Vec::<[f32; 3]>::new());
mesh.insert_attribute(Mesh::ATTRIBUTE_NORMAL, Vec::<[f32; 3]>::new());
mesh.insert_attribute(Mesh::ATTRIBUTE_COLOR, Vec::<[f32; 4]>::new());
mesh.insert_attribute(Mesh::ATTRIBUTE_UV_0, Vec::<[f32; 2]>::new());

let handle = meshes.add(mesh);
Copy link
Contributor Author

@Nitish-bot Nitish-bot Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece of code is the same as the beginning of the create function at line 95 so it could be abstracted away into a new function that creates and returns a default Geometry which can then be called in both places.

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

Successfully merging this pull request may close these issues.

[pyo3] Create beginGeometry/endGeometry methods in python

2 participants