Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 53 54 55 [56] 57 58 59 60   Go Down

Author Topic: graphics extender  (Read 59218 times)

0 Members and 1 Guest are viewing this topic.

TXZCJSP

  • member
  • Offline Offline
  • Posts: 11
Re: graphics extender
« Reply #660 on: June 14, 2019, 07:56:36 PM »

O! M! G !
Logged

shardana

  • member
  • Offline Offline
  • Posts: 483
Re: graphics extender
« Reply #661 on: June 15, 2019, 02:29:50 AM »

Just amazing!!! is it already in the last build?
Logged

slibenli

  • member
  • Offline Offline
  • Posts: 312
Re: graphics extender
« Reply #662 on: June 15, 2019, 07:18:48 AM »


Cool shots slibenli  8)

What map?
and what time you set them to?

Slovakia winter. I don't know the exact time as I made those screenshots in my test program where I can directly control the sun direction.

Just amazing!!! is it already in the last build?

Nope ;)

slibenli

  • member
  • Offline Offline
  • Posts: 312
Re: graphics extender
« Reply #663 on: June 15, 2019, 08:05:11 AM »

The latest build now contains a java interface.
https://gitlab.com/vrresto/il2ge/-/jobs/231925477/artifacts/browse/install/il2ge/java_interface/org/il2ge/
https://gitlab.com/vrresto/il2ge/-/jobs/232136552/artifacts/browse/install/il2ge/java_interface/org/il2ge/


Code: [Select]
package org.il2ge;
import org.il2ge.GraphicsExtenderJNI;
public class GraphicsExtender {
  public static int getInterfaceVersion() {
    return GraphicsExtenderJNI.getInterfaceVersion();
  }

  public static int getNumCommandNames() {
    return GraphicsExtenderJNI.getNumCommandNames();
  }

  public static String getCommandName(int index) {
    return GraphicsExtenderJNI.getCommandName(index);
  }

  public static String getCommandDisplayText(String command_name) {
    return GraphicsExtenderJNI.getCommandDisplayText(command_name);
  }

  public static void executeCommand(String command_name) {
    GraphicsExtenderJNI.executeCommand(command_name);
  }
}

Through methods getNumCommands getNumCommandNames getCommandName and executeCommand an arbitrary number of commands is made available.
These could be used to create hotkeys and/or console commands.

Edit: I've added the method getCommandDisplayText .
This may be used as display text for the hotkey in the game GUI, while getCommandName is suitable for saving the hotkey in the configuration.

I would be happy if one of the java coders could look into this.

TheIdiot

  • member
  • Offline Offline
  • Posts: 26
Re: graphics extender
« Reply #664 on: June 21, 2019, 09:17:23 PM »

Quick question: where can I find all of the potential .ini settings for IL2GE? I'd like to try out the auto-generated terrain and such but have no idea what to put in the .ini file (which I assume I have to create myself?)
Logged

slibenli

  • member
  • Offline Offline
  • Posts: 312
Re: graphics extender
« Reply #665 on: June 22, 2019, 02:54:42 AM »

Quick question: where can I find all of the potential .ini settings for IL2GE? I'd like to try out the auto-generated terrain and such but have no idea what to put in the .ini file (which I assume I have to create myself?)

Autogenerated terrain doesn't work currently.

Possible settings and their defaults are:

EnableGE=1 (to enable/disable the graphics extender)
EnableEffects=0 (experimental new effects implementation)
EnableObjectShaders=1

tsisqua

  • member
  • Offline Offline
  • Posts: 6
Re: graphics extender
« Reply #666 on: June 25, 2019, 10:28:12 AM »

This is . . . just awesome! Thank you, so much. No more mountains, crawling out of the 4th dimension. I can take popup trees and houses, but the distant mountains have always been an annoyance. I can see them! I'm so happy :) !
Logged

steven197106

  • Art Director
  • member
  • Offline Offline
  • Posts: 1610
Re: graphics extender
« Reply #667 on: July 04, 2019, 08:20:32 AM »

Lastest Build il2ge-build_245214463 does not load,  I get a black screen.
Logged
i7-5820k CPU 3.30gHZ, 16 GB ram, RTX 2080 Graphic card, 49" CHG90 QLED Gaming Monitor, VKB- T-Rudders Mk.III pedals, VPC MongoosT-50 Flightstick with VPC Desk Mount, VPC Extensions Set with a thrustmaster warthog grip on the stick, saitek TPM System, thrustmaster warthog throttle,

