Environment/Reflection is White in MaterialEditor!

Technical questions, etc..
zzador
Petty Officer Second Class
Posts: 29
Joined: 06 Sep 2019, 08:47
Type the number ten into the box: 10

Environment/Reflection is White in MaterialEditor!

Post by zzador »

Hello everybody,

I'm using an old TrueSpace 4.3 and recently I noticed that in the Material Editor every reflective material reflects a non-existant white background which is a littlebit irritating. I remember vaguely that there must be a special environment texture with a special filename at a special location so that trueSpace will take that automatically for reflected environment in the material editor.

Does someone here know what the filename and location is, or do I remember that completely wrong?
I've seen things, you people wouldn't believe...
the rise & fall of MS-DOS. The birth of Windows 3.11. Professional 3D Software getting usable in the late 90s and getting unusable again around 2010. Telephones with a dial and so much more...
User avatar
borgcone
Chief Petty Officer
Posts: 115
Joined: 06 May 2018, 21:09
Type the number ten into the box: 10
Location: Japan, or sometimes behind a borg cube

Re: Environment/Reflection is White in MaterialEditor!

Post by borgcone »

I don't have any solution and am not sure at all.
- Isn't any custom shader interfering with reflectance shaders?
- Isn't any file path specified in tS (e.g. menu "File" - "Preference") interfering with reflectance shaders?
- Does the LWORKS.TSR file have an original (i.e. obviously old) updated-date?
- Isn't there any hint in the LWORKS.TSR file?
- Re-installing tS?

I just experimented renaming LWORKS.TSR to others, and realized that the name list of each shaders is out of the file. I don't know where the list is.

You might get additional information if you show some screen shots of the Material Editor.
borgcone ... or 3DfromNULL at https://biglode.com/ptsxpy
User avatar
spacekdet
Captain
Posts: 1799
Joined: 27 May 2009, 15:00
Type the number ten into the box: 10
Location: On the day shift at the Utility Muffin Research Kitchen
Contact:

Re: Environment/Reflection is White in MaterialEditor!

Post by spacekdet »

What does it do if you add a skydome object over the entire scene? The reflective object needs something to reflect...
I seem to remember only the ?environment map? shader had an assignable image (maybe-it's been a long time since 4.3!)
Probably accessed via right click on Reflectance preview sphere.
You also need to enable raytracing in the scene and light options and render scene rather than just the object.
Included scans of manual page.
Reflec_01.jpg
...
reflec_02.jpg
zzador
Petty Officer Second Class
Posts: 29
Joined: 06 Sep 2019, 08:47
Type the number ten into the box: 10

Re: Environment/Reflection is White in MaterialEditor!

Post by zzador »

Oh. Thanks. So it is defacto default that white is reflected by mirror shaders in the material editor. Then my memory has failed me here. Might have gotten confused with the environment shader here. Sorry for the trouble.
I've seen things, you people wouldn't believe...
the rise & fall of MS-DOS. The birth of Windows 3.11. Professional 3D Software getting usable in the late 90s and getting unusable again around 2010. Telephones with a dial and so much more...
User avatar
spacekdet
Captain
Posts: 1799
Joined: 27 May 2009, 15:00
Type the number ten into the box: 10
Location: On the day shift at the Utility Muffin Research Kitchen
Contact:

Re: Environment/Reflection is White in MaterialEditor!

Post by spacekdet »

It may be reflecting background color- is that set to white?
User avatar
bitkar
Captain
Posts: 1967
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic
Contact:

Re: Environment/Reflection is White in MaterialEditor!

Post by bitkar »

ehm... in material editor? why does it bother you? Just set the material to someting that makes sense in light and physics and paint the object. You can use small window to test render or use area render to see how it looks like. I would not be worried by material editor. If there are reflections, there must be something to reflect there. In the scene it will reflect things from the scene.
I dont understand or I dont see the problem
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
zzador
Petty Officer Second Class
Posts: 29
Joined: 06 Sep 2019, 08:47
Type the number ten into the box: 10

Re: Environment/Reflection is White in MaterialEditor!

Post by zzador »

spacekdet wrote: 07 Apr 2022, 00:51 It may be reflecting background color- is that set to white?
No, changing the background color in the render settings makes no difference. All raytraced reflections are pure white in the material editor regardless of any settings. Surely Environmentmaps are displayed but who uses Environmentmaps today anyways.
bitkar wrote: 07 Apr 2022, 13:35 ehm... in material editor? why does it bother you? Just set the material to someting that makes sense in light and physics and paint the object. You can use small window to test render or use area render to see how it looks like. I would not be worried by material editor. If there are reflections, there must be something to reflect there. In the scene it will reflect things from the scene.
I dont understand or I dont see the problem
Im currently working on a custom shader collection for tS4.3 that uses path-tracing to solve the rendering equation (Global Illumination shaders). The shaders are computationally too expensive to test them directly in the scene. Besides that I would'nt have interactive response to parameter-changes done in the material-dialog.

So far the shaders are working fine. It just bothered me that for the metal shader with soft-reflections the reflections can't be seen in the material editor preview cause the environment there is just pure white. I thought there might be a way to change that.

Here is an example image of the diffuse shader (Rendered with local light and high sharpness shadowmap):

Image
Last edited by zzador on 07 Apr 2022, 14:24, edited 1 time in total.
I've seen things, you people wouldn't believe...
the rise & fall of MS-DOS. The birth of Windows 3.11. Professional 3D Software getting usable in the late 90s and getting unusable again around 2010. Telephones with a dial and so much more...
User avatar
spacekdet
Captain
Posts: 1799
Joined: 27 May 2009, 15:00
Type the number ten into the box: 10
Location: On the day shift at the Utility Muffin Research Kitchen
Contact:

Re: Environment/Reflection is White in MaterialEditor!

Post by spacekdet »

bitkar wrote: 07 Apr 2022, 13:35 ehm... in material editor?
Oh, I need to read more slowly.
Yes, view of material in the material editor doesn't always match what gets rendered.
To the OP: but how does it render? When you render the scene or area do reflections show up?
If so then I wouldn't stress about how the preview sphere in the editor appears.
The reflection attributes of the shader takes the background color or image into account to create reflections, of course along with other objects in the scene. It isn't generated in the preview, only in the render.
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Environment/Reflection is White in MaterialEditor!

Post by trueBlue »

Does tS4.3 have a Post Process Editor?
Post Process Editor.png
zzador
Petty Officer Second Class
Posts: 29
Joined: 06 Sep 2019, 08:47
Type the number ten into the box: 10

Re: Environment/Reflection is White in MaterialEditor!

Post by zzador »

trueBlue wrote: 07 Apr 2022, 18:26 Does tS4.3 have a Post Process Editor?
Post Process Editor.png
Nice try, trueBlue...nice try. :lol: ;)

My heart beats for tS4.3 and there's no way around.
I've seen things, you people wouldn't believe...
the rise & fall of MS-DOS. The birth of Windows 3.11. Professional 3D Software getting usable in the late 90s and getting unusable again around 2010. Telephones with a dial and so much more...
Post Reply