Jump to content

  • Log In with Google      Sign In   
  • Create Account


henrykl

Member Since 17 Jun 2012
Offline Last Active Jul 10 2013 05:08 AM
-----

Topics I've Started

Simple Binary File I/O question

07 July 2013 - 03:55 AM

I am currently writing a Maya exporter. i already got it working in .xml format but im trying to port it over to a binary file.

When I try to create the binary file it always fails. Any Ideas on why this might be:

 

string path = writeOutMesh.m_strName + ".mesh";
std::ofstream BinOut;
BinOut.open(path.c_str(),std::ios_base::binary | std::ios_base::trunc);
 
if( !BinOut.is_open() )
return;
 
It always hits the return.
Any help will be much appreciated 
Thanks 

Need Help making a good particle engine

13 November 2012 - 10:30 AM

I have been trying to make a particle engine for a while now. i think i understand the base mechanics behind it but i can't seem to put it together.
my end goal would be to a particle engine based in drx9 that uses shaders. So if anyone could point me in the direction of a simple particle engine tutorial or on here i would greatly appreciate it.

another question if doing particle with shaders the only thing that would get update c++ side would be the position right???

creating Particle system. problem with the spread

17 June 2012 - 06:26 AM

Hello all,

i have been working on a particle system for a while now, but its just not coming together the way i need it too. i am at my wits end with it. the main prblem i have is that my spread doesnt spread at all, it lingers trailing behind the object its attached to.

heres how i start it

p->SetDirection ( Vector2D_Rotate(direction,DegreesToRadians(float(rand() % int(Spreadrate)))));
pos.fX =(float) m_vStartPosX;
pos.fY =(float) m_vStartPosY;
p->setPosition(pos);

and its update



m_vPosition.fX += Direction.fX * m_vVelocity.fX * dt;
m_vPosition.fY += Direction.fY * m_vVelocity.fY * dt;

any help would be much appreciated

PARTNERS