DevilWithin
Messages : 16 Date d'inscription : 2011-01-30
| Subject: [SPARK2] Problem with QuadRenderer in a Ortho Tue Mar 06, 2012 8:55 pm | |
| Hello, i've been doing some testing with SPARK 2 and i found something that might be with a bug or something! - Code:
-
SPK::Ref<SPK::GL::GLQuadRenderer> rnquad2 = SPK::GL::GLQuadRenderer::create(); rnquad2->setBlendMode(SPK::BLEND_MODE_ADD); rnquad2->enableRenderingOption(SPK::RENDERING_OPTION_DEPTH_WRITE,false); rnquad2->setTexture(tt2->myTextureID); rnquad2->setTexturingMode(SPK::TEXTURE_MODE_2D); rnquad2->setAtlasDimensions(2,2); myGroup->setRenderer(rnquad2); I have a very alive group, which draws fine with point, line renderers etc, even in POINT SPRITE mode. But when i try to achieve something similar to what the point sprites do, but with QuadRenderer, i don't manage to see anything! In the snippet above, i am using explosion.bmp, provided by SPARK 2, in the demos. I am using SFML 2, therefore making 2D graphics, in a orthogonal projection. Is it a camera issue, or should it be about the configuration of the renderer? I have tried more stuff than whats here, no success at all. Thanks | |
|
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 42
| Subject: Re: [SPARK2] Problem with QuadRenderer in a Ortho Wed Mar 07, 2012 4:11 pm | |
| Hi,
Running the Opengl examples works fine for you ? Does Test_simple.exe renders fine ?
Could be a problem with the view matrix. How do you set it ? Using SFML 2 I guess ? Could also be a problem with the size of the particles. Have you set the radius of the particles in the group ? Have you set the scale of the QuadRenderer ?
[EDIT] Try setting the graphical radius of your group. I ve just noticed it is initialized to 0. I will modified that to initialize it to 1 | |
|
DevilWithin
Messages : 16 Date d'inscription : 2011-01-30
| Subject: Re: [SPARK2] Problem with QuadRenderer in a Ortho Wed Mar 07, 2012 6:18 pm | |
| - Juff wrote:
- Hi,
Running the Opengl examples works fine for you ? Does Test_simple.exe renders fine ?
Could be a problem with the view matrix. How do you set it ? Using SFML 2 I guess ? Could also be a problem with the size of the particles. Have you set the radius of the particles in the group ? Have you set the scale of the QuadRenderer ?
[EDIT] Try setting the graphical radius of your group. I ve just noticed it is initialized to 0. I will modified that to initialize it to 1 Yes, all samples run fine i guess, Its a default SFML camera, its a normal ortho as far as i know I pretty much copied the sample's group, and renderer too, as i pasted above.. Also tried your hint, no luck! All other renderers work normally. By the way, how can i put subtractive blend modes and stuff? I only see Alpha, None and Add | |
|
DevilWithin
Messages : 16 Date d'inscription : 2011-01-30
| Subject: Re: [SPARK2] Problem with QuadRenderer in a Ortho Sun Mar 18, 2012 5:11 pm | |
| No ideas? I 'd enjoy the Quad Renderer working : / | |
|
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 42
| Subject: Re: [SPARK2] Problem with QuadRenderer in a Ortho Mon Mar 19, 2012 11:23 am | |
| Hi, i ll try to plug spark with SFML 2 this week and get back to you soon | |
|
Sponsored content
| Subject: Re: [SPARK2] Problem with QuadRenderer in a Ortho | |
| |
|