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!


enmaniac

Member Since 15 Jan 2004
Offline Last Active May 04 2013 03:24 AM

Posts I've Made

In Topic: Find Direction in 3DWorld

22 August 2007 - 10:24 PM

Hi!

It is quite relative. It is up to you how you would interpret mouse position change. There is no GENERAL way of transforming 2D position into 3D cause there is too little of data. However, in many cases (ie. FPP games) it is common to interpret mouse position displacements as follows:

- mouse X displacement (X2-X1) rotates camera/eye look at vector around UP axis (whatever UP axis is)
- mouse Y displacement (Y2-Y1) rotates camera/eye look at vector around RIGHT/LEFT axis (whatever they are)

Hope it helps! ;-)

In Topic: Strange opengl behaviour

14 August 2007 - 02:24 AM

Hi!

As for me it looks that everyting is ok. Here is the screenshot I got after running the app

screenshot

Quad and triangle are rendered in wire mode.

EDIT: screen shot fixed

In Topic: More slider math

11 August 2007 - 11:14 PM

The easiest way to calculate value (speed) from slider position is to do linear interpolation:

speed = value_min+( value_max-value_min )*( slider_pos/slider_width )


In Topic: What framework to use

09 August 2007 - 12:58 PM

Adding windows controls and popup menus should not be a problem.

In Topic: What framework to use

09 August 2007 - 12:42 PM

Hi!

Personally, I would avoid MFC especially when you havent done any programming for longer period of time. For OGL in windows environment I personally use pure WIN32 API. There are few reasons for that:

- it is quite easy to create OGL capable window (approx 20-30 lines of code, including wndproc)
- there are many many OpenGL examples which uses that approach, so it is very easy to find references
- MFC sucks and I think it has been already dropped by MS. It also introduces losts of dependencies (number of DLLs which must be shipped together with your application)

PARTNERS