VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

Forum

Questions, builds, help and the odd argument. The mods and guides are out front.

Notifications
Clear all

Amilmand WIP

526 Posts
57 Users
0 Reactions
282.9 K Views
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

This is the first I hear of it how did it happen?

Added 10 minutes later:

Aaand also how did you lose all the progress? The game should autosave when you go out to races or to the dealers.
(if it crashed during saving your cars should be in the save/temp directory and the main file should be intact in the original save/carrer/<profile name>)



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

I updated the links under the SlrrExhaustive Bits
and also the patchlink for SlrrExhaustive (LINK)
There is a new option (DynamicReflection_HaltAfterFirstReflectingSurface) which if active saves the backbuffer before the first object is drawn in the scene with reflection enabled and uses that as the environment map this solves the self reflection but it is a bigger "cut" it makes so the things with reflection do not get reflected this includes other cars aswell:

With DynamicReflection_HaltAfterFirstReflectingSurface == 0

With DynamicReflection_HaltAfterFirstReflectingSurface == 1

Added 17 minutes later:

Additionally the reflected picture will not have the reshade effects on it (you can see the trees are not blurred by the DoF on the top left corner of the gray car in the second picture)



   
ReplyQuote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Is there a way to make reflections trigger by reflection maps and not specular? On some cars you can find perfect glossy interiors



   
ReplyQuote
Hinata23
(@hinata23_3498)
Prominent Member
Joined: 14 years ago
Posts: 748
 

# amilmand :
This is the first I hear of it how did it happen?

Added 10 minutes later:

Aaand also how did you lose all the progress? The game should autosave when you go out to races or to the dealers.
(if it crashed during saving your cars should be in the save/temp directory and the main file should be intact in the original save/carrer/<profile name>)

It happened when I was about to face the 20th position of the Green Slip club. My problem was that I was still in my very first session of night races after doing tons of daytime races. I think it didn't save because I haven't been to the garage once while battling my way to 20th. Error log only sad "Invalid wear!".

Also, what ALAN said, it's kind of annoying. It'd be nice if we could have different reflection maps to choose from. And the screenspace reflections make it look super weird, when things mirror on the car that could never possible be mirrored in that place.

Another thing I came to think about while playing was, that I'd love to add other cars and remove some that are there already, but it doesn't really work because of the prices (most cars I thought about adding are way too cheap in the catalog/showroom compared to the rest of the game due to the part prices).

Though I gotta say this is really fun to play, and pretty much the first version of SLRR that made me enjoy doing the campaign!



   
ReplyQuote
doge
 doge
(@doge_11104)
Famed Member
Joined: 12 years ago
Posts: 3360
 

These reflections actaully look much better than before and much more realistic
i'm not happy with mxao tho, looks too dark and in wrong places, i tried adjusting it but it did no good



   
ReplyQuote
gorgoil
(@gorgoil_3248)
Member Moderator
Joined: 14 years ago
Posts: 219
 

# amilmand :
I see, well I see two ways you can implement that for the hackish way you can approximate the box with some smaller triggers with smaller radius (replacing the faces of the box maybe) but this sounds very hackish I would only consider this because multithreading in slrr is very very (very very) dangerous and can easily result in silent crashes,
the other would involve manually checking each like 5 frames (from another script thread) whether the car is in an arbitrary 3D box, your best bet in this case is defining the box in terms of its width height and depth and also two transformations a translation and a YawPitchRoll if you have the box like that you can inverse transform the point(with built in functions Vector3.rotate) you want to check (you will get the point in the boxes space(where the box is centered in (0,0,0) and its rotation is (0,0,0))) and you can use the trivial axisaligned origin centered box case (6 conditionals (whether its x < width/2 && x > -width/2 ... )))

Added 22 minutes later:

That check would look something like this: (I didnt test this thou)
pre
Mind you the point above we give as the position of the box is its center.

Wow thanks, but how do I implement it on trigger?



   
ReplyQuote
JF1
 JF1
(@jf1_12736)
Noble Member
Joined: 12 years ago
Posts: 1166
 

doge, set the AO to 1 or 2, it provides a very subtle amount.



   
ReplyQuote
doge
 doge
(@doge_11104)
Famed Member
Joined: 12 years ago
Posts: 3360
 

tried still not as it should be



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

# amilmand :
Can you give me the textures aswell? It seems I need to test this ingame.

I gave a look at the merged SCX and the original one, i think i can tell that it is not reindexing the textures in the file itself, so they just load in the same order as they used to be originally, without following the new loading order.

