Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 May 2000
Offline Last Active Yesterday, 07:46 PM

Posts I've Made

In Topic: Sunlight theory

17 October 2016 - 06:22 PM

but for all practical purposes, yes use a directional light on your planet from the sun and not a point light

In Topic: Sport management game - what's best for both menu and 2D design?

16 August 2016 - 07:10 AM

I would recommend the c# binding of SFML.  I have used it in conjunction with Winforms before.  You can just throw a control on your winform (I choose a Panel) to represent the area on your form you want to draw the graphics.  You then pass in the control.Handle in when creating a RenderWindow.


Then you will override the OnPaint and OnPaintBackground events/functions of your control.  In the OnPaint you will do all your SFML drawing.  In the OnPaintBackground dont do anything (prevent it from painting background of the actual control).  This will redraw when the control detects it needs to like something covering the window then uncovering it.  If you need to continually redraw then you can do something like override the Idle function/event of the Form and call the Invalidate of the control from there to force a redraw.  Or setup a Timer and call invalidate when the Timer fires.


 How to use SFML is documented on their website on how to go from there.  No real documentation on the embedded thing but on how to draw with SFML. http://www.sfml-dev.org/

In Topic: Highlighting objects in 2d game like in Baldur's Gate/Pillars of Eternity...

11 August 2016 - 03:26 PM

well Baldur's Gate is a pretty ancient game nowadays...1998...but oh how I loved it back in the day.  They *probably* did something along the lines of creating some kind of hitbox (or any general polygon really) and if the mouse was detected to be inside of it, draw it to the screen with whatever generic shape renderer they had access to.

In Topic: Xml Parser, C++

28 July 2016 - 12:41 PM

I second TinyXML.  I use it everytime.

In Topic: Population Spread Simulator...

27 July 2016 - 04:53 PM

And this is how it begins....


Perhaps Elon Musk is right?