Jump to content

Recommended Posts

Posted (edited)
Hi Yoda,

Have you looked at the OpenGL Texture Mapping FAQ?

 

http://www.opengl.org/resources/faq/technical/texture.htm

 

That might help with your texture mapping (which the

com.sun.opengl.util.j2d.TextRenderer will be done under the covers)

 

Section "21.030 Why doesn't lighting work when I turn on" might be useful....

 

thanks but ive already checked 21.030. I do have lighting, it's just t hat it is .....strange for the textures......

My geometry is shaded just fine.

 

The problem I'm having is this :

http://www.javagaming.org/index.php/topic,21809.msg179280.html#msg179280

 

if you have any ideas on how to set it up for the text to be shaded properly I'd be very happy :).

Also with textures comes the problem of having to draw one. I know I could not make one very easily,

I'm absolute crap at drawing things. The ADI looks fairly decent but it is becuase i have not drawn

anything, I just programmed the 3d geometry ;)

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

  • Replies 784
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

Looks like im running into this problem here :

http://lists.apple.com/archives/mac-opengl/2007/Nov/msg00102.html

 

UPDATE: no it was something much simpler :).

 

I got help on JOGL forums...I had forgotten to give the normal vector for my text, doh,

Now it works !!

adi11.png

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

Leavu just got an fps and synchronization upgrade!

Leavu instruments can now run at the same smoothness and rate as those ingame :).

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

Try F-15C since 1986.

 

Witch version of F-15 are u trying to imitate,F-15 Raptor/silent eagle:) I thought F-15 pilots were as depended on GCI as Su-27, O

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted (edited)
Witch version of F-15 are u trying to imitate,F-15 Raptor/silent eagle:) I thought F-15 pilots were as depended on GCI as Su-27, O

 

What are you talking about.

LEAVU is software for generating any external instruments.

 

If you talk about one of the LEAVU instruments currently developed,

the MFD, it is not meant to 1:1 replicate any particular aircraft.

If any it is a mix of F18, F16 MLU 1-2 and the C eagle dated as GG said.

It uses very old school datalink and other information.

Targeting datalinks have been available for USAF in some planes since 60s,

so how difficult is it to believe they exist in todays planes :P.

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted (edited)

We in 51st are based on hardcore online competition. And this tool can make the competition quite unfair when some individuals can fly as they find it realistic.

Im not against the mod its just that you have to understand it from our point of view.

Then again I hope a lot of this will be solved in 2.0 and that some dont fly in any circumstances where others are not aware of their datalink usage.

Edited by Teknetinium

Teknetinium 2017.jpg
                        51st PVO Discord SATAC YouTube
 

Posted

So just don't use it in flyoffs or whatever. It isn't a problem.

 

Further, there's nothing wrong with adding more realism to this so called hardcore online competition - most aircraft have some flavor of datalink. This one will be too much for -some- aircraft (migs, hogs, frogs) but in any case, I don't understand this sudden mortal fear of LEAVU.

 

 

We in 51st are based on hardcore online competition. And this tool can make the competition quite unfair when people can fly as they find its realistic.

Im not against the mod its just that you have to understand it from our point of view.

then again I hope some of this will be solved in 2.0

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted (edited)
We in 51st are based on hardcore online competition. And this tool can make the competition quite unfair when some individuals can fly as they find it realistic.

Im not against the mod its just that you have to understand it from our point of view.

Then again I hope some of this will be solved in 2.0 and that some dont fly in any circumstances where others are not aware of their datalink usage.

 

Nobody is stopping you from flying such things, but you're hardly using a diplomatic approach by

trying to make fun of others. And that is just one out many things on a long list.

Still, nobody is stopping you from running a "clean" server without any mods, but let's be honest

here, some of us do not agree with the game being "fair" by default, nor that it has to be.

Again, nobody stopping you from playing your kind of game.

 

 

Witch version of F-15 are u trying to imitate,F-15 Raptor/silent eagle:)

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted
So just don't use it in flyoffs or whatever. It isn't a problem.

 

Further, there's nothing wrong with adding more realism to this so called hardcore online competition - most aircraft have some flavor of datalink. This one will be too much for -some- aircraft (migs, hogs, frogs) but in any case, I don't understand this sudden mortal fear of LEAVU.

 

 

Its not wrong when all part are on it, right now that's not possible witch make it as a threat to clean online competition.

Teknetinium 2017.jpg
                        51st PVO Discord SATAC YouTube
 

Posted (edited)
Nobody is stopping you from flying such things, but you're hardly using a diplomatic approach by

trying to make fun of others. And that is just one out many things on a long list.

Still, nobody is stopping you from running a "clean" server without any mods, but let's be honest

here, some of us do not agree with the game being "fair" by default, nor that it has to be.

