Thread overview | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 02, 2006 Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
I know that there's been some discussion in the past about image format libraries. A quick google reveals this http://www.digitalmars.com/d/archives/digitalmars/D/23447.html which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. So, is there an image library with a decent D interface out there at the moment? Also, I've noticed that one or two people have had a go at writing a raytracing engine in D http://www.digitalmars.com/d/archives/digitalmars/D/4286.html but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice? Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit. |
May 02, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote: > I know that there's been some discussion in the past about image format libraries. A quick google reveals this > > http://www.digitalmars.com/d/archives/digitalmars/D/23447.html > > which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. > > So, is there an image library with a decent D interface out there at the moment? > > Also, I've noticed that one or two people have had a go at writing a raytracing engine in D > > http://www.digitalmars.com/d/archives/digitalmars/D/4286.html > > but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. > > But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice? > > Stewart. > Derelict should have D bindings. -- Lars Ivar Igesund blog at http://larsivi.net DSource & #D: larsivi |
May 02, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote: > I know that there's been some discussion in the past about image format libraries. A quick google reveals this > > http://www.digitalmars.com/d/archives/digitalmars/D/23447.html > > which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. > > So, is there an image library with a decent D interface out there at the moment? > > Also, I've noticed that one or two people have had a go at writing a raytracing engine in D > > http://www.digitalmars.com/d/archives/digitalmars/D/4286.html > > but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. > > But any graphics rendering engine could do with a hook-up to an image > format library. (Probably as one of a few options for how the image > will be output, with other possibilities including Windows GDI bitmaps > and raw data in memory.) But what library, if any, would be a good choice? > > Stewart. > This may or may not be what you're looking for... http://www.dsource.org/projects/sol BA |
May 02, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote: > I know that there's been some discussion in the past about image format libraries. A quick google reveals this > > http://www.digitalmars.com/d/archives/digitalmars/D/23447.html > > which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. > > So, is there an image library with a decent D interface out there at the moment? > > Also, I've noticed that one or two people have had a go at writing a raytracing engine in D > > http://www.digitalmars.com/d/archives/digitalmars/D/4286.html > > but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. > > But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice? > > Stewart. > Terra has bindings to DevIL. I think Trevor put them in the Fusion tree. -- Kyle Furlong // Physics Undergrad, UCSB "D is going wherever the D community wants it to go." - Walter Bright |
May 02, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kyle Furlong | Kyle Furlong wrote: > Stewart Gordon wrote: >> I know that there's been some discussion in the past about image format libraries. A quick google reveals this >> >> http://www.digitalmars.com/d/archives/digitalmars/D/23447.html >> >> which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. >> >> So, is there an image library with a decent D interface out there at the moment? >> >> Also, I've noticed that one or two people have had a go at writing a raytracing engine in D >> >> http://www.digitalmars.com/d/archives/digitalmars/D/4286.html >> >> but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. >> >> But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice? >> >> Stewart. >> > > Terra has bindings to DevIL. I think Trevor put them in the Fusion tree. > Actually let me take that back... Terra USED to have bindings to DevIL. Looks like Trevor implemented his own PNG loader. -- Kyle Furlong // Physics Undergrad, UCSB "D is going wherever the D community wants it to go." - Walter Bright |
May 02, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote:
> I know that there's been some discussion in the past about image format libraries. A quick google reveals this
>
> http://www.digitalmars.com/d/archives/digitalmars/D/23447.html
>
> which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared.
>
> So, is there an image library with a decent D interface out there at the moment?
>
> Also, I've noticed that one or two people have had a go at writing a raytracing engine in D
>
> http://www.digitalmars.com/d/archives/digitalmars/D/4286.html
>
> but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray.
>
> But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice?
>
> Stewart.
>
Derelict has bindings to both DevIL and SDLimage.
|
May 03, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | Mike Parker wrote: > Stewart Gordon wrote: >> I know that there's been some discussion in the past about image format libraries. A quick google reveals this >> >> http://www.digitalmars.com/d/archives/digitalmars/D/23447.html >> >> which points me to DevIL (fka OpenIL), its D bindings, and Andrew Fedoniouk's effort, but they've since disappeared. >> >> So, is there an image library with a decent D interface out there at the moment? >> >> Also, I've noticed that one or two people have had a go at writing a raytracing engine in D >> >> http://www.digitalmars.com/d/archives/digitalmars/D/4286.html >> >> but again, the code's disappeared AFAICS. I've started playing with the idea of writing one myself. My effort goes by the name D3 (basically a play on D and 3D) at the moment. I'm writing it as a library, but haven't decided if it'll eventually grow into a code interpreter like Rayshade or POV-Ray. >> >> But any graphics rendering engine could do with a hook-up to an image format library. (Probably as one of a few options for how the image will be output, with other possibilities including Windows GDI bitmaps and raw data in memory.) But what library, if any, would be a good choice? >> >> Stewart. >> > > Derelict has bindings to both DevIL and SDLimage. Complementary link: http://derelict.dsource.org/ :) |
May 03, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | Brad Anderson wrote: <snip> > This may or may not be what you're looking for... > > http://www.dsource.org/projects/sol Seems a good effort. A few initial observations (trying it on Mac OS X): 1. So it requires the vertex normals of a flat triangle to be explicitly given? Seems a bit cumbersome.... 2. The distribution contains .obj files that obviously aren't compiler object files, which is what almost every MS-DOS or Windows programmer is used to the extension meaning. 3. It requires OpenGL. OTOH, I'm going for something more self-contained. 4. It seems to run only in a GUI. No obvious way to just generate an image file straight from the command line. 5. Why is the window's close button disabled? 6. Documentation is rather lacking. OK, so it's not hard to get to know the sol file format by looking at the examples. But the obj files will take a bit more studying to make sense of. And I had to try saving an image just to find out what format it saves in.... Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit. |
May 03, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | "Stewart Gordon" <smjg_1998@yahoo.com> wrote in message news:e3a2ue$1v58$1@digitaldaemon.com... > 2. The distribution contains .obj files that obviously aren't compiler object files, which is what almost every MS-DOS or Windows programmer is used to the extension meaning. And which almost every 3D artist knows is the Wavefront OBJ format, one of the most ubiquitous mesh interchange formats out there ;) > 3. It requires OpenGL. OTOH, I'm going for something more self-contained. As if OpenGL isn't supported on, well, everything? |
May 04, 2006 Re: Image format libraries, raytracers and stuff | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley wrote: > "Stewart Gordon" <smjg_1998@yahoo.com> wrote in message news:e3a2ue$1v58$1@digitaldaemon.com... >> 2. The distribution contains .obj files that obviously aren't compiler object files, which is what almost every MS-DOS or Windows programmer is used to the extension meaning. > > And which almost every 3D artist knows is the Wavefront OBJ format, one of the most ubiquitous mesh interchange formats out there ;) Just looked it up http://www.dcs.ed.ac.uk/home/mxr/gfx/3d/OBJ.spec Hmm.... And I see the other WaveFront format is .mod, which is what the Fortrash compilers I've used use for module information files. >> 3. It requires OpenGL. OTOH, I'm going for something more self-contained. > > As if OpenGL isn't supported on, well, everything? Good question. But how many OSs come with OpenGL installed as standard? If the purpose is to write your own renderer, then what part does OpenGL play anyway? It's got me pondering over where Sol's own code ends and OpenGL begins. Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit. |
Copyright © 1999-2021 by the D Language Foundation