bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] 3d board


From: Joern Thyssen
Subject: Re: [Bug-gnubg] 3d board
Date: Fri, 24 Jan 2003 10:30:58 +0000
User-agent: Mutt/1.4i

On Fri, Jan 24, 2003 at 09:43:45AM +0000, Jonathan Kinsey wrote
> I've recently started looking at OpenGL.  I've had a go at drawing a 3d 
> board and you can see a screen shot of my first attempt here:
> 
> http://www.jonsphotos.org.uk/screen1.tif
> 
> It's a bit rough around the edges - an anti-alias pass tidies the main 
> jagged edges up:
> 
> http://www.jonsphotos.org.uk/screen2.tif
> 
> Each of these files is over 600k, so if you've got a slow connection and 
> just want an idea of what it looks like here's a small jpeg (50k)
> 
> http://www.jonsphotos.org.uk/smallscreen1.jpg
> 
> I know people tend to have a love/hate thing with 2d and 3d boards and I'm 
> not sure if there's any interest in a 3d board for gnu BG.
> If there is though I'd be happy to try to get the code I've written into a 
> usable state.

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).


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?

Jørn




reply via email to

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