Again, nobody stopping you from playing your kind of game.

 

 

Sorry for my approach but as i know this features are implemented in bigger scale on 4+ airplanes as F-18superhornet, F-15E. not 4th, enjoy yours.

Edited by Teknetinium

Teknetinium 2017.jpg
                        51st PVO Discord SATAC YouTube
 

Posted

I would argue that adoption of LEAVU by squads would be the #1 step to fostering more cooperation, even by the lonewolves.

 

Change is painful.

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted
Its not wrong when all part are on it, right now that's not possible witch make it as a threat to clean online competition.

 

Why is it not possible? Everyone is able to help in the development to ensure that there is modules developed for all aircraft that should have them.

[sIGPIC][/sIGPIC]

Daniel "EtherealN" Agorander | Даниэль "эфирныйн" Агорандер

Intel i7 2600K @ 4.4GHz, ASUS Sabertooth P67, 8GB Corsair Vengeance @ 1600MHz, ASUS GTX 560Ti DirectCU II 1GB, Samsung 830series 512GB SSD, Corsair AX850w, two BENQ screens and TM HOTAS Warthog

DCS: A-10C Warthog FAQ | DCS: P-51D FAQ | Remember to read the Forum Rules |

|
| Life of a Game Tester
Posted (edited)

In simpe words we are playing a different game, and have different approaches to it. Like I said before Im not against any mod or any development(grate work Yoda) its just that Im pointing it out from online competition point of view, where u are hard to find GG .

Edited by Teknetinium

Teknetinium 2017.jpg
                        51st PVO Discord SATAC YouTube
 

Posted (edited)
Sorry for my approach but as i know this features are implemented in bigger scale on 4+ airplanes as F-18superhornet, F-15E. not 4th, enjoy yours.

 

There should be some pictures available online of the sperry MPCD ( is that the right name? )

and the datalink connected. However it shows a lot more features than Leavu has at this point,

and because of the lack of information I chose implementing something more available, like the dlink setup

and display on the MLU1 and MLU2 of F16s. These are reasonable old aircraft, and I could

show you their manuals and that of other aircraft.

 

There are also some bits and pieces from manuals from F15Cs, dated 1989.

You do not need to go to a Superhornet, older F18s have datalink as well, positioning,

datapoints, radar targets etc, datalinked, just like the F16. Did you for example know

that you could target step to datalinked contacts on the older aircraft ;).

These things are far more than my datalink will do and this is no Super Hornet ;).

 

My sources for my claims above are manuals, pilots, one F15 crew chief and one F15 avionics specialist,

not to mention other documents bringing these things up.

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

Oh, I gave up when some people started complaining that things were too difficult for them - but then again, I can't blame them I suppose, they had a touch time understanding what's what at that point :)

 

In simpe words we are playing a different game, and have different approaches to it. Like I said before Im not against any mod or any development(grate work Yoda) its just that Im pointing it out from online competition point of view, where u are hard to find GG .

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted (edited)

Looking for 3d models, modellers, textures and people who know OpenGL!

 

So, right now leavu2 has a quite primitive 3d renderer, but a 3d renderer still.

At this point what I/we need help with most is creating 3d models and textures.

If you are able to do such please let me know and maybe we can figure something out! :).

 

Anyone making a contribution to the project will of course get his/her stamp on it as well.

 

Also looking for people knowledgeable in OpenGL, or even better JOGL.

 

I thought we would start out with something simple, like 3d models for basic steam gauges.

 

( also made a small update to first post in the thread )

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

Perhaps it is worth enumerating the gauges to be produced? Then we have a concrete goal to aim for and can estimate how many are needed to contribute.

Posted

I don't see any specific limit, or a starting goal really.

I expect it will be an ongoing development like touch buddy in some ways ;).

 

maybe we will make a set of F15 gauges now, then a set of Su27 gauges later,

or the other way around, don't know.

 

What I would personally like is of course F15 gauges ( since lovp already does the russian ones). So something like :

 

RPM gauges,

ADI ( with all the surrounding detail on top of the current model )

HSI

Fuel gauge

Engine temperature

VVI

Fuel flow

AoA gauge

Speed and Mach gauge

Altitude ( feet above SL ) gauge

G meter

Clock maybe? :)

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted (edited)

I have mapped the keys of Leavu2 to my Cougar MFD Pack.

In a few weeks I will have 2 x 7inch monitors to place behind the Cougar frames.

I have made a short video to show it works,sorry for the bad quality.

When I have my lcds I will make a new video,with a better camera:)

Thank you for making this possible.

 

here is the youtube link:

 

Edited by Schizwiz

To see your opponent for who he or she is,is to put your blade in front of their deepest secrets and make them come up front,outward with a defeat or a win.