MOUSQUITO

  • member
  • Offline Offline
  • Posts: 45
Re: graphics extender
« Reply #668 on: July 04, 2019, 11:13:37 AM »

hello Slibeni,
I get a black screen too with latest build...
Logged

Stefano

  • Modder
  • member
  • Offline Offline
  • Posts: 374
Re: graphics extender
« Reply #669 on: July 05, 2019, 05:10:24 AM »

hello Slibeni,
I get a black screen too with latest build...

Idem...
Logged

slibenli

  • member
  • Offline Offline
  • Posts: 312
Re: graphics extender
« Reply #670 on: July 06, 2019, 05:41:29 PM »

The latest build now contains a java interface.
https://gitlab.com/vrresto/il2ge/-/jobs/231925477/artifacts/browse/install/il2ge/java_interface/org/il2ge/
https://gitlab.com/vrresto/il2ge/-/jobs/232136552/artifacts/browse/install/il2ge/java_interface/org/il2ge/


Code: [Select]
package org.il2ge;
import org.il2ge.GraphicsExtenderJNI;
public class GraphicsExtender {
  public static int getInterfaceVersion() {
    return GraphicsExtenderJNI.getInterfaceVersion();
  }

  public static int getNumCommandNames() {
    return GraphicsExtenderJNI.getNumCommandNames();
  }

  public static String getCommandName(int index) {
    return GraphicsExtenderJNI.getCommandName(index);
  }

  public static String getCommandDisplayText(String command_name) {
    return GraphicsExtenderJNI.getCommandDisplayText(command_name);
  }

  public static void executeCommand(String command_name) {
    GraphicsExtenderJNI.executeCommand(command_name);
  }
}

Through methods getNumCommands getNumCommandNames getCommandName and executeCommand an arbitrary number of commands is made available.
These could be used to create hotkeys and/or console commands.

Edit: I've added the method getCommandDisplayText .
This may be used as display text for the hotkey in the game GUI, while getCommandName is suitable for saving the hotkey in the configuration.

I would be happy if one of the java coders could look into this.

BTW  - I figured out how to do it:

Code: [Select]
package com.maddox.il2ge;

import com.maddox.rts.*;

public class HotKeys
{
  static boolean created = false;


  static class CommandHotKey extends HotKeyCmd
  {
    String name;

    public CommandHotKey(String name, String sortingName)
    {
      super(true, "GraphicsExtender." + name);
      this.name = name;
    }

    public void end()
    {
      GraphicsExtender.executeCommand(name);
    }
  }


  static class ShowMenuHotKey extends HotKeyCmd
  {
    public ShowMenuHotKey()
    {
      super(true, "GraphicsExtender.ShowMenu");
    }

    public void end()
    {
      Keyboard.adapter().setFocus(new KeyboardListener());
      GraphicsExtender.showMenu(true);
    }
  }


  static class KeyboardListener implements MsgKeyboardListener
  {
    public void msgKeyboardKey(int key, boolean pressed)
    {
      if (!pressed && key == VK.ESCAPE)
      {
        GraphicsExtender.showMenu(false);
        Keyboard.adapter().setFocus(null);
      }
      else if (pressed)
      {
        boolean ctrlPressed = Keyboard.adapter().isPressed(VK.CONTROL);
        boolean altPressed = Keyboard.adapter().isPressed(VK.ALT);
        boolean shiftPressed = Keyboard.adapter().isPressed(VK.SHIFT);

        GraphicsExtender.handleKey(key, ctrlPressed, altPressed, shiftPressed);
      }
    }

    public void msgKeyboardChar(char c) {}
  }


  public static void create()
  {
    if (created)
      return;

    if (!GraphicsExtender.IS_AVAILABLE)
      return;

    HotKeyCmdEnv.addCmd("hotkeys", new ShowMenuHotKey());

    for (int i = 0; i < GraphicsExtender.getNumCommandNames(); i++)
    {
      String name = GraphicsExtender.getCommandName(i);
      String text = GraphicsExtender.getCommandDisplayText(name);

      HotKeyCmdEnv.addCmd("misc", new CommandHotKey(name, text));
    }
  }


  static
  {
    create();
  }
}

slibenli

  • member
  • Offline Offline
  • Posts: 312
Re: graphics extender
« Reply #671 on: July 07, 2019, 03:05:14 PM »



Pages: 1 ... 53 54 55 [56] 57 58 59 60   Go Up
 

Page created in 0.014 seconds with 25 queries.