Author Topic: Project Realistic Rig  (Read 5475 times)

doubledragoncc

  • Hero Member
  • *****
  • Posts: 4599
  • If it dont fit HIT it!!!!!!!!!
    • View Profile
    • GPBOC Live Streams
Re: Project Realistic Rig
« Reply #75 on: April 15, 2018, 09:46:39 AM »
I use a 40inch flatscreen TV and only 1080p but love it for GPB if not doing vr. I have an Asus Strix 1060 OC at 2000mhz and works a dream for most BUT Star citizen wont run for shite, crashes all the time and terrible fps. I run full Asus ROG system with 16GB 4000mhz memory and my problem is i5 7600 4800mhz but SC dont like it since 3.0 release, 2.6 ran great but now it is just a pain so if you want to run SC in even 1080p make it a gtx1080 and i7 7700 at least to play it at all and put it on a SSD as it takes years to load from normal HD.

Thought it best to say speedy as hating SC right now lol. The 40inch is perfect for 1p riding as the bike is the right size. It is also great for my design work.

btw my screen cost 200 new and is 200hz no only 60hz like most. Here in UK can get Ultra HD 4k 40inch for 399 and probably less just did a quick glance on ebay to see

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls

Teamspeak: Server IP: 82.43.148.211  user password "yougetin"

i5 7600 5.0GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix GTX1050Ti OC 4GB DDR5 Kraken X62 AIO Cooler

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #76 on: April 15, 2018, 02:32:35 PM »
Hi DD,

i know bigger is better (!!) but as i saw on my kids screen, working on a TV is a kill for the eyes otherwise i would have stolen the main TV screen but wifey will kill me as well...
No, i need a working screen too. Where i can spend hours on Excel and Word. Same for Cura and Sketchup.
And my work is to make gaming computer, including WC and other so i know what to use for a video card the only thing is, i'm not gonna put 600 fuc*$%g in a video card, that's way too much.
About Star Citizen, we still are on 3.1, fps increased quiet a bit since 3.1 but i'm tired of redoing my xml files each time for my Hotas so i'll wait for SQ42, dreaming of my youth with Wing Commander or Starlancer taste still in my mind.

And, my rig works great. Perfect. I have to say that its very natural and great to ride, rear braking and clutching is a great plus. But the lack of information from the leaning is horrible.
So, and i know you are kind of "against" that, but i'm gonna disassembly a old FFB steering wheel in order to put FFB on my leaning axis, that way the steering head will be linked as a "Logitech/Microsoft/Thrusmaster" wheel using the FFB inside and the rest will be Leo Bodnar.
I have to work on that and find out is i need to change the potentiometer or maybe have bigger demultiplication because a handlebar is a lot longer than a wheel and the moment of force applied is almost 3 times bigger.

I've been spending time on trying to find out how to catch FFB information from the software and then translating that to an Arduino to monitor a DC motor but it's quiet hard to execute, i think for a few i can find a used FFB wheel and then operate it !!
I'll come back with more asap.

Have a nice sunday guys, in here, finally, Spring is coming after 5 month of rain !!
« Last Edit: April 15, 2018, 02:34:24 PM by speedfr »
Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

h106frp

  • Hero Member
  • *****
  • Posts: 1809
    • View Profile
Re: Project Realistic Rig
« Reply #77 on: April 15, 2018, 03:02:04 PM »
You need a dll to link into GPB (dlo) and place the data in memory (the easy bit surprisingly, you can do it with codeblocks C) then some sort of host PC application to send this data to the arduino at a decent rate.
 
The host application also lets you scale the values, range check and limit (a must if you do not want the bars going berserk) and the ability to drive other stuff like a dash. I used microchip PIC and USB.

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #78 on: April 15, 2018, 03:10:25 PM »
Thank you mate, that's what i understood from the few things i found about it.

But my level in coding is absolutely minimal (more a mechanical than a dev guy) so this part is going to be a nightmare for me.
I have a "Genius" friend that swim like a fish into that but once more, i don't want to bug or depend on somebody so i'll try to steal a FFB system and make it work with my stuff, if it doesn't work, i'll be coming to you, don't worry !!
It will be the same for my own custom frame, i'll ask a specialist to do me a nice black and yellow painting with #40 on it. (not a Hornet, a Bee !!).

Anywat what "host application" are you talking about ?
I found a RFR Wheel configuration actually and it might be that, no ?

Here (this guy makes everything with almost nothing, i'm impressed !! )

<a href="https://www.youtube.com/v/Snbkv_mvt8Q" target="_blank" class="new_win">https://www.youtube.com/v/Snbkv_mvt8Q</a>

« Last Edit: April 15, 2018, 03:17:13 PM by speedfr »
Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

h106frp

  • Hero Member
  • *****
  • Posts: 1809
    • View Profile
Re: Project Realistic Rig
« Reply #79 on: April 15, 2018, 03:15:46 PM »
This is the info I had when i started for the DLL part, link this with the info in the demo dll from PB and you should be able to make a unique formatted data block in memory that you can read from with the host app. :)

opensource codeblocks c http://www.codeblocks.org/

