Scene.debug.line

@John @sim i find the scene.debug.line command very very useful! Is there a possibility to change the line diameter and/or modify its opacity? It could also be useful to document its existence!

1 Like

We are focusing on getting the new engine up and running as the default, but stuff like this — debug rendering options, are definitely things we would like to include as well

For Craft, there is also scene.debug.bounds(Bounds, color)

Where bounds has a min and max extent (vec3)

yes, i agree the new codea is the priority.

Sorry i did not understand what the debug.bounds will do and what the min and max are actually for?

bounds draws a bounding cube out of lines, with min and max representing the extents of the bounding cube (i.e., it draws 8 lines making a wireframe cube shape)

Hi, could you explain how scene.debug.line works?

scene.debug:line(o, e, c)
o=vec3 of origin of line
e=vec3 of the end of the line
c=color of the line

Use in the draw function to draw a line in a 3d craft scene.

1 Like