Jump to content
  • Advertisement

Matthewj234

Member
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

1069 Excellent

About Matthewj234

  • Rank
    Member
  1. I love the art style of this, nice one :D
  2. Matthewj234

    Implementing "break" in the Scripting Engine

    A really interesting read, it always amazes me some of the dev blogs that go up on here :)
  3. I have had some experience using OpenGL with C# and OpenTk, and I ported some of the code to draw a rotating cube to the screen. However, my depth buffer seems to be doing some really strange things.   It seems to remove the front face, and sometimes one of the side faces. Any help you could offer to setting up the depth buffer correctly would be greatly appreciated.     Below is my code: #include <iostream> #include <SFML/Graphics.hpp> #include <SFML\OpenGL.hpp> void cube(float x, float y, float z, float size) { float sizeX2 = size * 2; glBegin(GL_TRIANGLES); glColor3f(0, 1, 1); glVertex3f(x, y + size, z); glVertex3f(x, y + size, z + size); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y + size, z); glVertex3f(x, y + size, z); glColor3f(1, 0, 0); glVertex3f(x, y, z); glVertex3f(x, y + size, z + size); glVertex3f(x, y, z + size); glVertex3f(x, y + size, z); glVertex3f(x, y + size, z + size); glVertex3f(x, y, z); glColor3f(1, 1, 0); glVertex3f(x, y, z); glVertex3f(x, y, z + size); glVertex3f(x + size, y, z + size); glVertex3f(x + size, y, z + size); glVertex3f(x + size, y, z); glVertex3f(x, y, z); glColor3f(0, 1, 0); glVertex3f(x, y, z); glVertex3f(x, y + size, z); glVertex3f(x + size, y + size, z); glVertex3f(x + size, y + size, z); glVertex3f(x + size, y, z); glVertex3f(x, y, z); glColor3f(0, 0, 1); glVertex3f(x, y, z + size); glVertex3f(x, y + size, z + size); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y, z + size); glVertex3f(x, y, z + size); glColor3f(0.5f, 0.5f, 0.5f); glVertex3f(x + size, y, z); glVertex3f(x + size, y + size, z); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y + size, z + size); glVertex3f(x + size, y, z + size); glVertex3f(x + size, y, z); glEnd(); } int main() { sf::RenderWindow window(sf::VideoMode(400, 400), "SFML works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green); std::cout << "SFML Loading"; // Create a clock for measuring time elapsed sf::Clock Clock; //prepare OpenGL surface for HSR glClearDepth(10.0f); glClearColor(0.3f, 0.3f, 0.3f, 0.f); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LEQUAL); glDepthMask(GL_TRUE); glDisable(GL_CULL_FACE); //// Setup a perspective projection & Camera position glMatrixMode(GL_PROJECTION); glLoadIdentity(); bool rotate = true; float angle; while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } //Prepare for drawing // Clear color and depth buffer glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Apply some transformations for the cube glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0, 0, 0); if (rotate){ angle = Clock.getElapsedTime().asSeconds(); } glRotatef(angle * 50, 1.f, 0.f, 0.f); glRotatef(angle * 30, 0.f, 1.f, 0.f); glRotatef(angle * 90, 0.f, 0.f, 1.f); cube(0.0f, 0.0f, 0.0f, 0.5f); GLenum err = glGetError(); //window.clear(); //window.draw(shape); window.display(); } return 0; }
  4. Matthewj234

    First Look: Hunting Spears Unveiled!

    This looks quite interesting, as for the spears, 1H - Looks more like a club than a spear. If it was made a bit pointier it would fit a bit better I think. As for the colours and shapes, they look nice, really crisp. I also like how 1E->1G seem to be from a set, gives you something to collect!
  5. Matthewj234

    MMOs! Y u no EZ?

    This is a great read, a lot of the things you highlighted here apply to more than just MMO's aswell.
  6. Matthewj234

    WildStar CREDD System Explained

    This system also exists in Runescape, via the form of Bonds. While slightly different, bonds can be bought with real world cash, they can be sold in game for in game currency, or 14 days membership. This has led to large numbers of the FTP market from the game becoming Members through this system.
  7. Matthewj234

    Porting Accidental Noise Library to .NET

    I would be really interested in looking at the source for this in .Net, noise has always fascinated me.
  8. Matthewj234

    Rogue inventory and new build

    The inventory screen is nice, its concise and shows you all you need to know. :)
  9. Matthewj234

    Tiny Bombards

    Liking the progression here. I think the darker caves look a lot better than the open worlds with the small tiles that you had a few months ago. This seems much more engaging.
  10. Matthewj234

    Shy Start

    Personally, I like having random maps, especially when coming back to a game after a while. It makes it seem new again. As for the pre-designed buildings, that is probably a better idea for the story line, but I would definitely agree with randomly generated for the free play mode!
  11. Matthewj234

    Shy Start

    Are you planning on having randomly generated buildings/environments?
  12. Matthewj234

    New Zzazzy screenshot

    I like the graphics style of the screenshot.
  13. Looking good! I'm not aware of an RTS/3rd person shooter combo, so It will be interesting to see how this plays!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!