Jump to content
  • Advertisement

mawigator

Member
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

485 Neutral

About mawigator

  • Rank
    Member

Personal Information

  1. I would simple count for leading zeros to compute the floating point value: atof(s) / powf(10.0, strspn(s, "0"))
  2. mawigator

    Spritesheet sizes

    The spritesheet size shall be less than available texture size on the target platform. You may check target GL/DirectX  specification for maximum allowed. Eg. in OpenGL 4.5 minimum supported value of MAX_TEXTURE_SIZE is 16384.
  3. mawigator

    Shading

    Maybe shadow casting (stencil or shadowmap), SSAO  and fog. Ambient occlusion images looks quite clear. I have attached an small render (raytraced, but gives a clue).  
  4. Quite nice so far. It has a potential. So what I noticed and disliked: Visuals lacks lightning model (objects don't look immersed - main character is too bright, environment shall cast shadows / make units darker/lighter, many objects do not have shadows at all, maybe add some sort of antialiasing; there are no lightning effects to the sourroundig during explosions). Collisions can make you stuck (even on the first room). I may shoot most of the enemies before they see me, this make game a little static. I would add more enemies, maybe less powerful but make game more dynamic. Add more SFXs to the game. Some in game actions ends abruptly, there is no inertia in game  - eg. enemy explodes, camera shakes, and then it stops at the end of the animation, add some inertia into it, soft the movement. Also explosions seems to not affect the player movement. The player is sliding on the ground during walk and there are noticeable slowdowns (however I play on wine on MacOSX, so it may be side effect of this). In the trailer there is a different version shown (hard shadows)?! And there are no sfxs in the trailer. I would add some background story to the trailer at least, make some plot to identify with.
  5. mawigator

    Problem Solving Using Vectors

      This may be not sufficient. The function acos() is defined for angles from range [0,pi]. You may need to check also asin(length(cross(normalize(a),normalize(b)))) - if it is negative then you need to add pi to angle from the first formula. Nonetheless, this is minor case - as mostly we don't want to have the bigger angle.
  6. mawigator

    Moving in the direction of rotation?

    It looks like toRadians() should be inside cos(), not outside. The same for sinus.
  7. mawigator

    Snow Physics?

    I would go with simple solution. You may integrate movement of the snow particles like in the case of any other object with Newton law. But you need to apply additional drag force D which will be proportional to velocity of the air v (in particle reference)       D ~ v,   or maybe to square of it       D ~ v^2   (that really depends on size and speed of the snow, it is related to Reynolds number, but in game I would go with visual correctness).   The air velocity field may be easily calculated with potential flow/free vortex flow using sources, sinks and vortices. You may even make a setup arrangements of flow fields, without reallly modeling them, like in this sample aplet:      http://docs.desktop.aero/appliedaero/potential/vstream.html This method has additional advantage that you may calculate velocity only in the interesting points (particle positions). Above, on the  desktopAreo you may find good resources on the subject. I would not go with Euler or Navier-Stokes equations for game purposes - computationally prohibitive.   Welcome to CFD - Computional (Colorful) Fluid Dynamics ;)
  8. mawigator

    Simple character movement in 3d environment

      Normalize vector of player direction, and make dot product of normalized direction and the velocity vector arising from outside force.
  9. mawigator

    The State of the Indie World

      It is always the case in the free market.
  10. mawigator

    What 3D modelling software (do you use)?

    Cheetah3D -- cheap, fast learning and quite good features - mesh editing, material composing, animation, IK, physics, rendering (raytrace, caustics, AO, radiosity,...), texture baking, scripting... Disadvantages are in scripting (no access to vertex weights) and few editing tools are strangely implemented. For now, it is everything I need.
  11. mawigator

    Edenscaper

    The update is available so both buttons (kick and punch which make different moves) should work on all devices. As mentioned previously, only one button worked and only in one orientation. This was an issue with screen resolution, which is different when returned in pixels or in dots. So, touch coordinates were wrongly transformed on the retina devices (960x480px but 480x320dots).   If anybody is interested in some tests (or just fun), a few pormocodes here: P3LAXWJYJ93J W49T6H6K63XW 4737LLK9NP6P WWLLHAEJEHT3 FM6F4APJYXA3   And game available on the AppStore here: https://itunes.apple.com/pl/app/edenscaper/id712909772?mt=8
  12. mawigator

    Edenscaper

    Thank you very much, I will follow this issue.
  13. mawigator

    Edenscaper

    Thank you for your report. Excuse me for any problems you encountered. I will try to improve.  I would like you to ask. Which iPad/iOS version do you have as I can not reproduce button issues, by myself?
  14. mawigator

    Edenscaper

    Good day,   after over year of active development, after tons of ideas that have been implemented, after dreamless nights full of programming, after creation of beautiful assets, after testing and reviews.... I am proud to announce that the game Edenscaper, is now in the App Store. Enjoy! Michal Butterweck
  15. I have never tried it, but it is interesting from mathematical point of view ;)   In 2D image you do not have the z position of the each point. But, if the model is perfect square, then all edges shall be the same length (say L).   Each point p'=(x',y') on screen is representation of some point p=(x,y,z) in 3D space, that:   x0'=x0/z0 y0'=y0/z0  x1'=x1/z1 y1'=y1/z1  x2'=x2/z2 y2'=y2/z2  x3'=x3/z3 y3'=y3/z3    and you know that borders have   (x0-x1)^2+(y0-y1)^2+(z0-z1)^2=L^2 (x1-x2)^2+(y1-y2)^2+(z1-z2)^2=L^2 (x2-x3)^2+(y2-y3)^2+(z2-z3)^2=L^2 (x0-x3)^2+(y0-y3)^2+(z0-z3)^2=L^2   and across the polygon   (x0-x2)^2+(y0-y2)^2+(z0-z2)^2=2*L^2 (x3-x1)^2+(y3-y1)^2+(z3-z1)^2=2*L^2   I assumed that points are sorted. So you have 14 equations for 13 unknown variables (x0, y0, z0, x1, y1, z1, x2, y2, z2, x3, y3, z3, L). It is more than you need. I would try to solve it with some approximate, iterative method (Newton or maybe least squares). From 3D model you may get the rotations, but,   you need to know which two points are the reference (e.g.. the square rotated by 90 deg around the center is looks as the same square ).
  • 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!