The online racing simulator
Searching in All forums
(11 results)
paparazzi
Demo licensed
Quote from PeterN :LFS' shaders use an upwards facing hemispherical map for performance, so the ground won't be reflected.

Scawen's comment on the issue: https://www.lfs.net/forum/post/1897508#post1897508

Thank you. I guess already knew it...
paparazzi
Demo licensed
Quote from nacim :Do you use LFS shaders or making a custom Reshade/SweetFX/ENB shader?

I use LFS shading own edit in Car2.psh and Car2.vsh with CG code I have edited normals in car2.vsh with no sucess also I did some coloring in .psh file and incrised some reflections. This is how I did to see and test what it is reflected in the car:

car2.vsh
// VSHADER_CAR_ALPHA_MATT
//vat = with a type of var
//v0 = Position float4
//eye_local = regist c16 float4
//local_to_env = regist c12 float4x4
//Normal = input normal float3

Out.EyeToVEnv = mul(float4((In.v0.xyz*float4(2.0f, 2.0f, 0.0f, 0.0f))-eye_local.xyz, 0.0f), local_to_env).xyz*float4(1.0f,1.0f,1.0f,0.0f);
Out.NormalEnv = mul(float4(In.Normal, 0.0f), local_to_env).xyz;

Added some non declarated vars in equation...
Unblable to reflect the floor and sidewalk (Shading Programming)
paparazzi
Demo licensed
Hello everyone. A few weeks I've been trying to create a realistic shader for lfs cars but I have not been able to get the result I expect. I try to adjust the coordinates of the Normals and position of the Vector Eye and I can not create a reflection that allows to reflect the own road and the sidewalk in the car possibly because it is not defined in the registers IN vertex shader a texture that allows to make that effect. What I have been doing now is to invert the reflection coordinates of the Eye and Normal vector but without any success. I would like to know if there is or is possible to create this reflection of the floor (in real time shading not by texture) and if it is not possible I would very much like it to be implemented in the future. Thank you.
paparazzi
Demo licensed
Hey, there. Why not damage packages? I see this fabulous idea from bluejudas in old thread of this and it would be nice to see into insim too at least more useful utilities can be made with this on.

http://www.lfsforum.net/showthread.php?p=1223721

hope your attention,
greats papa
Topic solved!!
paparazzi
Demo licensed
YAY congratulations is 100% working finally!! thanks to you MadCatX you have my own credits and respect. Ok, this help me kwon how does it work lets see if i can make one by myself :P Solved!
paparazzi
Demo licensed
error:

D:\insim\C++\insim\CInsim.cpp(35) : error C2871: 'std' : does not exist or is not a namespace
D:\insim\C++\insim\CInsim.cpp(52) : error C2274: 'function-style cast' : illegal as right side of '.' operator

and multiple C2274 refering gbuf.buffer, lbuf.buffer, udp_lbuf.buffer, but this is the part of the code from Linux not windows and i have defined as #define CIS_WINDOWS in Cinsim.h. so what might be?

I will take a look another working code somewhere, if anybody have it please just post the link here or source and with all the lib need it to make it work. tyvm.
paparazzi
Demo licensed
Hey ty for helping Yep I'm using MSVS, if i add CInsim 0.6 source to the project i get more errors and does not make sence use both .cpp files so i had tried to use only one CInsim.cpp as it is in Cinsim.zip. i add pthread library in same folder as the project and liking them in options from MSVS and add pthread.h to the project too. phtreadVC2.lib? I think i have a diferent version... from the CInsim pack only have this files pthread.h, pthreadGC2.dll, libpthreadGC2.a. Yap, i had a look in all code and i have #defined CIS_WINDOWS and change somewhere else to windows too.

Ok i will try to find this phtreadVC2.lib and see if it works.

Ty for helping again
Last edited by paparazzi, .
C Programming insim
paparazzi
Demo licensed
Hi there,

I'm trying to build my own 1st insim in C or C++ but i can't get it to work. I fallowed all examples here, download last helpers and libraries but still have errors. It appears that all C and C++ codes here were made to work in linux i found a nice tutorial video but it does not working in windows for somehow.

this was my steps:
1. download the Cinsim v0.6
http://www.lfsforum.net/showthread.php?t=47717

2. look all the code and see if it have any parameters to change since it have a Windows/*nix functions

3. then i couldn't compile because a missing "sched.h" include inside de Cinsim.h but i had a hard search somewhere on internet and i found it. All include file just fine now.

4. I use the source code sampleinsim.cpp found somewhere in this forums
http://www.lfsforum.net/attach ... d=111614&d=1294863787

5. and the result...

errors:
Linking...

d:\insim\c++\insim\cinsim.h(98) : error C2380: type(s) preceding 'buffer' (constructor with return type, or illegal redefinition of current class-name?)

6. i have change this part:

struct buffer
{
char buffer[PACKET_BUFFER_SIZE]; // Packet buffer - 512 should be more than enough
unsigned int bytes; // Number of bytes currently in buffer
};

to:

struct buffer
{
char buffer_pack[PACKET_BUFFER_SIZE]; // Packet buffer - 512 should be more than enough
unsigned int bytes; // Number of bytes currently in buffer
};

then results:

Linking...
sampleinsim.obj : error LNK2001: unresolved external symbol "public: __thiscall CInsim::CInsim(void)" (??0CInsim@@QAE@XZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: __thiscall CInsim::~CInsim(void)" (??1CInsim@@QAE@XZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: int __thiscall CInsim::isclose(void)" (?isclose@CInsim@@QAEHXZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: void * __thiscall CInsim::get_packet(void)" (?get_packet@CInsim@@QAEPAXXZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: char __thiscall CInsim:eek_packet(void)" (?peek_packet@CInsim@@QAEDXZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: int __thiscall CInsim::next_packet(void)" (?next_packet@CInsim@@QAEHXZ)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: int __thiscall CInsim::send_packet(void *)" (?send_packet@CInsim@@QAEHPAX@Z)
sampleinsim.obj : error LNK2001: unresolved external symbol "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGG
G@Z)
Debug/insim.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

insim.exe - 9 error(s), 0 warning(s)


7.LNK2001 & error LNK1120 means: You're using a Win32 application project when you want a console application project. Win32 applications expect WinMain instead of main. you have to either include the implementation file for Gui class in the dll project, or link with a *.lib file that includes it in either another dll or static library.
RES: I have start my project as console not win32 App, and i do include (Cinsim.h, insim.h, pthread.h, sched.h, libpthreadGC2.a, pthreadGC2.dll) from the options in Microsoft Visual C++ 6.0 and in Bloodshed Dev-C++ but have the same errors. All files in same folders.


I just hope someone can help me in this. thank you very much.
paparazzi
Demo licensed
hey, sorry didn't see the "Announcement" i respect. You can delete topic if need too.
Last edited by paparazzi, .
by paparazzi
paparazzi
Demo licensed
My first skin on XFG made for netikka5 pt (portuguese) server.

demostration here:
http://www.lfsforum.net/attach ... d=116052&d=1311132355
Need help to upload some great team skins
paparazzi
Demo licensed
Hi there, how are you people?

I came here to request some kinda help. I have 3 skins made by myself to upload from netikka5.pt portuguese server but unfortunately i'm only a demo racer and most of the people are only demo racers. Does anybody can upload them for me please. I will appreciate so much this kind, and be so happy thank you so much.

one picture in attach.
FGED GREDG RDFGDR GSFDG