|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
3 vertex color interpolationIs there any way in agg given a triangle with an rgba at each vertex,
to render the triangle with the colors smoothly interpolated, as in the open gl rendered triangle on the right http://cboard.cprogramming.com/attachments/game-programming/7795d1202549906-color-interpolation-interpolate-png JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
|
|
Re: 3 vertex color interpolationJohn Hunter schrieb:
> Is there any way in agg given a triangle with an rgba at each vertex, > to render the triangle with the colors smoothly interpolated, as in > the open gl rendered triangle on the right > > http://cboard.cprogramming.com/attachments/game-programming/7795d1202549906-color-interpolation-interpolate-png IIRC, it is demonstrated in the gouraud demo. Best regards, -Stephan ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
|
|
Re: 3 vertex color interpolationOn Fri, Aug 7, 2009 at 7:18 AM, Stephan Aßmus<superstippi@...> wrote:
> IIRC, it is demonstrated in the gouraud demo. > Thanks Stephan, This looks good. I was able to compile and run the example on linux, but on my OSX box w/ gcc 4.0.1, I get a internal compiler error home:~/tmp/agg-2.5/examples/X11> make gouraud < ../gouraud.cpp > g++ -c -O3 -I/usr/X11R6/include -L/usr/X11R6/lib -I../../include -L../../src ../gouraud.cpp -o ../gouraud.o ../../include/agg_renderer_scanline.h: In function ‘void agg::render_scanlines_aa_solid(Rasterizer&, Scanline&, BaseRenderer&, const ColorT&) [with Rasterizer = agg::rasterizer_scanline_aa<agg::rasterizer_sl_clip<agg::ras_conv_int> >, Scanline = agg::scanline_u8, BaseRenderer = agg::renderer_base<pixfmt>, ColorT = agg::rgba]’: ../../include/agg_renderer_scanline.h:108: error: insn does not satisfy its constraints: (insn 1069 162 164 4 (set (mem:QI (plus:SI (reg/f:SI 6 bp) (const_int -104 [0xffffffffffffff98])) [0 ren_color$a+0 S1 A8]) (reg:QI 4 si)) 56 {*movqi_1} (nil) (nil)) ../../include/agg_renderer_scanline.h:108: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. make: *** [../gouraud.o] Error 1 home:~/tmp/agg-2.5/examples/X11> ./gouraud -bash: ./gouraud: No such file or directory home:~/tmp/agg-2.5/examples/X11> gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. home:~/tmp/agg-2.5/examples/X11> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
|
|
Re: 3 vertex color interpolationHi,
On 2009-08-07 at 14:53:29 [+0200], John Hunter <jdh2358@...> wrote: > On Fri, Aug 7, 2009 at 7:18 AM, Stephan Aßmus<superstippi@...> wrote: > > IIRC, it is demonstrated in the gouraud demo. > > > This looks good. I was able to compile and run the example on linux, but > on my OSX box w/ gcc 4.0.1, I get a internal compiler error > > home:~/tmp/agg-2.5/examples/X11> make gouraud > < ../gouraud.cpp > > g++ -c -O3 -I/usr/X11R6/include -L/usr/X11R6/lib -I../../include > -L../../src ../gouraud.cpp -o ../gouraud.o > ../../include/agg_renderer_scanline.h: In function ‘void > agg::render_scanlines_aa_solid(Rasterizer&, Scanline&, BaseRenderer&, > const ColorT&) [with Rasterizer = > agg::rasterizer_scanline_aa<agg::rasterizer_sl_clip<agg::ras_conv_int> > >, Scanline = agg::scanline_u8, BaseRenderer = > agg::renderer_base<pixfmt>, ColorT = agg::rgba]’: > ../../include/agg_renderer_scanline.h:108: error: insn does not satisfy > its constraints: > (insn 1069 162 164 4 (set (mem:QI (plus:SI (reg/f:SI 6 bp) > (const_int -104 [0xffffffffffffff98])) [0 ren_color$a+0 > S1 A8]) > (reg:QI 4 si)) 56 {*movqi_1} (nil) > (nil)) > ../../include/agg_renderer_scanline.h:108: internal compiler error: in > reload_cse_simplify_operands, at postreload.c:391 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://developer.apple.com/bugreporter> for instructions. make: > *** [../gouraud.o] Error 1 > home:~/tmp/agg-2.5/examples/X11> ./gouraud > -bash: ./gouraud: No such file or directory > home:~/tmp/agg-2.5/examples/X11> gcc --version > i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484) > Copyright (C) 2005 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. Well, I don't know what to suggest, other than to try and follow the advice above (Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions.). 4.0.1 would be a very early GCC 4 release, so most likely it's indeed the fault of the compiler. One could argue that if there were something wrong with the code, the compiler should respond with something else than an internal compiler error. Can you try a newer GCC on your MacOS X installation? Best regards, -Stephan ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Vector-agg-general mailing list Vector-agg-general@... https://lists.sourceforge.net/lists/listinfo/vector-agg-general |
| Free embeddable forum powered by Nabble | Forum Help |