One last try for this... -1 reply

Please wait...

the_Farseer

RotM mod author

50 XP

13th August 2009

0 Uploads

194 Posts

0 Threads

#1 11 years ago

Anyone know which shader controls the reflections in water? I have been searching endlessly for what controls this function, to no avail. It really annoys me how EaW had unit and prop reflections and FoC has no reflections but the actual terrain mesh. I've tried swapping the shader files for both version and have tried swapping unit code to see if I just coded wrong...nothing works. I have just finished making new particle effects for water and having those reflections would be the final icing on the cake here. Is it something in one of the DLL's or maybe the EXE itself?

As a side note, reflections work in the map editor but only after I check the little box that toggles them on or off. If I save and exit, the reflections are off again. This isn't a graphics card issue either because I have tried this with multiple cards at max settings. I also have edited the code on EVERY UNIT so don't go there either...this is something else.

If nobody has a solution this time around, than I guess I give up. I had a little feedback in the Errors and Help section but this forum gets more traffic so we'll see what happens.




OmegaCal

XML Noobie

50 XP

4th July 2009

0 Uploads

108 Posts

0 Threads

#2 11 years ago

Found a site that explained the fx files.

The Fx Files

Not sure how good it is.




16th April 2007

0 Uploads

1,593 Posts

0 Threads

#3 11 years ago

i see you found bex's site lol

but i do not know if that will help him...

X




the_Farseer

RotM mod author

50 XP

13th August 2009

0 Uploads

194 Posts

0 Threads

#4 11 years ago

Yeah, that site is mostly on how to write shaders, it looks like. Thanks for at least responding.




zThreerOhx

Slightly cooler than a n00b

50 XP

5th September 2009

0 Uploads

40 Posts

0 Threads

#5 11 years ago

This is what controls it...

1 1

Thats from EAW code.. in FOC its

99 3

Since most mods dont use LODS and the stock game is force the game to run the models at LOD 2 or 3 simply change the FOC code back to 1.

You have to code in a LOD level for your unit/prop also.




the_Farseer

RotM mod author

50 XP

13th August 2009

0 Uploads

194 Posts

0 Threads

#6 11 years ago

zThreerOhx;5170893This is what controls it...

1 1

Thats from EAW code.. in FOC its

99 3

Since most mods dont use LODS and the stock game is force the game to run the models at LOD 2 or 3 simply change the FOC code back to 1.

You have to code in a LOD level for your unit/prop also.

I know that this code controls reflections...I have already set all the values to 1 on almost every unit and prop....still no reflections.




zThreerOhx

Slightly cooler than a n00b

50 XP

5th September 2009

0 Uploads

40 Posts

0 Threads

#7 11 years ago

Ok did some checking and took a look at the engine. Previous topics about this were wrong. Most people assume that the code for reflections is based on LOD or level of detail but its directly tied into the Graphic Details or Detail Levels 0-3. Also the EAW map edtior just renders reflections where as the FOC map editor allows you to force it with a checkbox. It appears several functions were removed for FOC default reflections being one of them. Thats why all the units use 99 as the value which is OFF. 99 will display or render no reflections. I found several units with it set to 2. Where as all EAW units were set to 1. If you compare the graphicdetails XML several Fixed Function settings were removed. Its not the shaders, its not XML, its not the map editor. It appears its the rendering fuction itself within the engine. They may have removed it over performance complaints. But allowed it to be set manually for buildings. Basically when you tear into it, its simple switch thats been toggled off. Where as in EAW it was set to on. In FOC its off. However the map editor allows you to set it manually. And thats the change. Its manual now vs. auto. Your outta luck.... for now ;)




the_Farseer

RotM mod author

50 XP

13th August 2009

0 Uploads

194 Posts

0 Threads

#8 11 years ago
zThreerOhx;5171180Ok did some checking and took a look at the engine. Previous topics about this were wrong. Most people assume that the code for reflections is based on LOD or level of detail but its directly tied into the Graphic Details or Detail Levels 0-3. Also the EAW map edtior just renders reflections where as the FOC map editor allows you to force it with a checkbox. It appears several functions were removed for FOC default reflections being one of them. Thats why all the units use 99 as the value which is OFF. 99 will display or render no reflections. I found several units with it set to 2. Where as all EAW units were set to 1. If you compare the graphicdetails XML several Fixed Function settings were removed. Its not the shaders, its not XML, its not the map editor. It appears its the rendering fuction itself within the engine. They may have removed it over performance complaints. But allowed it to be set manually for buildings. Basically when you tear into it, its simple switch thats been toggled off. Where as in EAW it was set to on. In FOC its off. However the map editor allows you to set it manually. And thats the change. Its manual now vs. auto. Your outta luck.... for now ;)

For now? and a wink to go with it?? Are you (or someone you know) planning on making a workaround for this? That would be SUPER awesome if you were. Is there a way to add those pipeline functions back in so that the game will render reflections again?




Mobius13

aka Mobby!

50 XP

17th February 2009

0 Uploads

776 Posts

0 Threads

#9 11 years ago
the_Farseer;5171942For now? and a wink to go with it?? Are you (or someone you know) planning on making a workaround for this? That would be SUPER awesome if you were. Is there a way to add those pipeline functions back in so that the game will render reflections again?

Wasn't Mike.NL working on enabling some stuff on the Map editor again? It could have something to do with the reflection properties.




the_Farseer

RotM mod author

50 XP

13th August 2009

0 Uploads

194 Posts

0 Threads

#10 11 years ago
Mobius13;5171949Wasn't Mike.NL working on enabling some stuff on the Map editor again? It could have something to do with the reflection properties.

Yeah. I did hear something about that. Hope he follows through with all that!