Re: [racket-users] Re: Polished 3D package for some simulations

2021-04-08 Thread Hendrik Boom
On Thu, Apr 08, 2021 at 11:22:10AM -0700, kamist...@gmail.com wrote:
> Have you tried out Pict3D [1]?

Two significant flaws with Pict3D:

* It does not have a mechanism for attaching a texture to an object.

* It does not allow one to cut one #D object out of another.
  (such as using a cylinder to drill a round hole in a block of wood)

Otherwise it's an impressive peve of work.

> There is also a library from Matthew Flatt that can create 3D Text / 
> extruded pathes: [2]
> 
> Personally I currently use opengl [3], these bindings support higher opengl 
> versions than the [4]
> (which only support opengl 1.5 according to its documentation)
> 
> I can't say exactly up to which opengl version [3] has working bindings, 
> these bindings were automatically generated, but that stopped working at 
> some point.
> (Apparantly the input that was used for the generation isn't provided for 
> recent opengl versions anymore, so the generator has to be fixed or 
> replaced to work with a different input/description)

Exactly.  I've been struggling with this last year, and I sort of gave up.
I'm thinking of looking at it again.

What happened to the spec is that the entire thing has been recoded from a 
completely ad-hoc formalism to a slightly less ad-hoc XML-based formalism.
Everything is different.  And the new one is somewhat inconsistent about 
the placement of asterisks in the XML phrases that form function prototypes.

I've been using sgl for my own work.  I suspect it to be largely 
hand-coded, but it seems to work.

There's also a binding for Vulkan, which I don't think has been used vary 
much, and so may still pose surprises.

https://docs.racket-lang.org/vulkan/index.html

I don't know how well any of this works on a Mac, which I gather is going 
its own way for graphics, perhaps in the cause of incompatibility.

-- hendrik

> 
> [1] https://docs.racket-lang.org/pict3d/index.html
> [2] https://docs.racket-lang.org/pict3d-die-cut/index.html
> [3] https://docs.racket-lang.org/opengl/index.html
> [4] 
> https://docs.racket-lang.org/sgl/index.html?q=opengl#%28idx._%28gentag._0._%28lib._sgl%2Fscribblings%2Fsgl..scrbl%29%29%29
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/67072c79-aac7-40a1-8774-2d684c7476d1n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20210408195922.zdq5ruhr4ufvqgc4%40topoi.pooq.com.


[racket-users] Re: Polished 3D package for some simulations

2021-04-08 Thread kamist...@gmail.com
Have you tried out Pict3D [1]?
There is also a library from Matthew Flatt that can create 3D Text / 
extruded pathes: [2]

Personally I currently use opengl [3], these bindings support higher opengl 
versions than the [4]
(which only support opengl 1.5 according to its documentation)

I can't say exactly up to which opengl version [3] has working bindings, 
these bindings were automatically generated, but that stopped working at 
some point.
(Apparantly the input that was used for the generation isn't provided for 
recent opengl versions anymore, so the generator has to be fixed or 
replaced to work with a different input/description)

[1] https://docs.racket-lang.org/pict3d/index.html
[2] https://docs.racket-lang.org/pict3d-die-cut/index.html
[3] https://docs.racket-lang.org/opengl/index.html
[4] 
https://docs.racket-lang.org/sgl/index.html?q=opengl#%28idx._%28gentag._0._%28lib._sgl%2Fscribblings%2Fsgl..scrbl%29%29%29

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/67072c79-aac7-40a1-8774-2d684c7476d1n%40googlegroups.com.