Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 19 Jun 2009
Offline Last Active Oct 30 2015 07:00 PM

Topics I've Started

GLSL frag shader position not set

18 September 2015 - 06:54 PM

I created a shader in shader maker it works great when I go to add it into my program it wasnt working and I believe to have narrowed it down to the position is not being set I use this to set my position

vec4 position = gl_TexCoord[0];

and I just copied shader makers vertex

// simple vertex shader

void main()
	gl_Position    = gl_ModelViewProjectionMatrix * gl_Vertex;
	gl_FrontColor  = gl_Color;
	gl_TexCoord[0] = gl_MultiTexCoord0;

I can manually set the gl_FragColor and that works just fine the rectangles color will change

I dont know if there is something that I have to enable or initialize for gl_Texcoord does someone know what I am missing or doing wrong?

I am using c on linux glx window gl 3.3 Thanks

GLSL simple shader help

04 January 2015 - 09:49 PM

Can someone help me make lines pointing out from the center like this shader as a fragment shader


I would like to make them spin but getting them would be a great step


I am trying to think of a way to do this but I have just started and need some help I would think I can get the angle from the center for each fragment if its a certain angle make it a color how can I determine the angle from the center?

Live filesystem changes

12 November 2014 - 04:11 PM

There are 2 of us mainly that will be working a hour or so a night on a game were creating and we would like to work together on a shared filesystem at the same time and get the updates of each other as they happen.


I know this can lead to issues like breaking each others work or even overwriting each other but if we stay on our own portions we can work on two separate things and see results of both immediately also backups will be made quite often just in case


The current thought is to mount sourceforges sftp in both locations and do all the editing on there but im curious if it will push out changes or when refreshes will happen and if it has a cache as some things wont change often if ever and are big (note most of our changes will be graphics and scripting small stuff)


Anyone else have a solution or ideas about a good way to go?

OpenGL ES on desktops

05 August 2014 - 07:14 PM

Is there a way to use opengl es 2 on desktops natively? I have tried searching google and found alot to do with the android emulator but not much about gles2 on windows I found mesagles that maybe a solution for linux. I would think theres got to be something how do browsers use webgl?

Prevent Paging

20 July 2014 - 10:44 PM

On my server side I plan on loading as much resources into ram that will fit of course with an order of priority filling all the available ram. I want certain resources to be available as fast as possible trying to get <= 1ms round trip over gigabit lan. Im working on some hard numbers but the server im using has an hdd not a ssd so resources will be delayed by 7-15ms im working on storing everything in ram now and paging is something that comes to mind that will get in the way.


Does paging affect your server resources?

Is there a way to prevent paging?


I had a thought of reading the variables every so often tricking the computer they are in use not sure if that will work or might even be optimized out if its not something complicated so is this route feasible?


Is there a generic way rather than os specific I know different oses are going to handle thing differently but is there something that works most of the time at least?


If I have to go os specific I found MAP_LOCKED for linux probably mac but I havent found a way to do this in windows which is going to be the main target unfortunately :)


Also getting picky I dont want to prevent paging on the whole process just certain variables