HomeHome  SearchSearch  RegisterRegister  Log inLog in  


 Questions and help

Go down 

Messages : 2
Date d'inscription : 2010-10-22

Questions and help Empty
PostSubject: Questions and help   Questions and help Icon_minitimeFri Oct 22, 2010 10:10 am

Hi I am trying to get spark to work with sfml2.

I tried to use sfml rendering module and got a lot of compiler errors, I thought fair enough ok I will use opengl module.

It compiles fine but nothing is rendered.

I do use shaders in my application and have a system like

draw things

Where would the spark render call go? I am confused because I dont use the standard opengl matrix system anymore and spark seems to use it.
I tried putting the render call after endshader and before display but it didnt render anything either.

Also I seem to now have a GL stack overflow error
Back to top Go down

Messages : 539
Date d'inscription : 2009-07-14
Age : 37

Questions and help Empty
PostSubject: Re: Questions and help   Questions and help Icon_minitimeSun Oct 24, 2010 5:19 am


there s no rendering module for SFML 2 at the moment. The modul for SFML 1.6 is not compatible. Using the OpenGL rendering module seems the best solution.

You dont necessarily need to use the opengl matrix system, you can use the matrix system from spark (see Transformable). However you will need your projection matrix set anyway (or use a shader).

I know 4ian uses the openGL module of SPARK with SFML 2 and it seems to work. What you also need to do is surrounding your SPARK draw calls with GLRenderer::SaveGLStates and GLRenderer::RestoreGLStates.
Back to top Go down
Questions and help
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Evolution (en)-
Jump to: