Board index FlightGear Development Effects and shaders

Rembrandt on Mac OsX

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

Rembrandt on Mac OsX

Postby Ohty » Sun Feb 10, 2013 4:09 pm

Hi
It's impossible to run rembrandt (OsX, 10.6.8) due to a compiler error with the ssao.frag file :

FRAGMENT glCompileShader "/Applications/FlightGear.app/Contents/Resources/../Resources/data/Shaders/ssao.frag" FAILED
FRAGMENT Shader "/Applications/FlightGear.app/Contents/Resources/../Resources/data/Shaders/ssao.frag" infolog:
ERROR: 0:20: 'array of 2-component vector of float' : constructor not supported for type
ERROR: 0:20: 'array of 2-component vector of float' : no matching overloaded function found
ERROR: 0:20: 'const 2-component vector of float' : cannot declare arrays of this type
ERROR: 0:20: 'v' : redefinition
ERROR: 0:55: 'reflect' : no matching overloaded function found
ERROR: 0:55: '=' : cannot convert from 'float' to '2-component vector of float'

The OpenGL Shader Builder hilights the line :
const vec2 v[4] = vec2[](vec2(1.0,0.0),vec2(-1.0,0.0),vec2(0.0,1.0),vec2(0.0,-1.0));

Can someone correct this file ?

Thank you

My FG : 2.10.0
iMac, Os X 10.8
Ohty
 
Posts: 17
Joined: Sat Nov 17, 2012 12:21 pm
Location: Angers, France

Re: Rembrandt on Mac OsX

Postby Ohty » Wed Feb 13, 2013 11:10 am

The problem is disappeared because I have updated to OSX 10.8.2 (Mountain Lion)
iMac, Os X 10.8
Ohty
 
Posts: 17
Joined: Sat Nov 17, 2012 12:21 pm
Location: Angers, France


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 2 guests