Yeah, I think that would be a good approach, if you can find a way to make it work.
Do you mean raycasting/raytracing/raymarching?
idk what that is but probably
Old project of the user @trg078
https://snap.berkeley.edu/snap/snap.html#present:Username=trg078&ProjectName=obj%20loader&editMode&noRun ![]()
Sad thing is that traversing 2200 faces to get projected screen position and direction for light, takes ~500ms on my system. Much more than drawing visible triangles.
So there is a room for improvements like converting iteration into hyperoperators.
Oh, I didn’t know those existed.
I missed a bit, that is pretty impressive though
Could we use that with the beetle blocks.
Not really.
3D objects for this project are described by a set of triangles.
Beetle uses an extrusion model. It is probably tansformed into wast amount of triangles before rendering. I see no easy way of doing this in plain
“live”.
Beetle View can exprt STL files - something like
solid stlmesh
facet normal 0.9951847119559186 0 0.09801728974632536
outer loop
vertex 0.5 10 0
vertex 0.49039262533187866 2.1659376923843757e-17 0.09754516184329987
vertex 0.5 0 0
endloop
endfacet
It may be parsed and interpreted for display.
Ok, thanks for saying that.
I have this Idea for how we could animate it. We can have the beetle draw what we want it to and then they go into the correct camera position then save their view to a list and then once all the frames are done then we can have all of those frames played out at the user’s FPS as costumes. Still have no clue how to let the user to make models without making it look weird and unusable.
this is A Excellent Creation, I support it!
Cool ![]()
I just got another Idea for how we could do the animations. We could split all of the different parts of the model into different simple parts so we can move and rotate all of the parts indavitally and have them move on their own too.
I have one more idea for how to animate, the user makes a list of commands for the items for each frame. I am kinda busy so I can’t put it in right now. I still don’t know how the user can save their project. Also is there a way to squish the shapes.
Made a few changes, still can’t do much yet.
By Parts do you mean different items contained in a model (Example: A up and a Table)?
I mean like the different shapes that move around in the models independently move to create a different picture.
It wouldn’t work if all of them were one object.
I haven’t read through the vast majority of clutter on this forum. But I do have a block that assists in raycasting
Here’s a link that might help: Raycast block usage example by mrace0 | Snap! Build Your Own Blocks
That would be useful but that project doesn’t use Beetle Blocks. No offence though.