- Site Map >
- Modding and Creation >
- Sims 2 Creation >
- Modding Discussion >
- Research & Development >
- modding - roof - material shader modded at the roof top texture definition
- Site Map >
- Modding and Creation >
- Sims 2 Creation >
- Modding Discussion >
- Research & Development >
- modding - roof - material shader modded at the roof top texture definition
Posts: 4,403
Thanks: 10657 in 115 Posts
Added:
After comparing the roof shaders from EP0-TS2, EP2-NL, EP3-OFB, EP4-Pets,
There're only 2 versions of this shader out of the compared.
Version 1: EP0-TS2, EP2-NL, (assumedly) EP1-UNI
Version 2: EP3-OFB, EP4-Pets
I've not got EP5-SS's, so we'll see.
Copyright:
1. No redistribution of this mod outside of MTS2.
2. For lot-sharing with this mod, please link back to the original thread just in case of any updated infos and any reported unforeseen problem(s).
3. Maxis is creditted for its shader. Thanks for them.
4. Pandorasims is banned to use or host all my creations or provided infos
5. Except Pandora sims, everyone else is welcome to study, improve and refine it, and release their owns.
Installation:
Just dump the package into the downloads folder.
Compatibility:
Both versions of the original shaders or the bright and light roof mod are all compatible down to the base game and up to EP4-Pets. EP5-SS is unknown yet.
Thanks to bluetexasbonnie's feedback from that I can know it doesn't crash OFB.
The rules of the game:
This is a global mod. All default colours are affected and lightened from (0.4,0.385,0.38) to (1,1,1,0), so while using this mod and wanting the default ones or previously made customs to show up right, do the ratio math for the colourational changes accordingly. May prepare two sets for those without a roof shader mod.
Note:
I have altered the highlight before, but it doesn't look as good while a "mutation" at the roof top diffusion coefficients is sufficient. I'm unsure if transparent roof is possible, so feel free to try it out.
I was wrong to think that the roof high-light had such power to affect the look that much. But it happened to have the same value as the roof top.
http://www.modthesims2.com/showpost...79&postcount=64
http://www.modthesims2.com/showpost...13&postcount=66
Added:
transparency (with the suffix "-trans") and reflection map (with the suffix "-reflect" or "ag") are possible. Use only one mod at a time.
However, it can be challenging to do the roof recolouring for them to show up right or it's necessary to alter some more settings for them work out nicely.
Remember, these two mods are underdeveloped.
Just some chosen feedbacks from here :
A global mod offered with some premade roofs would be awesome for those wintery neighbourhoods...and if one gets tired of winter one can simply remove it... |
There is a small problem with the octagonal roofs from OFB. In the build mode they have some undefined areas along the ridges. These disappear in live mode and in camera mode. Roof looks fine from neighborhood. Overall, the roof mod looks fine. Here is a picture of several rooves in build mode. You can see the problem on the octagonal ones. Though not pictured, the conic rooves are fine too. |
I'll remove that Creator Feedback Forum thread once I've got the reply to my quest, and move the reply here.
The bright light roof mod is out here
For the roof shader sources: the wiki has them.
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
Related thread linkage for roof-products modding:
lot files
http://www.sims2wiki.info/wiki.php?title=ROOF
http://www.sims2wiki.info/wiki.php?title=3ARY
http://www.sims2wiki.info/wiki.php?title=WGRA
attic wall
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
shaders
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
http://www.sims2wiki.info/wiki.php?...Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?...lk:ShaderWallPS
threads
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development
Roofs > Roofs - Engine-Generated Geometry (Maxis Roofs)
http://www.modthesims.info/showthread.php?t=318988
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development > modding - roof - material shader modded at the roof top texture definition
http://www.modthesims2.com/showthread.php?t=192699
Mod the Sims 2 > Social > Social Groups > Moo Tools > Roof Pitch Adjuster
http://www.modthesims.info/showthread.php?t=328329
Mod The Sims > Modding and Creation > Sims 2 Creation > Modding Discussion > How Do I Change The Defoult Roof Colors?
http://www.modthesims.info/showthread.php?t=225532
tutorials
Recolouring Roofs with Object Workshop (NEW Tutorial)
http://www.modthesims.info/showthread.php?t=103082
Moi_iroof-shader-modded-trans.rar (1.0 KB, 108 downloads) | ||||||||||
Moi_bild_roof_grey-trans.rar (63.0 KB, 92 downloads) | ||||||||||
Moi_iroof-shader-modded-trans-reflect.rar (1.1 KB, 104 downloads) | ||||||||||
Moi_shaderRoof_ColourationFull.rar (4.2 KB, 50 downloads) - View custom content | ||||||||||
Size Packed Ratio Date Time Attr CRC Meth Ver ------------------------------------------------------------------------------- Moi_shaderRoof_ColourationFull.package 3415 3153 92% 02-03-07 02:01 .....A. 7DAA8A1D m5e 2.9 ------------------------------------------------------------------------------- 1 3415 3153 92% |
Thanks
Posts: 658
Thanks: 37871 in 37 Posts
hexameter
Posts: 1,167
xo
Rhondalatte's Custom CAS screens: http://blackpearlsims.com/ (formerly known as Reflex forum)
DeesElegantDecor - Beautiful furnishings:
http://games.groups.yahoo.com/group/DeesElegantDecor/
With
Without
The 'blue' only shows up in the build mode. It is not present in live or camera mode. So if someone really likes the mod, this is no reason not to use it. This does not show up where it really matters.
Intellectually, it is rather interesting that the graphics presentation/management is different in build and the other modes.
Posts: 4,403
Thanks: 10657 in 115 Posts
A jar of virtual literal flowers that will blossom in the colour(s) of your like...
Thanks...
Posts: 11,682
Thanks: 9675 in 11 Posts
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
Yes, you're right.
The floor tiles are based on grid layers while the roof is separate from it. In the partition thread, roof by the roof tool is yet another roof walls extend to.
VerticalSpan. Accepted values are: "floorToFloor", "floorToRoof", "fixedHeight", "floorToFloorBasedCeiling". |
odding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
Posts: 11,682
Thanks: 9675 in 11 Posts
Trouble is this still won't help for the skylights because the pattern repeats all over the roof, so you would have to have a skylight all over it.
What I thought might be useful however is to use an invisible roof all over the house - which would deal with the weather issue, and then to make from rugs roof sections for the cosmetic effect. Then the skylight can be made in the same fashion but it would become a light source in the daytime.
Do you want to see my shader?
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
But a null roof shader is ringing in my ears for customly made roofs. Good idea...
Anyway, a custom skylight should have a windowsill mesh for the whole window frame.
Then, it comes the tricky part, the glass should be mapped for each side once. The external side of the glass will have material layer higher than the roofTop but lower than the snow, so it's gonna use layer=1.
As for the inner side of the glass, It's gonna be the same layer, layer 0.
This is to avoid the front with a higher layer gets drawn at the back of the roof.
However, if a roof mask can be made by means of a different combination of alpha-blending as in the wallmask case. It may work better.
As for the rug-approach as in BB's in the Ranchies, I think that'll work.
May + the spot light into the cres and probably reuse the streetlight shrine to simulate the scene.
Posts: 11,682
Thanks: 9675 in 11 Posts
I replied to the thread in the ranch with what I think is a better idea.
ijRoofShaderBV.zip (4.6 KB, 19 downloads) - View custom content | ||||||||||
33845 10-29-07 17:49 ijRoofShaderBV.package -------- ------- 33845 1 file |
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
After all, in this case, the skylight can be just some objects with preset heights to place on roof level.
lol, just revised my last post and added the wiki link at the end of the 1st post for various versions of this shader....
Posts: 11,682
Thanks: 9675 in 11 Posts
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
so, you just turn off only the blend mode in your version?
WEll, make it a ceiling light then... ?
Posts: 11,682
Thanks: 9675 in 11 Posts
I think there is a better future for skylights than being ceiling lights, I think we can make them proper windows...
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
If as you say to use the invisible roof shader, then, just use floor tiles and maxis rugs to accomplish the such alternative. Maxis rugs appear to reuse the floor grid layer, they can get deformed along with the floor. maxis rug + windows.
Posts: 11,682
Thanks: 9675 in 11 Posts
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
Nah, sorry for my poor massage, I didn't want to mean you might use panel to build the whole roof but just the skylight object.
Probably, a layer of invisible floor tile can avoid the snow being on the floor, but the snow may be on the invisible floor.. :D
If the object mesh won't go with the floor elevation, but it is at least thick enough to cover up for a certain roof angle range?
Posts: 11,682
Thanks: 9675 in 11 Posts
The idea of the invisible floor below catching the snow did work, but like you say, then there was snow weirdly hanging over the room in a square.
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
I did make the object really enormous to make sure it covered the roof hole, but the game would not accept it was covering the hole. The idea of the invisible floor below catching the snow did work, but like you say, then there was snow weirdly hanging over the room in a square. |
I think there should be no gap or a hole at all, and let the skylight to merge with the roof to create the illusion done by the skylight mask-up that means the skylight has to be drawn over the roof graphically. I think just keep the skylight frame as the same layer as the roof, and that's already sufficient.
What may be really challenging here is how the glass does its transparency. A special material to overwrite the roof is necessary to create the illusion as in a wallmask case though this can be a "roof-mask" case. So, it can take some works on analysing the wallmask and roof materials in order to make a "roof-mask" material to do the same art. Also, how wallmask functions in terms of its file structure and its values will become the key to design the glass part. So, windows as the object base sounds more promising to me.
Of course, if the glass overlapping the roof can already create a transparency we'd like to see, much less work. :D
But, if there can be a graphically-nullifying roof container specifically defined for the roof. The skylight gap can probably be covered by a roof piece at the upper level, in which the roof is graphically silenced by the roof container. This only works when the graphical effect solely counts on the a 2D occupancy. Gonna have it tested out to know this answer and more. But if the room would be considered not closed, an invisible floor layer can close it while the graphical has already been taken care of. So, just a couple of tests to do
I'm gonna try to finish my update on the neighbourhood mods first and clear up my room more before this. Too many things to at the moment. :D
Posts: 11,682
Thanks: 9675 in 11 Posts
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Posts: 4,403
Thanks: 10657 in 115 Posts
I'm testing on roofs for shrunk lots, but my roof won't poke through to the trimmed regions.
So, the masking should be vertical in shape vertically counted by the floor grid?
Posts: 11,682
Thanks: 9675 in 11 Posts
So, the masking should be vertical in shape vertically counted by the floor grid? |
Horizontal, I would have said. Dead on the gridlines - it ignores any overhang. It's obviously that way so that it will line up with the walls in a dormer roof, or in a lower room if you have roofs on different levels.
Added a few hours later to save double posting: I have just noticed something bizarre - semi-transparent floors don't get snow on them if there is an object standing on them! This has certainly made the idea of a skylight cloned from a lamp feasible, as compared to a mask-out in the roof - at least for those situations where there is enough headroom in the room to create an invisible ceiling. I have made one out of a two-tile lamp (it has to be two tiles wide with the non-masking method) and I should be able to move the light joints down to light up both the above-ceiling space and the room itself which of course would be on the level below.
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Who Posted
|