Jump to content
OGXbox.com

Meerjel01

Members
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Meerjel01

  1. My thoughts was that I would tell people to wait with the pirating until it's no longer payable and hope people would respect it or try make it a law and call free copies of the game stealing. An older idea was to put up a high enough donation pool to release the game and still get payed for making it. I could release it for free but I don't know if I'll get rewarded enough for it.
  2. The game, In A Creation, is still in my head and will continue development even if my Xbox Series S games are of higher priority. Currently in question how to implement the A* system into the engine in an optimized way (Tho I still have an idea for how) and are about to add my first physics object into the game to check if it'll lag. I shouldn't use this topic anymore since it was a question if homebrew games can sell originally. But I'll reveal as little as possible anyway!
  3. From my character collider code. Take a newDirection vector variable and use this for your triangles. (AABB character vs world triangle collision) D3DXVECTOR3 TriangleCollision(CTri triangle, D3DXVECTOR3 dir, D3DXVECTOR3 lastPos, D3DXVECTOR3 currentPos) { D3DXVECTOR3 vNorm = GetNormal(triangle); colliding = false; triIsGround = false; triIsCeiling = false; triIsWall = false; if(CPyhsics::TriangleIntersectAABB(boundingBox, triangle)) { colliding = true; triIsGround = CPyhsics::GetGrounded(vNorm, D3DXVECTOR3(0, -1, 0), 0.5); triIsCeiling = CPyhsics::GetGrounded(vNorm, D3DXVECTOR3(0, 1, 0), 0.5); triIsWall = !triIsGround && !triIsCeiling; if(triIsGround) grounded = true; D3DXVECTOR3 tempV = NegateVector(vNorm); tempV *= D3DXVec3Length(&MultiplyVector(dir, vNorm)); D3DXVECTOR3 wallDir = dir - tempV; D3DXVECTOR3 closestPtn = CPyhsics::GetClosestPointOnTriangle(currentPos, triangle); if(currentPos.y > closestPtn.y) return dir; D3DXVECTOR3 newPos = lastPos + wallDir; D3DXVECTOR3 newDir = newPos - lastPos; return newDir; } return dir; } Call it without using + or - btw.
  4. Know triangle collision? No? Here then! static bool AABBTriangleSAT (D3DXVECTOR3 testAxis, Caabb box, D3DXVECTOR3 v0, D3DXVECTOR3 v1, D3DXVECTOR3 v2) { float p0, p1, p2; p0 = D3DXVec3Dot(&v0, &testAxis); p1 = D3DXVec3Dot(&v1, &testAxis); p2 = D3DXVec3Dot(&v2, &testAxis); float r = box.extents.x * abs(D3DXVec3Dot(&u0, &testAxis)) + box.extents.y * abs(D3DXVec3Dot(&u1, &testAxis)) + box.extents.z * abs(D3DXVec3Dot(&u2, &testAxis)); return max(-largest(p0, p1, p2), smallest(p0, p1, p2)) > r; } static bool TriangleIntersectAABB(Caabb box, CTri triangle) { D3DXVECTOR3 v0 = triangle.p0; D3DXVECTOR3 v1 = triangle.p1; D3DXVECTOR3 v2 = triangle.p2; v0 -= box.center; v1 -= box.center; v2 -= box.center; D3DXVECTOR3 f0 = v1 - v0; D3DXVECTOR3 f1 = v2 - v1; D3DXVECTOR3 f2 = v0 - v2; D3DXVECTOR3 ax_u0_f0, ax_u0_f1, ax_u0_f2; D3DXVECTOR3 ax_u1_f0, ax_u1_f1, ax_u1_f2; D3DXVECTOR3 ax_u2_f0, ax_u2_f1, ax_u2_f2; D3DXVec3Cross(&ax_u0_f0, &u0, &f0); D3DXVec3Cross(&ax_u0_f1, &u0, &f1); D3DXVec3Cross(&ax_u0_f2, &u0, &f2); D3DXVec3Cross(&ax_u1_f0, &u1, &f0); D3DXVec3Cross(&ax_u1_f1, &u1, &f1); D3DXVec3Cross(&ax_u1_f2, &u1, &f2); D3DXVec3Cross(&ax_u2_f0, &u2, &f0); D3DXVec3Cross(&ax_u2_f1, &u2, &f1); D3DXVec3Cross(&ax_u2_f2, &u2, &f2); if(AABBTriangleSAT(ax_u0_f0, box, v0, v1, v2) || AABBTriangleSAT(ax_u0_f1, box, v0, v1, v2) || AABBTriangleSAT(ax_u0_f2, box, v0, v1, v2) || AABBTriangleSAT(ax_u1_f0, box, v0, v1, v2) || AABBTriangleSAT(ax_u1_f1, box, v0, v1, v2) || AABBTriangleSAT(ax_u1_f2, box, v0, v1, v2) || AABBTriangleSAT(ax_u2_f0, box, v0, v1, v2) || AABBTriangleSAT(ax_u2_f1, box, v0, v1, v2) || AABBTriangleSAT(ax_u2_f2, box, v0, v1, v2)) { return false; } D3DXVECTOR3 triNormal = D3DXVECTOR3(0,0,0); D3DXVec3Cross(&triNormal, &f0, &f1); if(AABBTriangleSAT(u0, box, v0, v1, v2) || AABBTriangleSAT(u1, box, v0, v1, v2) || AABBTriangleSAT(u2, box, v0, v1, v2)) { return false; } if(AABBTriangleSAT(triNormal, box, v0, v1, v2)) return false; return true; } Collision response soon..
  5. Well I can't teach by words but I can give code I guess. static bool PointIntersectAABB(D3DXVECTOR3 point, Caabb box) { return (point.x > box.center.x - box.extents.x && point.x < box.center.x + box.extents.x && point.y > box.center.y - box.extents.y && point.y < box.center.y + box.extents.y && point.z > box.center.z - box.extents.z && point.z < box.center.z + box.extents.z); } static bool AABBIntersectAABB(Caabb box1, Caabb box2) { return (abs(box1.center.x - box2.center.x) < (box1.extents.x + box2.extents.x) && abs(box1.center.y - box2.center.y) < (box1.extents.y + box2.extents.y) && abs(box1.center.z - box2.center.z) < (box1.extents.z + box2.extents.z)); } These are from my Physics functions class.
  6. Thank you. Currently I want to implement A* pathfinding to the engine but aren't that lucky with knowing how. Also have you played the demo?
  7. To be honest I like it when the Xbox was weak enough for people to use their imagination for their work for it. Newer generations are losing their souls.
  8. A question for the next entry. 2D sprites in 3D or skinned 3D models? I can 2D in 3D well but Skinned models is needed to be taught about someday.
  9. Updated it with some lighting In A Creation.zip Just felt like completing this a bit.
  10. I'm not sure if I can help unless it's simple code. I'm also busy with my own projects so the chance is even smaller. Have you seen the website I've linked to in my XTL tutorial series?
  11. Here it is In A Creation.zip Not much to look at but it's a lot of progress since the start. It's 3rd person with no camera collision (Yet) and has simple physics. X to take a screenshot. Y to do a pose. Both triggers and black button to reset.
  12. I can try get a demo up today but I will also try not to show too much of my early progress to make people wait too long.
  13. I might be too proud of this. Maybe because I haven't gotten this far before?
  14. W.I.P preview of the game incoming! Here it is. https://drive.google.com/file/d/1HtBXQ2tnf3loRDc_599Kn3AFRS-IvP3b/view?usp=share_link
  15. It's okay for me even if I get little out of this cause I'm not planning on staying in the game industry my whole career. I want to be a cartoonist artist and make animations and comics. I only do games cause I feel like I need to finish my plans. Sorta getting it over with.
  16. Yes mah man! Though how should I make it so people doesn't share the files around? I feel like I need the earnings for my work and this community is a bit of a "Take and send" group.
  17. Can I make money out of making and selling original games for the console? The games will have original assets and settings to avoid copyright and will be sold with decent prices so I thought it was a good idea. But is it legal to do it? Meerjel01
  18. I don't know if the array method I posted will work anymore cause of recent discoveries. So let's say that you need to call all texture files for the map from a file by text and put them in an array of DirectX textures. I'm sorry if I disappointed anyone but hopefully it's understandable. Still, I've did some progress. I've figured how to make a sprite system. Haven't tested animation yet but will eventually do that now when I've gotten this engine running properly.
  19. Small reminder when taking info from a file and putting them in variables. Give the variables some content before doing ">>" on them
  20. How much do they cost? EDIT: Also it's from EU?
  21. EU I'm from Sweden too. EDIT: I've asked my big brother if he could find a hard-modded 360 for me so hold on.
  22. There's a Unity version for the Xbox 360 that I want to use but I need a hard modded console for it. That or a way to turn my unmodded 360 to a homebrew console. Can someone that sells a 360 reach out to me here? I don't know if I should ask here but I have no other place to go to right now. Meerjel01

Board Life Status


Board startup date: April 23, 2017 12:45:48
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.