Jump to content
  • Advertisement

EvilNando

Member
  • Content Count

    538
  • Joined

  • Last visited

Community Reputation

96 Neutral

About EvilNando

  • Rank
    Advanced Member
  1. mario IS tile based he is asking for collisions with BOTH tiles and sprite OBJECTS is it actually that hard to grasp the meaning of the op's initial question?
  2. EvilNando

    Big problem sorting sprites

    dont worry Ive solved my problem now thanks for trying to help tho also thanks to everyone love gamedev as always
  3. EvilNando

    Big problem sorting sprites

    I guess what Ill be doing is sort all my draw calls FIRST then start a new batch every time the next quad in the queue uses a different texture than the currently active?
  4. EvilNando

    Big problem sorting sprites

    Because the amount of needed textures can vary (the minimum being 3)
  5. So Ive made a little 2D engine using OpenGL. It uses VBO and VBA for storing batches of quads before sending those to the GPU my current problem is that my game requires at minimum 3 different textures to be able to render a whole scene ( this cannot be changes so please dont suggest to only use one texture instead ) Ive manages to overcome this problem by using 3dtextures the problem is that the extension that allows me to do this is only available on DX11 hardware which is unacceptable for our intended target platforms So what Im looking for is a way to be able to switch textures withing a single glDrawElements call ( Which Im thinking is impossible ) Thanks
  6. EvilNando

    Why is destructor getting called

    Oh ok but even if I do it like this my_class_instance(constructor_params); the destructor gets called why?
  7. I have a custom class lets call it MyClass so in my program I have this class Game.h { MyClass my_class_instance; void Init(); void Run(); } class Game.cpp { void Game::Init() { my_class_instance = MyClass(constructor_params); // destructor getting called here } void Game::Run() { my_class_instance.DoSomething(); // instance still valid here } }
  8. EvilNando

    Where to start?

    Hi Im looking for some tutorials on how to get started into multiplayer programming most of the books Ive seen are way too old and windows only so Im not conviced I should buy one of those books
  9. EvilNando

    Collision detection?

    well pretty much what I was thinking.. I guess theres no other way
  10. Im planning to build an isometric game, but given the requirements I see no need to implement a tile grid for rendering the world, instead I was thinking of just displaying one sprite for the land and multiple sprites for the level props (houses, trees...) The problem is I have no idea of a good way to handle collisions in this kind of situation. My initial thought is to just assign rotated rectangles that somehow match the area where the collision should be Im open to better alterantives
  11. EvilNando

    vs2010 post build events

    c++ but the ide is on C# settings (shortcuts and all that stuff)
  12. EvilNando

    vs2010 post build events

    Did you change "Run the Post Build Event..." to "Always"? [/quote] no I cant find that in the options...
  13. I currently have some copy commands on my post build events, everything works find whenever Im making changes to the code but when I have no changes on the code the post build event is not getting executed is there a way to circunvent this?
  14. EvilNando

    sine wave shader

    I love you
  15. EvilNando

    sine wave shader

    I finally made it happen... my only problem is that the waves are very slow. I am not sure if this is because Im using rendermonkey or maybe its my code anyways heres the code uniform float fTime0_X; uniform sampler2D Texture0; varying vec2 texCoord; void main(void) { vec2 aux = texCoord; aux.x = aux.x + (sin(aux.y*fTime0_X*.5)*0.05); gl_FragColor = texture2D( Texture0, aux ); }
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!