zak
03-03-2012, 16:10
the project is to make holes in a flat rectangular model of type M15.
just click on the woody surface to make square holes, move the mouse while pressing it and you have a worm path. use arrows to rotate the surface, and P,L to move light up down, press F1 for help with keys.
the model composed from triangles and every triangle have 3 vertices, the order of vertices like this picture:
7829
i don't know if it is possible to delete the triangle vertices in the memory, but we can assign the coordinates of the second vertex to the first vertex so we have a very thin triangle (ie: a line) and the what was space inside the triangle now outside and we can look through it.
i have constructed a cubes over every consecurtive 2 triangles so to check if the mouse click is within one.
then deleting a 2 triangles which form a square. i feel something not precise here but my brain are frozen from cold.
there is something regarding the light, it is the Gray color around the holes, we can get rid of it if we turn off light. i don't know why this phenomena.
7830
references:
of course i depend heavily on the Petr tactics/plans/code in
demo_of_0192.TBASIC" IN FOLDER "TBGL_BonusPack_1_6_0_10\GUIandText\Selection" in the TBGL Bonus Pack Version: 1.6.0.10 downloaded from here
http://www.thinbasic.com/index.php?option=com_jdownloads&Itemid=95&task=viewcategory&catid=5
2- water_patch example in the thread http://www.thinbasic.com/community/showthread.php?8150-Height-of-ground-how-to-get-this
just click on the woody surface to make square holes, move the mouse while pressing it and you have a worm path. use arrows to rotate the surface, and P,L to move light up down, press F1 for help with keys.
the model composed from triangles and every triangle have 3 vertices, the order of vertices like this picture:
7829
i don't know if it is possible to delete the triangle vertices in the memory, but we can assign the coordinates of the second vertex to the first vertex so we have a very thin triangle (ie: a line) and the what was space inside the triangle now outside and we can look through it.
i have constructed a cubes over every consecurtive 2 triangles so to check if the mouse click is within one.
then deleting a 2 triangles which form a square. i feel something not precise here but my brain are frozen from cold.
there is something regarding the light, it is the Gray color around the holes, we can get rid of it if we turn off light. i don't know why this phenomena.
7830
references:
of course i depend heavily on the Petr tactics/plans/code in
demo_of_0192.TBASIC" IN FOLDER "TBGL_BonusPack_1_6_0_10\GUIandText\Selection" in the TBGL Bonus Pack Version: 1.6.0.10 downloaded from here
http://www.thinbasic.com/index.php?option=com_jdownloads&Itemid=95&task=viewcategory&catid=5
2- water_patch example in the thread http://www.thinbasic.com/community/showthread.php?8150-Height-of-ground-how-to-get-this