|
|
| OpenLayer 1.8 Released |
|
juvinious
Member #5,145
October 2004
|
Putting this up on CVS, since you have a SF page for it, would help others assist you in development and adding features. They can submit patches, which you can review and test and then append them to the current cvs. SF also provides a means for bug reporting which can assist you in problem tracking, monitoring, and prioritizing. __________________________________________ |
|
fuzinavl
Member #4,105
December 2003
|
There's lite and full OL versions ( source with and without libs ). Precompiled libs are so easy though. If I had to compile 6 support libraries, I wouldn't touch openlayer. Sin & Cos tables (8192 elements each) would speed up circle drawing, but the extra logic required might make the code less maintainable. calculating dA for ellipses: I'd calculate it from the longer side because a thin, 3 pixel wide ellipse would become very short (when it should be long) linelistGradient direction: Would the redundant function removal: arc prototype-proposal revision: Slice ( x, y, radius, color, start_angle, end_angle, accuracy ); SliceGradient( x, y, radius, innerCol, outerCol, start_angle, end_angle, accuracy ); Arc ( x, y, inner_rad, outer_rad, color, start_angle, end_angle, accuracy ); ArcGradient ( x, y, inner_rad, outer_rad, innerCol, outerCol, start_angle, end_angle, accuracy ); Maybe just let ArcGradient(); Cover them all __________________________ |
|
Carrus85
Member #2,633
August 2002
|
Precompiled libs are easy, UNLESS you happen to want to compile the library using a newer patched version of a library... On a serious note, it would probably be a bit more prudent to supply the precompiled version of the library seperately, and allow persons to download and compile the program and all of the libraries themselves if they so desire.
|
|
FMC
Member #4,431
March 2004
|
Great work I've read the thread and it seems this didn't come out: could you add a directory with examples(much like allegro)? [FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites] |
|
Fladimir da Gorf
Member #1,565
October 2001
|
Quote: I've read the thread and it seems this didn't come out: could you add a directory with examples(much like allegro)?
Actually I said I'm writing a series of simple demos, which are quite like the examples in Allegro Quote: redundant function removal: I don't think I'm going to remove those. Actually a lot of rendering functions would benefit from LineLists and CircleOutline does in fact use Disk. Quote: Or 2 versions of the function? That's probably the best way. Quote: calculating dA for ellipses: This calls for some testing. I could also use something like the average as well. Also, there's a minium dA set already such that very small primitives wouldn't look ugly. Quote: arc prototype-proposal revision:
Yeah, I like that one better. Though I'll change the argument names to upperCaseNotation. Quote: Sin & Cos tables (8192 elements each) would speed up circle drawing With today's hardware I'm not that sure. For some reason I've never been too fond of sin/cos lookup tables. Quote: Putting this up on CVS, since you have a SF page for it, would help others assist you in development and adding features. They can submit patches, which you can review and test and then append them to the current cvs. Sounds good, I already signed up to the system. Now I'll just have to find out the best way to add the files there. OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
FMC
Member #4,431
March 2004
|
Quote: Actually I said I'm writing a series of simple demos, which are quite like the examples in Allegro I've actually posted one of them in this thread. Err... i did say it SEEMS [FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites] |
|
fuzinavl
Member #4,105
December 2003
|
Quote: Or 2 versions of the linelistGradient function?
Now that I think about it, curved lasers are a very specific case. So... the more important LineListGradient version would receive an array of color data. Another candidate for templates? I know I'm getting fussy about minimizing the number of functions available. I just don't want to see openlayer get bloated and confusing. Just clean and simple like it is now. gfx.CircleOutline( 400.0, 300.0, 280.0, Rgba::BLUE, 35.0); __________________________ |
|
Tobi Vollebregt
Member #1,031
March 2001
|
Quote: Quote: It doesn't make sense to add lookup tables IMHO. If you really care about speed you put the circle in a display list and resize it using matrix scaling operations. You could even create an array of display lists for different levels of detail. ________________________________________ |
|
fuzinavl
Member #4,105
December 2003
|
ArcGradient
__________________________ |
|
Fladimir da Gorf
Member #1,565
October 2001
|
Heh, thanks for the code! Like I said it's no job to modify the existing functions to get the Arc functions OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Krzysztof Kluczek
Member #4,191
January 2004
|
Quote: glBegin( GL_QUADS );
You'd get better performance using GL_TRIANGLE_STRIP. ________ |
|
Fladimir da Gorf
Member #1,565
October 2001
|
I've heard that before but that sounds pretty strange - if using a triangle srip is faster then why doesn't OpenGL replace the quads with triangle strips? OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Krzysztof Kluczek
Member #4,191
January 2004
|
Quote: I've heard that before but that sounds pretty strange - if using a triangle srip is faster then why doesn't OpenGL replace the quads with triangle strips?
Actually, I meant rendering entire arc as single triangle strip (or quad strip). This way you have to specify only half of vertexes. I've heard about triangle strips being faster than quads, but I haven't checked this personally. ________ |
|
Fladimir da Gorf
Member #1,565
October 2001
|
Yeah of course. Why didn't I think of that... OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Mika Halttunen
Member #760
November 2000
|
Actually, I think that a triangle strip is faster than the corresponding quad. IIRC, the drivers apparently convert them automatically, but that's not happening on older cards I'd assume. Not that I have measured this personally either |
|
Bob
Free Market Evangelist
September 2000
|
Quote: You'd get better performance using GL_TRIANGLE_STRIP. How so? -- |
|
Krzysztof Kluczek
Member #4,191
January 2004
|
Quote: How so? He is drawing quad strip using GL_QUADS, so he is passing middle vertexes two times each. +--+ +--+ +--+ | | | | | | +--+ +--+ +--+ vs. +--+--+--+ | | | | +--+--+--+
If it's CPU or AGP-limited, it's going to be faster, isn't it? ________ |
|
Fladimir da Gorf
Member #1,565
October 2001
|
I'm almost finished with the next release. Now all it needs is some throughout testing (once again OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Bob
Free Market Evangelist
September 2000
|
Quote: He is drawing quad strip using GL_QUADS, so he is passing middle vertexes two times each. Sure, but then just use quad strips. No need to rework the code to work with triangle strips. -- |
|
Krzysztof Kluczek
Member #4,191
January 2004
|
Quote: Sure, but then just use quad strips. No need to rework the code to work with triangle strips.
Wouldn't triangle strip use exactly the same vertex order as quad strip? ________ |
|
Chris Katko
Member #1,881
January 2002
|
Quote:
Sin & Cos tables (8192 elements each) would speed up circle drawing, but the extra logic required might make the code less maintainable. I'm 99% sure that it'd be slower. Unless it's cached, a memory lookup would be bad in most occurances. Just for example, my DDR runs at 133/266mhz compared to 1600mhz on my CPU. -----sig: |
|
Bob
Free Market Evangelist
September 2000
|
Quote: Wouldn't triangle strip use exactly the same vertex order as quad strip? I guess it doensn't matter if you don't use line mode rendering, stipple or edge flags. -- |
|
fuzinavl
Member #4,105
December 2003
|
Question: SUBTRACTIVE_BLENDER does which one? ... Request: OL hardware rendering to other (video ?) bitmaps. __________________________ |
|
Fladimir da Gorf
Member #1,565
October 2001
|
Quote: Question: SUBTRACTIVE_BLENDER does which one? ...
The first one, after all the name is subtractive blender, not multiply blender Quote: Request: OL hardware rendering to other (video ?) bitmaps. Yeah, rendering to a texture is possible so I could implement rendering to an another Bitmap. Check this or this, for example. OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Bob
Free Market Evangelist
September 2000
|
Quote: The first one, after all the name is subtractive blender, not multiply blender
But which way does it go? dest - source != source - dest Quote: Check this or this, for example. Uggh. You really should just use EXT_framebuffer_object (supported all the way back from the TNT2 to the latest and greatest GeForce). It's simpler, faster and has less issues. -- |
|
|
|