Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Questions and help

Go down 
2 posters
AuthorMessage
tunacat




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

beginshader
draw things
endshader
display

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
Juff
Developer



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

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

Hi,

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
http://spark.developpez.com
 
Questions and help
Back to top 
Page 1 of 1
 Similar topics
-
» License questions
» Questions about SPARK (2)
» Questions about rotation and 3D rendering
» version 2 sujet à questions en vrac XD
» [SPARK2] Questions about Graph Entries and SPKObject::copy

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