But i may be wrong, so yeah, check it yourself too.



   
ReplyQuote
DHR
 DHR
(@dhr_10843)
Reputable Member
Joined: 12 years ago
Posts: 349
 

Might be a bit off topic, but since someone very informed and with the knowledge is here, could I ask you @amilmand , since I never finished my traffic mod, how could I make the fake racers and traffic spawn in random colors instead of just one? It always bugged me and reduced the variety of Valo. I asked around everywhere years ago and never found out.



   
ReplyQuote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

What if we replaced fake racers with cars/racers cars?



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

The game would blow up



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  
Bigg Boss93 wrote

[..] not reindexing [..]

It should thou but I will look into it tonight.

gorgoil wrote

[..]how do I implement it on trigger?

It wouldnt be a trigger those are coded in the core exe (It would be way too hard to modify that behaviour)
You would have to create a new class that implements the Runnable interface (in java) and run a new thread that checks with the function I posted whether a checkpoint is triggered and then notify your Track script of the event with a function call.
Take a look at the VelocityVisualMeter.java in SlrrExhaustive.

ALAN wrote

[..]glossy interiors

Explore the customisation options more. You can set the ReflectionStrengthOverride to 0 and you would get... well, the original reflection strength that is set in the .scx
It is triggered by reflection map only the objects which have an environment map set, will get their environment map overwritten.

Hinata23 wrote

[..]reflections make it look super weird

Again you can always disable the whole reflection thing and enjoy the original method.

Hinata23 wrote

[]..add other cars[..]

How do you mean(or where)? I thought you ment as in new mods but the comment about prices made me unsure.

Hinata23 wrote

Error log only sad "Invalid wear!"

Well this means what is says one of the parts somewhere had an invalid wear (a negative number) I'm surprised thou that the engine cant handle this (this either...)... I looked into the disassembly and this error can be reported(and all of them terminates the game immediately) at like 30 places they must have thought this to be a serious issue for some reason... I really dont know why thou... just fix the wear I mean get the abs of it..
I will look into fixing this in the next update.

I added another option to the reflection part of reshade and updated the relevant links (SlrrExhaustive Bits SlrrExhaustive Patch Link)
It adds the ability to blur the dynamic environment map:

Hinata23 wrote

[..]reflection maps to choose from[..]

I also added the ability to select a predefined environment map, the textures are located at reshadeFx\Textures\env_maps\
you can replace these files BUT! you have to update the texture definitions in the ReflectionSettings.fx to match the changes (resolution and/or format)
please stick to the .png fileformat. The predefined environment maps can not be blurred.

DHR wrote

[..]traffic spawn in random colors[..]

This is tricky:
Firstly the texture you are using for the chassis of a traffic car must have transparency the "color" will be painted under the diffuse texture secondly I think this automatic random coloring only works with version 4 scx files also your mesh should be paintable but not like the car-parts thou it must define a second layer in its diffuse map (the diffuse should be a mix-map in 3dsmax) this second layer should be the diffuse texture the game will overwrite the first one with the color so that should remain empty.
Thirdly the renderRef definition in the rpk should have the flags set to "flags 459400.000" and the cfg line of the traffic car:

colors		16 0x00EEB621 0x00E3E3E3...

defines the colors (its ARGB) the first number is the number of colors defined on the line.
Also if you want the traffic car to have multiple parts (flopping doors) those should be attached with a stockpart line in the cfg.

Added 52 minutes later:

Amilmand wrote

It should thou but I will look into it tonight.

I dont see a difference if I only add one model to the game or if I merge them I think the program is working as it should
Thou your shadow maps are not as you intended them I think; the alpha channel looks like this for the lr_smod_toolchest9_SM.tga

This suggests you saved it with 1bit alpha (a pixel is either visible or not) you want the inverse of the actual shadow map as the alpha channel in 8bits
if you update the shadow maps it should be good.



   
ReplyQuote
Hinata23
(@hinata23_3498)
Prominent Member
Joined: 14 years ago
Posts: 748
 

Just found out how to remove the reflections, sorry ^^'

By adding other cars I meant that I was thinking about adding other cars to thr game, but I am not able to adjust the prices of each single part according to the cars that are there already



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

Ugh what, those shadowmaps just work right if i dont merge the meshes... wtf? 😃

Added 10 minutes later:

# Bigg Boss93 :

this is what it looks until i merge the stuff(mind this is missing the render meshes, so all the colored stuff around)



   
ReplyQuote
Page 5 / 36
Share: