HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Questions and help

View previous topic View next topic Go down 
AuthorMessage
tunacat



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

PostSubject: Questions and help   Fri 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
View user profile
Juff
Developer


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

PostSubject: Re: Questions and help   Sun 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
View user profile http://spark.developpez.com
 
Questions and help
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Answer these questions with song titles
» EEG Questions
» Few questions about switching to Selenium
» 40 questions everyone is afraid to ask themselves
» Selenium Interview Questions

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