Posted (edited)
Will LEAVU2 work under Linux?

 

Yes, though I have not written the code that will detect keyboard input yet

for linux. Perhaps in linux we can simply use standard Jinput to detect keyboard

input. This is not an option in windows for 2 reasons .

 

1 : You want to detect keyboard input even though the game and not leavu2 has window focus

2 : Lockon creates keyboard hooks, basically stealing all keyboard input. You must access it at the lowest level to spot it.

 

Similarly in linux i have not written a native library that does the following :

 

1. If the game has window focus , do not steal it when clicking leavu ( i.e. touch screens )

 

I have it sorted in windows, but i doubt we will need that feature in linux.

Leavu2 is mostly just java, but I do need a native library for the reasons above.

However this library is only loaded if you actually try to access these functions, so

you can still launch leavu2 on linux and use it like on windows if you dont need the above.

 

------

 

The native library i call "Java2Win32.dll" in windows has source code :

 


#include "windows.h"
#include "Java2Win32.h"
#include "jawt.h"
#include "jawt_md.h"

JNIEXPORT jlong JNICALL Java_leavu_Win32_setNoActivate(JNIEnv *env, jclass cls, jobject comp) {
   HMODULE _hAWT = 0;

   HWND hWnd = 0;
   typedef jboolean(JNICALL * PJAWT_GETAWT)(JNIEnv*, JAWT*);
   JAWT awt;
   JAWT_DrawingSurface* ds;
   JAWT_DrawingSurfaceInfo* dsi;
   JAWT_Win32DrawingSurfaceInfo* dsi_win;
   jboolean result;
   jint lock;

   //Load AWT Library
   _hAWT = LoadLibrary(L"jawt.dll");


   if (_hAWT) {
       PJAWT_GETAWT JAWT_GetAWT = (PJAWT_GETAWT) GetProcAddress(_hAWT, "_JAWT_GetAWT@8");
       if (!JAWT_GetAWT) {
           JAWT_GetAWT = (PJAWT_GETAWT) GetProcAddress(_hAWT, "JAWT_GetAWT");
       }
       if (JAWT_GetAWT) {
           awt.version = JAWT_VERSION_1_4; // Init here with JAWT_VERSION_1_3 or JAWT_VERSION_1_4
           //Get AWT API Interface
           result = JAWT_GetAWT(env, &awt);
           if (result != JNI_FALSE) {
               ds = awt.GetDrawingSurface(env, comp);
               if (ds != NULL) {
                   lock = ds->Lock(ds);
                   if ((lock & JAWT_LOCK_ERROR) == 0) {
                       dsi = ds->GetDrawingSurfaceInfo(ds);
                       if (dsi) {
                           dsi_win = (JAWT_Win32DrawingSurfaceInfo*) dsi->platformInfo;
                           if (dsi_win) {
                               hWnd = dsi_win->hwnd;
                               SetWindowLong(hWnd,GWL_EXSTYLE,WS_EX_NOACTIVATE);
                           } else {
                               hWnd = (HWND) - 1;
                           }
                           ds->FreeDrawingSurfaceInfo(dsi);
                       } else {
                           hWnd = (HWND) - 2;
                       }
                       ds->Unlock(ds);
                   } else {
                       hWnd = (HWND) - 3;
                   }
                   awt.FreeDrawingSurface(ds);
               } else {
                   hWnd = (HWND) - 4;
               }
           } else {
               hWnd = (HWND) - 5;
           }
       } else {
           hWnd = (HWND) - 6;
       }
   } else {
       hWnd = (HWND) - 7;
   }
   return (jlong) (long)hWnd;
}

JNIEXPORT jshort JNICALL Java_leavu_Win32_keyHeld(JNIEnv *env, jclass cls, jint keyCode) {
return (jshort)GetKeyState((int)keyCode);
}

JNIEXPORT jshort JNICALL Java_leavu_Win32_keyStateChanged(JNIEnv *env, jclass cls, jint keyCode) {
return (jshort)GetAsyncKeyState((int)keyCode);
}

 

If you want linux compatibility the easiest way is to replace these windows calls with equivalent native linux calls

and put that .so file in your java lib path i guess.

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

Good. I hope it will be tested for linux (I prefer ubuntu by the way) before the release. keyboard input is not that needed. Graphical display will serve well. Keep up the good work!

Posted
Good. I hope it will be tested for linux (I prefer ubuntu by the way) before the release. keyboard input is not that needed. Graphical display will serve well. Keep up the good work!

 

My friend has already run it on linux and it works well for him :).

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

I use Ubuntu, Windows and Mac OS X. It should run without modification on all three and I'm sure it'll be tested it on all of them (it is Java although uses the JoGL Java OpenGL plugin that has native code on those platforms [and Solaris]).

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...