Code: [Select]
Hi all,

I based my work on the clever use of the string tables that Pharoseer discribed in his post "Making a DLL with C++ Express" : http://forum.thegamecreators.com/?m=forum_view&t=165006&b=18

I reduced as possible the steps needed to create a DLL using Code::Blocks (MinGW compiler).

I won't write a full tutorial, The GameCreators already did it, so before to go further please read carefuly The Third Party Commands topic you'll find into the help file of DBP (Technical Documents Section).


So, I assume you are familiar with the process and the explanations regarding the creation of a DLL using Visual C++ ; things are a bit different using Code::Blocks but it will be quite easy using the following steps :

(Note : for this example I used the last official version of Code::Block v8.02 including MinGW)


1) Create a DLL project

- Launch Code::Blocks
- Click on "Create a New Project"
- Click on "Dynamic Link Library"
- Let's give a name to our DLL project e.g. "TestDLL" (a new folder with the same name will be created into the Code::Blocks' Projects folder)
- Click on "Next" then "Finish" buttons to complete the project creation.

Now the "Projects" tab displays the name of our project ("TestDll") with 2 items : "Sources" and "Headers"


You'll notice that the Wizard's DLL creation tool has created some code as a default example, but let's make our own instead :

- Open the "Headers" tree then Right Click on the file named "main.h" and select "Remove file from project" : the "Headers" tree has been removed.
- Open The "Sources" tree and edit the "main.cpp" to remove all the code ((CTRL+A) then DELETE). Now we have got a blank page.


2) Write some functions in our DLL

Copy the code below (which contains 2 simple fonctions) in our "main.cpp" file.

main.cpp
+ Code Snippet

#include <windows.h>

#define EXPORT __declspec (dllexport)


EXPORT int Square( int X) // Return Square
 {
    return X*X;
 }

EXPORT int Cube( int X) // Return Cube
 {
    return X*X*X;
 }




3) Configure the project's properties to create a .DEF file

This file will allow us to get automatically the complete list of the functions of the DLL in their decorated form.

- In the "Projects" tab, Right Click on the project name "TestDLL" and select "Properties..."
- Click on the "Build targets" tab and check that the option "Create .DEF exports file" is selected.
- When done click on the "OK" button to proceed.


4) Build our DLL (CTRL+F9)

The DLL we created can't be used "as this" from DBP but this step will help us to obtain complementary informations to build the final one because the .def file was created.


5) Create a String Table in a Resource File

- Create a new empty text file into the "TestDLL" folder (located in the Code::Blocks' Projects folder) and rename it as "TestDLL.rc" (this is a Resources file).
- Open the "....Projects\TestDLL\bin\Debug" folder.
- Use Notepad to open the file "libTestDLL.def" which contains the full list of our functions in their decorated form.

libTestDLL.def
+ Code Snippet

EXPORTS
    _Z4Cubei @1
    _Z6Squarei @2



- Go back to Code:Blocks
- In the "Projects" tab, Right Click on the project name ("TestDLL") and select "Add Files..."
- Select the file "TestDLL.rc" you just have created.
- When asked for "Multiple Selection", click on "Select All" then "OK" buttons : you just added the Resources file to the Project.
- Open the "Resources" tree then double click on the name "TestDLL.rc" to edit the file.
- Copy the code below in the Resource file. As you can see, this code contains the decorated form of the functions we previously found into the .def file.

Stringtable
+ Code Snippet

STRINGTABLE
{
1       "CUBE[%LL%_Z4Cubei%"
2 "SQUARE[%LL%_Z6Squarei%"
}




6) Build the final version of the DLL (CTRL+F9)

7) Copy the file "TestDLL.dll" located into "....\Projects\TestDLL\bin\Debug" into the "plugins-user" folder of DBP (....Dark Basic Professional\Compiler\plugins-user).

8) Test our functions from DBP :

DBP Code
+ Code Snippet

I=Square(4) : Print "4*4 = ",I
I=Cube(4) : Print "4*4*4 = ",I
Wait Key




Of course you can create your DLL in release mode (Properties --> Build targets Tab)


I hope this will help.

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #80 on: April 15, 2018, 03:19:57 PM »
That's great info that h106frp, i'll have a look at it.

Thank you.  :)

And @DD, adding a FFB on the leaning axis will be a great update for your HSx system, if it becomes not too difficult, that could increase a lot the clients for you since that's exactly what we need to "feel" the bike. And this lack of feeling is really loosing me. Maybe am i too perfectionnist, i'll see...
Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

h106frp

  • Hero Member
  • *****
  • Posts: 1809
    • View Profile
Re: Project Realistic Rig
« Reply #81 on: April 15, 2018, 03:23:52 PM »
Just found this on my backup drive  :) , the codeblocks DLL project. It will probably need the declarations updating to the current PB b13 DLL template from the GPB downloads area

Might give you a start though

https://drive.google.com/file/d/19eDOmZfkW7ldKOH-O2g-JYJa5VLPxXcU/view?usp=sharing

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #82 on: April 15, 2018, 05:28:50 PM »
I run dl that and have a look at all of that.

