LWJGL
May 21, 2012, 01:14:00 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Update. Success!  (Read 8965 times)
CaptainJester
Talks Too Much
***
Posts: 175



« on: August 01, 2007, 19:03:24 »

Woo hoo, I finally got Direct 3D to display a Triangle in LWJGL.  It's not much, but it is a start.  There are still some minor problems with the Display messages, but at least I can move forward now.

Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #1 on: August 01, 2007, 22:56:16 »

When are you ready to put something into SVN ?
I am eager to get some more eyes on it, especially with gaarazero code hanging around too

I imagine it living in org.lwjgl.directx
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Evil-Devil
Prolific Timewaster
****
Posts: 268



WWW
« Reply #2 on: August 02, 2007, 04:55:32 »

Very nice Smiley
Any chance for small demo app?
Logged
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #3 on: August 02, 2007, 05:02:40 »

When are you ready to put something into SVN ?
I am eager to get some more eyes on it, especially with gaarazero code hanging around too

I imagine it living in org.lwjgl.directx

I can put it in anytime.  The package is org.lwjgl.d3d.

I'll put it in today.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #4 on: August 02, 2007, 05:03:32 »

Very nice Smiley
Any chance for small demo app?

Not yet.  Need to add more funcitonality and fix the Display messaging issues.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #5 on: August 02, 2007, 05:14:35 »

Could you make a source drop before adding it to SVN ?
Would probably be nice to go over it before adding it all
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #6 on: August 02, 2007, 05:53:01 »

Sure.  You can get the source here: http://www.myjavaserver.com/~captainjester/lwjgld3d.zip

Once you are ready for me to add it to SVN, I need to be given permissions to the repository.

It shouldn't cause any problems.  No code outside the org.lwjgl.d3d package has been changed.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
gaarazero
Newbie
*
Posts: 32


« Reply #7 on: August 02, 2007, 09:12:59 »

Sure.  You can get the source here: http://www.myjavaserver.com/~captainjester/lwjgld3d.zip

Sweet!  I'll definitely be reading over this.  Smiley

When I was making mine, at first I used the Java 'long' to store the pointers to the devices, but found it not to work some times.  I think it was because the Java 'long' is 64 bits and the C 'long', on my computer at least, is 32 bits.  'jint' is defined as a C 'long' so thats why I switched to the Java 'int' to store the pointers.  A 'jlong' is defined as a '__int64'.  Switching to the Java 'int' made it work a lot better.  Just something if your having some problems.

I imagine it living in org.lwjgl.directx
Me too.  Tongue

-gz
Logged

JNewton 0.8 - Newton Dynamics wrapper for Java!
org.lwjgl.d3d - Currently Working On
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #8 on: August 02, 2007, 17:59:38 »

I will be going on vacation for the next week.  So nothing will be added to SVN until I get back.  If someone could give me SVN access, I can do it when I return.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #9 on: August 03, 2007, 04:12:27 »

One more thing.  I forgot to include a test case for the code.  I have added it to the zip and uploaded it to the server.  If you grab it again, you can try the test case out.  There is a problem with Display and Keyboard, however.  You will have to terminate the process to end the test case.  Or in Eclipse, just push the stop button on the console.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #10 on: August 05, 2007, 15:09:23 »

a quick glance over the code and it looks fine.
However the code duplication should be possible to get rid of?
can't you just use the existing window creation code and then grab the hwnd ?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
CaptainJester
Talks Too Much
***
Posts: 175



« Reply #11 on: August 12, 2007, 10:20:41 »

I talked to Cas and he suggested that I copy over the needed code.  I agreed.  I also found a lot of OpenGL dependencies that I had to get rid of.  Once I get it working, I might be able to bring all the code togther to make it less of a mess.  Right now I'll concentrate on getting all the native code put in and debugging the current problems.
Logged

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)
Cool
elias
Nerdus Imperius
*****
Posts: 899



WWW
« Reply #12 on: August 13, 2007, 15:52:45 »

Copying code is probably the fastest way to get something interesting on the screen. And we'll probably have to abstract out some opengl dependencies before we can fit in direct3d support. I'll try and help with that as much as possible when you code is mature enough.

 - elias
Logged

gus0650
Newbie
*
Posts: 2


« Reply #13 on: September 07, 2007, 02:17:11 »

Jester, this is FANTASTIC!!

In our game (runs as Applet), we are having so many problems with users who don't have OpenGL enabled graphics drivers.

Being able to offer DX as an alternative to OpenGL would totally boost our customer base.

Please keep up the good work! Three thumbs up!!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!