Outdated

I was trying to import some cars, but none of them show up when imported...
When in run the game from racer_nocg.exe they do show up but the moddels are invisible and the cars are unselectable. All of them have a little bit of text that says: **car must be at least for version 090 (car is for version ****). Im using version 0.8.44.
Does anyone know what going on here and how to solve?
Thank you

-Edit: when messing around a little bit with the files i found the version in the car.ini of the car, i changed it to 090, i kin of worked. Now everything is in negative collors.
 
Hi,
yes, you have to update the car.shd file in the car folder.
The easyest way is to look how it's made by the lambo...
Thank you for your fast reply.
I looked at the files, but the original from the lambo looks completly different and I have absolutly no idea what to do. Can you tell me more specific whats the thing that has to be changed?
 
...the shader handling and code is changed...try to compare the two files...
For example a reflective shader for the car color...

This is the OLD style:

shader_gloss
{
layer0
{
map=fresnel.tga
texgen_s=sphere_map
texgen_t=sphere_map
emission=1 1 1 1
}
layer1
{
map=$trackenvmap
texgen_s=reflection_map
texgen_t=reflection_map
texgen_r=reflection_map
blendfunc=filter
}
layer2
{
map=lambobody.tga
blendfunc=one src_alpha
emission=0 0 0 1
shininess=0
specular=0 0 0 1
}
}


This is the NEW style:

;
; Lambo shaders
;

;
; Vertex/fragment shader templates
;
vf_speca
{
; Specular control using the diffuse's alpha channel
vertex_shader
{
file=dyn_standard_v.cg
}
fragment_shader
{
file=dyn_standard_speca_f.cg
}
}
vf_reflect
{
; Just reflection
vertex_shader
{
file=dyn_standard_reflect_v.cg
}
fragment_shader
{
file=dyn_standard_reflect_f.cg
}
}
vf_reflect_bump
{
; Texture+bumpmap+reflection map
vertex_shader
{
;file=dyn_standard_reflect_v.cg
;file=dyn_standard_bump_speca_v.cg
file=dyn_standard_bump_reflect_v.cg
}
fragment_shader
{
;file=dyn_standard_reflect_f.cg
;file=dyn_standard_bump_speca_f.cg
file=dyn_standard_bump_reflect_f.cg
}
}
vf_reflect_window
{
vertex_shader
{
file=dyn_standard_reflect_window_v.cg
}
fragment_shader
{
file=dyn_standard_reflect_window_f.cg
}
}
vf_standard
{
vertex_shader
{
file=dyn_standard_v.cg
}
fragment_shader
{
file=standard_f.cg
}
}
vf_bump
{
vertex_shader
{
file=dyn_standard_bump_v.cg
}
fragment_shader
{
file=dyn_standard_bump_f.cg
}
}
....
....
....

shader_gloss~vf_reflect_bump
{
compression=0
reflect=0.3
specular=1 1 1
shininess=50
; Need tangents passed while rendering
tangents=1
layer0
{
map=lambobody.tga
;blend=src_alpha one_minus_src_alpha
}
layer1
{
; Bumpmap
map=lambobody_normal.tga
; Don't convert from SRGB to linear
mode=linear
}
layer2
{
; Reflection cubemap
map=$trackenvmap
mode=linear
}
}


...ok the red parts have to match, old/new!
The green part is the new one...

Edit: grr...no color in code tag...
 
Now i know what you mean. Little problem is that there are just a few things the same in the files of my downloaded cars as in the lambo and i dont have enough knowledge about these things to fix this. I guess i just have to wait for updated files
 
No need to apologize. How on earth could you know that the codebase has changed?
Hope you take the time to learn the shader system, we need more good coders :)
to be honest with you, i have no programm skills. Im just 16 and in my last year of high school, but im going to study designing games next year, so im very interested in this.

but to get back to the topic, if i could show the car.shd to some of you, is there any chance then anyone could explain what the problem is?
 
@MmanNick Go for it. The shader looks fairly complicated but to be honest, the basics are very simple. And if you're going to be studing game design, then yes, this is a good game to have a look at :)
 

Latest News

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top