Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help with my ‘3D engine’. Anyone know how to import and render meshes?
- sjps-4c33
-
Scratcher
6 posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
Umm, hello, I just wanted a tutorial on how to import 3D Obj file to 3D mesh then to render it. I already made a 3D engine following Codingbio’s tutorial, but does anyone know how to import obj like ggenji 3D engine or other engines? Thanks. Here is the link:
https://scratch.mit.edu/projects/1016667418/
THX and pls remix to give me answers!
https://scratch.mit.edu/projects/1016667418/
THX and pls remix to give me answers!
define how to make 3D
add [I made triangle render and the renderer] to [list v]
add [but how I add mesh] to [list v]
add [and render them] to [list v]
switch costume to [HOW I RENDER THEM v]
move (I am going to) steps
add [Bang my head] to [list v]
if < anyone help> then
set [ emotion] to [VERY HAPPY THANK GOD THX SO MUCH]
end
Me need help
<touching [ 3D] ?> <[3D] = [Supa hard]>
Last edited by sjps-4c33 (May 10, 2024 10:24:14)
- sjps-4c33
-
Scratcher
6 posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
move (HELP) steps
- AndreiTheScratchin
-
Scratcher
12 posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
Pretty sure you can't do that at all unless you make an INCREDIBLE amount of code to load them. Don't even get me started on importing them to Scratch.
- awesome-llama
-
Scratcher
1000+ posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
The obj format is both simple and easy to parse using scratch blocks. Since the format consists entirely of text, you can look at storing it either in a list or a variable and reading line-by-line or character-by-character.
The Wikipedia article is sufficient, it is what I used: https://en.wikipedia.org/wiki/Wavefront_.obj_file
The Wikipedia article is sufficient, it is what I used: https://en.wikipedia.org/wiki/Wavefront_.obj_file
Last edited by awesome-llama (May 10, 2024 12:26:37)
- sjps-4c33
-
Scratcher
6 posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
@awesome-llama I know you need to put data in list, but how to decode the data in lists? Do you have any example of how to do this? Tutorials with visual aid I like. Can u give me instructions?
add [I know but how?] to [message v]
When flag clicked
Bang my head as I don’t know how to import them…..
- sjps-4c33
-
Scratcher
6 posts
I need help with my ‘3D engine’. Anyone know how to import and render meshes?
I am young, how I do this? I don’t understand a thing.
when I receive [ What r u talking about? v]
DEALTH BY CONFUSION
Stop all
Last edited by sjps-4c33 (May 10, 2024 12:34:30)
- Discussion Forums
- » Help with Scripts
-
» I need help with my ‘3D engine’. Anyone know how to import and render meshes?