• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About moo_gamer

  • Rank
  1. Hi! All, I'm looking for in memory gzip decompressor. Something like this... string compressedGZipString = "sdffasdfasdfkadjkf"; string decompressorGZip(string data) { ....... return decompressed data; } I want to pass compressedGZipString as parameter and want to get uncompressed string. Please help. Thanks in adavance.
  2. Hi! All, I'm using Opengl ES. I want to draw rectangle with transperancy option from 0 to 1.0 or 0 to 255. But its not working. void draw() { glEnable(GL_BLEND); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_TEXTURE_2D); glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_COLOR_ARRAY); GLint number = 4; GLfloat* vertices; vertices = new GLfloat[number * 2]; vertices[0] = x; vertices[1] = y; vertices[2] = x + width; vertices[3] = y; vertices[4] = x; vertices[5] = y + height; vertices[6] = x + width; vertices[7] = y + height; GLfloat* colors; colors = new GLfloat[number * 4]; for(int i = 0; i < number * 4; i++) { colors[i] = red; colors[++i] = green; colors[++i] = blue; colors[++i] = alpha; } glVertexPointer(2, GL_FLOAT, 0, vertices); glEnableClientState(GL_VERTEX_ARRAY); glColorPointer(4, GL_FLOAT, 0, colors); glEnableClientState(GL_COLOR_ARRAY); glDrawArrays(GL_TRIANGLE_STRIP, 0, number); glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_VERTEX_ARRAY); glDisable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_BLEND); delete[] vertices; vertices = NULL; delete[] colors; colors = NULL; } Why its not working? Thanks in advance.
  3. Hi! All, I'm working on a engine based on collada file format. The restriction I have is collada dom. I am working on mobile devices. I would use OpenGL ES and Collada file format. Now, I need a open source xml parser. What would be best for me? :)
  4. Bitmap fonts

    Hi! All, Can you give me link of software? I want to create Bitmap fonts with effects (using photoshop). But I need to software to place them like strip or something like this. Thanks in advance
  5. OpenGL Cliping in OpenGL

    Hi! Thanks, But my image is very big. It would be good if I can specify using pixel instead of 0 to 1. Is there a way I can set uv coordinates using real pixel number? Like 4 to 10 or something like this. Thanks in advance. Quote:Original post by KulSeran Draw a quad, but set the UV texture coordiantes on your quad so they only draw that part of the image. (0,0)---- ----(1,1) will draw the whole thing, but (.25,.25)---- ----(.75,.75) would draw only the middle of the image.
  6. Rotating Screen

    Hi! :D, I want to rotate my screen, but I want to keep my previous coordinate system. Suppose, you rotate your monitor 90 degree. Now your coordinate would rotate as well, but I don't want to do it.Thanks.
  7. Hi! All, I want to draw a portion of the image. In java I have used graphics cliping. What I should do in OpenGL? Can you show me little bit codes? Thanks.
  8. 3DS To Blend

    Hi! Is there any exporter which can export 3ds files to .blend files? Thanks in advance.
  9. Hi! All, Suppose, in my game somewhere I have set values in glOrtho(..,). Now I want to get the values I have set previously. Please I don't want to keep values in some variables to get them later. Help Thanks in advance.
  10. Minimum Translation Distance Issues

    Oh! It's you Oliii :), U r scaring me. :(. As you said it shouldn't be happen. What if r = dist, in this case the mtd will be 0 as well. Thanks.
  11. Hi! :), I'm using something like this... Please read 2nd reply there by oliii. In there, in colliding... mtd = delta * (r - dist) / dist; will become 0 somewhere and I if use it further to normalize it for resolveCollision method, I got error. Shouldn't be I stop responding if mtd become zero? Please help.
  12. Is it work?

    Hi! All, I'm implementing this... Can someone explain, whats going on here... Vector vn = v.dotProduct(n); // impact speed if(vn > 0.0f) return false; // ball already moving away from each other. stop response. If vn is a vector then how come (vn > 0.0f) e.g. a single value. And have anyone tried this and is response method works? Thanks in advance.
  13. Hi! :'(, I'm implementing a 2d game. Where two or more ball falling down because of the gravity and they bouncy as well. If the ground floor become full of balls, then next balls will bouncy on other balls below it and then become still as natuarlly. It like you are watching a transparent box from one side and where many footballs are falling from above. I hope you have understood my problem. How I would implement it? I'm specially facing the problem, after collision of two balls. What would be there velocity after impact? I would be happy, if I got a complete guide. Please help.
  14. Hi! All, I'm developing games for iPhone. It has grandpa opengl es :) (old one). Ok! I'm only glOrthof and no other related methods. I need absolute coordinate system for drawing. Right now, I"m using glVertexPointer to draw and it uses value like 0.7f blah blah. but I need absolute values. Help please.
  15. Torque for iPhone

    Hi! Guys, My company interested to start iphone game development. My boss told me to r&d for it and also told me to find a good engine. What do you think about Torque for iPhone? Is it good for iPhone game development. Torque didn't mention whether there is any physics engine features in Torque for iPhone. Do you know anything about this? Thanks in advance.