Jump to content

  • Log In with Google      Sign In   
  • Create Account


rakeshkr590

Member Since 03 May 2010
Offline Last Active Nov 23 2012 08:00 AM

Topics I've Started

drawing a 2D quad between 2 points in opentk ?

14 November 2012 - 08:31 AM

hi guys i am bit new to this opentk in mono and i am trying to port my game to this ios and android both using mono develop but i kind of stuck looking in to this opentk api stuff could you please tell me how to draw a 2dquad with width and height between two points please

need help in Setting up Projections for multiple monitor set-up using XNA !

06 July 2012 - 09:58 AM

Hi guys i am trying to build a virtual air marshalling simulator which needs multiple projections for a multiple monitor setup , i did all the graphics and game play but got struck with this Projection issues which is bothering me since past few days . so could you guys please help me out to sort this one ! you can find the link to this issue in a drop box link down here :-
https://www.dropbox....q1/Viewport.png

problem :- 3 screens but should imitate as a single camera which pans from left to right and i want to have a Projection exactly like it was in that image using xna 4.0 .
thank you.

Need help with setting up viewports for multiple monitors

06 July 2012 - 09:08 AM

Hi guys i am trying to build a virtual air marshalling simulator for multiple pc's i did all the graphics and game play too but got struck with this Projection issues which is bothering me since few days could you please help me out to sort this one , you can find the link to this issue in a drop box link down here :-
https://www.dropbox....q1/Viewport.png

problem :- 3 screens and i want to have a Projection exactly like it was in that image using xna 4.0 .
thank you.

stuck with a bug

09 May 2010 - 12:55 AM

hi guys i am stuck with a bug in my code,can some one please solve this :)
vector<Quad*> GenerateQuads(Vector3i minn,Vector3i maxx,int widthpercell)
{
	vector<Quad*> quads;
	vector<int> val;

	int width=(int)(maxx.x-minn.x);
	int length=(int)(maxx.x-minn.z);

	for (int i=(int)minn.x;i<(int)maxx.x;i+=widthpercell)
	{
		for(int j=(int)minn.z;j<(int)maxx.z;j+=widthpercell)
		{
			Vector3i min=Vector3i(i,(int)minn.y,j);
			Vector3i max=Vector3i(i+widthpercell,(int)minn.y,j+widthpercell);
			Quad* quad=new Quad;             /// crashing here
			quad->min=min;
			quad->max=max;
			quad->normal=Vector3f(0,1,0);
			quads.push_back(quad);
		}
	}

	return quads;
}


// my program is cashing here all the time, i guess its a memory leak and i am calling this one like this
ParticleQuadRegister::ParticleQuadRegister( Vector3i worldmin,Vector3i worldmax,int sidelength ) :worldmax(worldmax),worldmin(worldmin),sidelength(sidelength)
{
	quads=GenerateQuads(worldmin,worldmax,sidelength);/// here i am calling it
	vector<int> ints;
	int sized=quads.size();
	quadsized=sized;
	for (int i=0;i<sized;i++)
	{
		ParticleQuadStorage.insert(make_pair(i,ints));
	}
	width=(int)(worldmax.x-worldmin.x);
	width/=sidelength;
}

[Edited by - Zahlman on May 11, 2010 5:55:53 PM]

PARTNERS