On one side, there's the programming and electronics while on the other side, there's adaptation and mechanics.
At first, i'll go to the second.
But since i have archives about it now, i might go for the first choice.
Need to understand at first.

Thanks again h106frp, that's really really nice of you.

Ps : Video about my realisation is uploading to YT and be posted in here asap. It's dedicate to DD.  ;D

Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #83 on: April 15, 2018, 07:38:23 PM »
Here is the little video about my rig.

<a href="https://www.youtube.com/v/9TZ4ogju2GQ" target="_blank" class="new_win">https://www.youtube.com/v/9TZ4ogju2GQ</a>
Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

doubledragoncc

  • Hero Member
  • *****
  • Posts: 4599
  • If it dont fit HIT it!!!!!!!!!
    • View Profile
    • GPBOC Live Streams
Re: Project Realistic Rig
« Reply #84 on: April 16, 2018, 08:29:12 AM »
Great video speedy. Thank you for the very kind words and support. Very good work you have done. I use 100% direct lean to get better control of the bike btw

I do want to have FFB it is just a cost issue for now. I wanted to get hydraulic brakes done first so now can think about FFB. I want to find a way so I can add it to all systems for old customers and not just new ones so that is part of the problem but have some idea how to do it, just have to get it all figured out lol.

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls

Teamspeak: Server IP: 82.43.148.211  user password "yougetin"

i5 7600 5.0GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix GTX1050Ti OC 4GB DDR5 Kraken X62 AIO Cooler

Hawk

  • Hero Member
  • *****
  • Posts: 6108
  • MOD Team: CAWS / GP-Team: Horizon GP #7
    • View Profile
Re: Project Realistic Rig
« Reply #85 on: April 16, 2018, 02:14:32 PM »
Looking goood Speedy! Nice job mate! ;) 8)

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #86 on: April 16, 2018, 02:34:14 PM »
Thank you guys.  :)

And yes, DD, that was for your eyes mostly, to check that your babies are well treated...  ;D

And i'm going to "re" try a FFB sterring wheel to understand what was making this way of leaning so great and efficient.
Better that a joystick.
And more smooth and controlable than my handlebar.

Because what i think last time i tried, is that actually FFB effect was off on GP Bikes and only the fact that "basic" FFB was on, meaning the come back to the center position.
And that centering forces against you constantly. Giving you something to counter-steer and at the same time, avoiding the handlebar to wiggle left and right, making me loose the benefit of a handlebar position as on my bike.
A little bit as a steering damper but this element smooth the mouvement but doesn't force against you, just making the movement more linear.

If its what i "feel" then FFB is not necessary. Springs are theoricaly enough, except they don't force on a linear way and tiny force at beginning, big at the end so it's not springs the solution. I've tried a lot of them, different position, deifferent diameter of steel, all kinds of solutions, its not as it was with the steering wheel + FFB minimum that i recall in my mind.

I'll try tonight with the one i'm stealing and then i'll have my answer.

If its "just" a matter of having a DC motor forcing against my arms to take it back to middle position, i guess that's a lot easier to execute then a real FFB device.
Need a encoder to read the angle, a DC motor, a little electronic basic to rules the motor, probably a old Power Supply for computer and the bigger work will be to calculate the gearing for the reduction. Or go with a belt.
Well, it's not finished but yeah, it's coming !!!
(the real thing will be to have hard time leaning as i brake in curve, as in reality and that's really troubling me that when i brake and lean, it's not harder to do, i'd like to be seating there, and have the same feelings... The Graal !!! )

Oh, and DD you're right, i did put 100 direct lean and it's way easier at least with a handlebar.



Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC

doubledragoncc

  • Hero Member
  • *****
  • Posts: 4599
  • If it dont fit HIT it!!!!!!!!!
    • View Profile
    • GPBOC Live Streams
Re: Project Realistic Rig
« Reply #87 on: April 16, 2018, 06:41:17 PM »
There are many things happening now I can not talk about yet but the motorcycle simulation industry is going to change this year. Keep being inventive and positive. It gonna get real.

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls

Teamspeak: Server IP: 82.43.148.211  user password "yougetin"

i5 7600 5.0GHz z270 ASUS Maximus Code Mobo 16GB 3866MHz DDR4 RAM ASUS Strix GTX1050Ti OC 4GB DDR5 Kraken X62 AIO Cooler

damonboss

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Project Realistic Rig
« Reply #88 on: April 16, 2018, 06:43:41 PM »
smoking bad

speedfr

  • Sr. Member
  • ****
  • Posts: 328
  • Partir, c'est pourrir un pneu !
    • View Profile
Re: Project Realistic Rig
« Reply #89 on: April 16, 2018, 07:13:01 PM »
There are many things happening now I can not talk about yet but the motorcycle simulation industry is going to change this year. Keep being inventive and positive. It gonna get real.

DD

NDA ?  with Gren.... sniffing it.... ;D


smoking bad

???? :o
Missing Gp500 (Microprose)

Testing EDTracker Pro on YT

i7-4790K/16Go/GTX1070/1440p/Full WC