It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to make an "Obj Model Maker" in the latest version of Codea (with the efficient build-in 3D processing code),but I has faced several problems.(forgive my poor English)
1.I want to make the Modeler based on the triangles,so I probably have to use the meshes in the craft? But I can't find any way to do that.
2.As shown in the screenshot,I made an axis in the corner ,I use the code
"scene.debug:line(vec3(), vec3(), color())"
which I discovered by coincidence and I don't know how the "scene.debug"works.
3.I found the display effect of the code"line" likes the method "bound" shown in a build-in example.But the bound can be covered by other models ,while the method "line" only can be drawn on the top.Is there any way to draw a "line" just like the "bounds"that can be covered?
4.I made the axis by creating another scene and drawing the axis in it.Then I draw the scene in another image and then draw the image in the corner,which makes the background of the axis is black.Is there any way to make it transparent,just like it's hovering on the screen?
5.As mentioned before, the method"line" is discovered by coincidence,why it wasn't listed?
Comments
@0Point Here's some code that I used to create a tube based on different number of sides. I create various tables that allows a texture, color, etc. This might help you understand how to create different sides for a model.
PS. I added scene.debug:line which shows that the line can be covered by the image that you mention in your #3.
@0Point Not sure when you first looked at my code above. Did you notice that I added scene.debug:line to the code to show that the line drawn can be hidden by the model.