[Jprogramming] OpenGL
Thomas McGuire
tmcguirefl at gmail.com
Sun Mar 1 03:43:33 UTC 2020
At some point you are supposed to use a 3D drawing program like Blender or Maya, have it generate a ‘.obj’ file that contains all the vertex and coloring information. People publish some open source ‘.obj’s of familiar characters. That was ultimately my goal: Could I get J to read in a ‘.obj’ and render in the underlying openGL?
3dmag.org <http://3dmag.org/> has a free super Mario file located here:
http://3dmag.org/en/market/item/4240/ <http://3dmag.org/en/market/item/4240/>
I’ve searched but there does not seem to be an openGL library call to render this automatically. The best I have come up with are some C or C++ programs to render various parts of the file. Now that I understand openGL and how to use it J I may try to tackle this in the near future.
I do want to thank everybody responding to this thread. You have saved me loads of spare time I would have wasted if I was toiling away on my own.
Tom McGuire
> On Feb 29, 2020, at 6:23 PM, Brian Schott <schott.brian at gmail.com> wrote:
>
> Very nice, Tom.
>
> I removed 1,"1~
> from colorData1=: 1&fc ,1,"1~_3]\3#"2] 0&". ;._2 [ 0 : 0
> and got 1-color tetrahedral faces.
>
> In a_g_paint changing glClearColor 0 0 0 0 to glClearColor 0 0 0 1
> produce black background for the window.
>
> I'm anxious to figure out more, like how to put static eyes on the turtles;
> moving eyes would be even better.
> Is that a texture thing? I've never used textures or fragment shaders.
>
>
>
>
> --
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list