Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Vlad86

Member Since 31 Aug 2011
Offline Last Active Nov 28 2013 03:40 AM

#4921316 Intersection of two 3D Polyhedrons

Posted by Vlad86 on 12 March 2012 - 07:00 AM

This should work:
-Create from all the edges of your polyhedron Rays (make sure that the rays are not infinite, but have the length of the tested edge),
-Intersect them with all triangles of polyhedron.

Ray to Triangle intersection: http://www.softsurfe...orithm_0105.htm

Perhaps not the best approach, but it should work.

Good luck


#4920401 Can anyone point the way for a beginner?

Posted by Vlad86 on 08 March 2012 - 06:41 AM

Unfortunately i have to agree with posts above, just wanted to share my passion :)


#4920313 C++ Void* Questions

Posted by Vlad86 on 07 March 2012 - 10:51 PM

void pointer simply means that an undefined type.
You can typecast it in whatever you like. (also all other types)

Example:
int* pixelArray = (int*)voidPtr;
Usually its a bad practice.. you must always think what your data is and what you do with it. But in some cases it can be unavoidable.

Pointer is an address.
So if you have a pointer of A, it means that the pointer contains the memory address where A is stored.


#4920307 Can anyone point the way for a beginner?

Posted by Vlad86 on 07 March 2012 - 10:37 PM

"multiplayer real-time strategy game" -> Sounds like allot of raw processing power. Meaning java simply wont cut it. I suggest c++ or C# at least.

c++ is a very powerful programming language. It will take some time to understand it properly and a very long time to master it (if possible).
I suggest to learn c++. Since its a base for game development in my opinion. if you can code C++, other languages will be fairly easy to grasp.

If you want to have a faster learning curve, try C# (XNA). But i still recommend C++ over it, but its partially because im a C++ junky.

Good luck


#4918837 Building my first game(Game code layout)

Posted by Vlad86 on 03 March 2012 - 06:28 AM

Nice article


#4917715 A Question About C++ Classes

Posted by Vlad86 on 29 February 2012 - 06:35 AM

Aha thats easy:

class Creature
{
public:
	 virtual void attack(creature &target)=0;
	 int health;
	 int damage;
	 string name;
	 void sethealth(int x) {health = x;}
};

class Enemy : public Creature
{
public:
	 void attack(creature &target){/*do stuff*/}
};
class Player: public Creature
{
public:
	 void attack(creature &target){/*do stuff*/}
};

Hope it helped


PARTNERS