3rd Party Models/Media Chat / Blender - How to Glass Question

Author
Message
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 30th Mar 2016 12:12
Hey all.

So I am working on a model and wanted to add glass.

Now I have read all the posts with regard to glass using the search feature, have watched a few blender tuts on creating glass, and messed around with trying to make a simple cube transparent - but like others before me just getting a black object in test game.

I was under the impression that to make glass you just use the alpha in like photoshop on the part of the texture to be glass, and export using .dds with transparency (DXT5). I have tried adding transparency material to the cube but all to no avail.

I know this is a much talked about subject, so sorry to drag up this kind of question again. Obviously I am missing something, but my head is getting bruised from the hit the wall routine, so just wondering if someone can point out if there is something else I need to do in the model itself.

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 30th Mar 2016 12:27 Edited at: 30th Mar 2016 23:22
Have you added ..

Transparency = 5

to the fpe?

That's the setting Lee recommended a while back.

When making the model in Blender, you don't have to do anything to make it transparent in Blender itself, in fact I've found that if you try to make it transparent in Blender it can mess it up.

Remember though, if you are making a glass area inside a solid object, for example a window in a house, make sure the glass is the last piece you add to the model and the FPE has notanoccluder = 1 (might be spelt wrong at work so cant check), otherwise when you light map the glass will occlude any part of the model that is behind them and they will become invisible when seen through the glass.

What I do when making glass is to create the UV's and textures in GIMP as usual and then create a layer with an Alpha (white full transparency) mask with Alpha at around 40% for the "glass" texture, then export it as .dds DXT5 and in the FPE add Transparency = 5.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 30th Mar 2016 14:29
Hi Belidos, thanks for the info. There are several suggestions for the FPE in the various post I read - I tried 3 and 6 - will give 5 a shot.

So am I right that for say a window it would have two panels - one for each side. Or should I be using a plane?

Thanks for your input

Reliquia...
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 30th Mar 2016 14:34 Edited at: 30th Mar 2016 14:34
Well, as far as i know GameGuru only renders one side of a plane, so you would need two planes back to back if I remember correctly.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 30th Mar 2016 20:00
You don't need a plane - you can make a box, and as long as all the surfaces have the same transparent texture, it will look like a window.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 30th Mar 2016 22:28 Edited at: 30th Mar 2016 22:37
Or you could put 'cullmode = 1' in the fpe to force the plane double sided. Maybe not ideal when only a small part of the model is planes but does no harm to know that GG can render both sides of a plane if told to.
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 1st May 2016 16:09
I had nothing but problems putting glass inside a building, I made a shop building with a glass front and internal office with glazed window and door and getting all the glass to behave with a single set of settings was proving very hard, if the front external glass worked the internal glass would occlude the rest of the building and vice versa, I ended up moving the glass sections to a new layer in blender and exporting as a single model, only then would the internal and external glass work correct and not occlude parts of the building behind it
PM

Login to post a reply

Server time is: 2024-11-22 09:02:17
Your offset time is: 2024-11-22 09:02:17