bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] 3d board


From: Jonathan Kinsey
Subject: Re: [Bug-gnubg] 3d board
Date: Fri, 24 Jan 2003 10:47:24 +0000


From: Joern Thyssen <address@hidden>
I think there would be interest in 3D boards, but there are two issues:

(a) 3D rendering code
(b) the code for moving chequers around etc.

In order to make (b) work the programmer of (a) should provide formulae
for determining chequer positions, point positions, cube positions, dice
positions, so we can determine what to do if we get a single click at
position (427px,325px).

There's a few approaches, the easiest is to map the clicked point to an (x,y) location at a specified z (e.g. the bottom of the board) on the mapped line. The better approach is called picking and identifies all the objects along the clicked line. I'll have a look at this.


I think most of the code present in gnubg in gtkboard.c can be reused.
We just need to write new functions that determine what is "under" a
given pixel position.

I definitely think it's a good idea!

BTW, is there are port of OpenGL to windows?

This was written on windows98. There's a few gtk widgets that support openGL rendering.

Jon

_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]