Product Chat / Entity Cubealpha

Author
Message
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 3rd Mar 2018 18:46
ok so I'm having some trouble understanding cubemapped objects. I have a glass-pane object and no matter what I do with the cubemap (replace/edit it) it will stop working. the only cubemap it will reflect is the default sci fi room one. Can anyone help? doing anything to that cubemap or replacing it will make the object stop reflecting anything.

granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 3rd Mar 2018 19:06
Found this Bugsy ,might help

https://forum.game-guru.com/thread/217387

Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 3rd Mar 2018 21:50
I believe you may be having issues do to the naming of the layers in your cube map. they must be named as the example pictures in the thread referenced above.

If you are still having issues, then you can email the stuff to me and I will take a look at it.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 3rd Mar 2018 23:09
so just to sum it up
my cubemap MUST BE 6 layers
my cubemap layers MUST BE NAMED:
main surface (positive x)
main surface (negative x)
main surface (positive y)
main surface (negative y)
main surface (positive z)
main surface (negative z)
and my diffuse must have an alpha channel and be a dxt3

what does my cubemap need to be? does it need an alpha channel?

also: this is in 5/12 gameguru not the preview.
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 4th Mar 2018 04:48
Cubemaps do not need alpha channel.
For the diffuse texture, might want to try dxt5 compression.

Yes I figured you where using the 5/12 version as the dx11 public preview works a bit different now.

Let me know if you still have issues with it.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 9th Mar 2018 08:19
diffuse doesnt seem to matter, the only issue is when I change the cubemap at all. when I open the cubemap in photoshop, this is what I see, not what you have shown me from GIMP

granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 9th Mar 2018 08:32
Bugsy take a look at this

https://www.google.co.uk/search?q=cube+map+shape&ie=UTF-8&oe=UTF-8&hl=en-gb&client=safari#imgrc=o3WK4avUP4-8zM:

Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 9th Mar 2018 12:43 Edited at: 9th Mar 2018 13:34
I just opened one in Photoshop, I see what your talking about. Very different from GIMP.
GIMP reads the cube map different I see and puts it on 6 layers instead of one.
Will have to investigate for you more.

Edit:
ok, think I may have an answer for you using the Nvidia dds plugin in Photoshop.

Open your cubemap image, replace the images you need.
Save as .dds format.
When the plugin window opens, select dxt1 format.
Cubemap under the dropdown.
Press the normal map setting and uncheck the convert to tangent space normal option.
Press ok.
Under Image Options, choose color map.
Press Ok.
Press save.

It saves the cubemap in a color format.
Test In Game Guru.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bolt Action Gaming
GameGuru Tool Maker
10
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 9th Mar 2018 19:47
Stupid question here - is a cubemap just a 3-d faked reflection that's not ACTUALLY reflecting anything but a pre-made cube-shaped texture?

Thanks
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 9th Mar 2018 20:02 Edited at: 12th Mar 2018 07:12
From as it appears on my maps it just pulls from a skybox image and terrain. I've not tested changing up the skybox while looking at these entities to see if it actually grabs the current skybox or just a generic one.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 9th Mar 2018 20:47
Where the public preview is now, is that the PBR reflections are created from the current skybox and terrain.
Great for outside, but not inside stuff, as you would expect to see the reflection of what was around you when looking at it.

Using the _cube map with your objects, allows you to create your own cube map from what is with in your area.
Take 6 screen shots and arrange them in the proper direction. This works with PBR and Non PBR shaders
(Dont forget that reflections are reversed, so some experimentation will be required)

Gimp was pretty straight forward with its cubemap feature in the .dds plug in, Nvidia in Photoshop, I tried a few ways before I got it.

It is a bit more work, and Reflection probes would solve this when and if they can be added in at some time. Preben has done a wonderful job with the shaders so far. But for people with sharp eyes to detail, This can be a nice effect and believable.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 12th Mar 2018 02:22 Edited at: 12th Mar 2018 02:29
[sub]
Quote: "is a cubemap just a 3-d faked reflection that's not ACTUALLY reflecting anything but a pre-made cube-shaped"


yes

Quote: "
ok, think I may have an answer for you using the Nvidia dds plugin in Photoshop.

Open your cubemap image, replace the images you need.
Save as .dds format.
When the plugin window opens, select dxt1 format.
Cubemap under the dropdown.
Press the normal map setting and uncheck the convert to tangent space normal option.
Press ok.
Under Image Options, choose color map.
Press Ok.
Press save.

It saves the cubemap in a color format.
Test In Game Guru."


will try and let u know
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 12th Mar 2018 02:50
thanks for the help pyratemyke!!!!! that was what i needed, my cubemap is working now.
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 12th Mar 2018 03:41
more reasons why the site/forum needs tutorials section.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Mar 2018 04:10
My pleasure.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 12th Mar 2018 05:58
Awesome! Post us a screenshot!
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 16th Mar 2018 00:58
okay: incoming post and soon accompanying screenshots. This is another question.

What controls the level of cubemap emission on the entitycubealpha shader? I ask because the "shiny skull" mesh appears to be totally reflective all over but the specular map alpha channel (which I was assuming controlled the cubemap emission-level) seems to have no effect on whether the cubemap reflects on that part of the texture.

example:
specular map for default cubemapped object "shiny skull"


specular map for my cubemapped glass object


however this is how these objects look in game: the cubemap reflects the same on the whole object, when the shader name/pictures of the spec maps here indicate that they would be more reflective in crackles on the skull and more reflective towards the bottom of the glass. this doesn't appear to be the case however.



thoughts? advice?
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 16th Mar 2018 05:15
https://forum.game-guru.com/thread/217589#msg2573923

See if this link can help. Been a while since I messed with those shaders as they were for dx9 version of game guru.

entity_cube.fx - will apply the _cube.dds to the whole model, irrespective of alpha in the diffuse (i.e. the transparency channel). So if you have a model with transparent parts of the diffuse and opaque parts - this shader will apply the _CUBE.dds across the entire model. This works with entity settings on high, and adjust the global specular slider too.

entity_cubealpha.fx - will apply the _cube.dds to ONLY the transparent parts of the diffuse, so if you have a car that has a _D.dds diffuse with windows that are transparent and the body work isn't, it will apply the _CUBE.dds only across the windows (the transparent parts of the diffuse).

entity_cubeambience.fx - is designed by default for shiny objects, mirrors, very reflective objects - this is what will occur if you have no transparency in the diffuse and use this shader. It will apply the _cube.dds to all of the model based on the alpha values of the diffuse. So for a _D with no transparency across any of it (which is usual), you will get a highly reflective mirrored surface across the entire model. If you adjust the alpha (increase transparency) across some or parts of the diffuse, these parts will become less reflective and will not show the _CUBE.dds on those parts so much. However, alpha/transparency in the diffuse for this shader is used ONLY to mask the cube reflectivity and will not allow transparency in game - so a model with windows will not be able to be seen through in game.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 16th Mar 2018 14:28 Edited at: 16th Mar 2018 14:33
Hi Bugsy.

Just so you dont waste time , but you do know we have custom cube maps for PBR ? , it is more easy to control reflection using standard PBR metalness and gloss.

in the screenshot some object use the default environment reflection and some custom cube maps.

Subscribe and checkout great GameGuru/AGK video's here: Videos click here
Latest GameGuru Loader news: News click here
Get GameGuru Loader PBR version here: Steam click here
best regards Preben Eriksen,

Attachments

Login to view attachments
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Mar 2018 17:13
Quote: "but you do know we have custom cube maps for PBR ? "


No i didn't, please explain, more in-depth, what we need to do this?

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 16th Mar 2018 21:04
Quote: "
Just so you dont waste time , but you do know we have custom cube maps for PBR ? , it is more easy to control reflection using standard PBR metalness and gloss."


not a waste of time to me! I have no plans on touching the public preview until I am certain that it outperforms and "outcompiles-a-completed-game" better than my current gameguru build (may12/17) in every possible way, bar none. As far as I know, LIGHTING just got working in the PP, and I am not about to work with a game engine that is incapable of even static lightmapping.

I also have heard numerous reports that the performance on The Big Escape with PBR mode enabled is less than half of what it was in DX9 gameguru.

Performance is VERY important to me. I will painstakingly generate a million cubemaps if it means people playing my game get 75 fps instead of 40. Once somebody releases a decent looking GG game with PBR override on that can run at a decent frame rate consistently on my computer, I'll consider looking at upgrading to the DX11 PBR gameguru, but not until then. I just have not seen enough good consistent evidence that the public preview of gameguru is in any way ready to have a game made with it, as the current release version that I use is just so barely capable of producing one

either way, please explain how this will work in the next version! All I have seen from gameguru's current PBR capabilities from tbone is what appears to be a local cubemap that completely ignores all surrounding media/lights except terrain and sky.

@piratemyke!
THANK YOU!!!!!!! I Will have to use cubeambience then. I'll try it with a simple building and see just how good i can get at making alpha channels for cubemap emission's sake. Maybe with enough time I'll produce games in X9 GG that look better than what PBR can eek out! who knows?

Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 16th Mar 2018 21:07
I know this is the big cubemapping thread and all but I'd just like to note that other than chrome, polished marble floors or glass there is little regular use for the feature. Most other regular metallic items would be better suited with a beefy specular map.



-Wolf
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 17th Mar 2018 03:11
You are welcome Bugsy.
I can understand why you stay with the version you are at for performance of what you have created already. Making cubemaps is tedious, but it will show the dedication to your craft as a game maker to make it look great.

@ Wolf, you are correct, there are few things in nature that require this kind of detail, but they sure do look great when the brain can absorb the details of ones surroundings, and nothing stands out as sour to the eye to look at. So using the new PBR is a matter of choosing your assets and effects wisely for what you are trying to accomplish.

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 17th Mar 2018 03:25
I'm sure ill use it when it's in a state applicable for public release but i dont want to mess up all i've worked for to do it before.

until then, i'll go with what I know. I'm really glad to know I should be using cubeambience. maybe I can make some cool buildings with reflective windows in all one piece now!

@preben
PLEASE ELABORATE on the next version of GG's local cubemap making abilities

@wolf
CHROME, marble floors, mirrors, reflections in general. It's high time I got that figured out so I can make a game that in the screenshots people think is actually quality
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 17th Mar 2018 14:57
Quote: "No i didn't, please explain, more in-depth, what we need to do this?"


Just add a _cube.dds to your current PBR textures and it will use that for reflections.

Quote: "PLEASE ELABORATE on the next version of GG's local cubemap making abilities"


I dont think there is any plans about automated cubemap generation , i also did not see any feature request on github for this so ... ? but Lee could have other plans
Subscribe and checkout great GameGuru/AGK video's here: Videos click here
Latest GameGuru Loader news: News click here
Get GameGuru Loader PBR version here: Steam click here
best regards Preben Eriksen,
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 17th Mar 2018 16:04
Reflection probes would be a great enhancement.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 17th Mar 2018 18:51
Quote: "Just add a _cube.dds to your current PBR textures and it will use that for reflections."

okay, i had assumed, but I was wondering how it was you got your cubemap to reflect the environment? does that still require actually making your cubemap, or will placing a PBR object with a high glossiness/low roughness create this effect with a proper reflection for the surroudings. I ask because last i remember seeing it was T-bone placing a slenderman character with a reflective head inside a building and the head just reflected the grass and sky.

Quote: "I dont think there is any plans about automated cubemap generation , i also did not see any feature request on github for this so ... ? but Lee could have other plans"


sorry that kinda muddies up my understanding here. How does PBR "work?" (i know that is very general) does it use a realtime reflection? I was under the impression it just generated a local cubemap-texture to use for reflective objects without cubemaps, and that this cubemap was basically the skybox and ground.

Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 17th Mar 2018 20:13
Right now automatic reflection map is created from the skybox and the terrain.
This map is located here when generated by a skybox or a terrain change.
Game Guru\Files\levelbank\testmap\globalenvmap.dds
Looks like this in GIMP:


Looks like this in PhotoShop (Dont know why)


Of coarse that is an outside scene so everything on the inside that has reflections will use this, unless you make your own cube map for objects in specific indoor areas.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 17th Mar 2018 22:42
so then how does prebens reflect the surrounding area and nearby entity? will he be adding that to gameguru? or is that for GGloader?
Preben
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 17th Mar 2018 23:25 Edited at: 17th Mar 2018 23:30
Quote: "how it was you got your cubemap to reflect the environment? does that still require actually making your cubemap,"


There is a flag in GG Loader "saveGGcubeimages = 1" , when used it will then automatically create the cubemap images that can be used in GameGuru. Hopefully we can get something similar going in GG at some point

Yes like PM say , there is no real-time reflection but a dynamic generated cubemap that are used for all PBR reflection.

EDIT: Note - saving of GameGuru cubemaps is a new feature in GG Loader that will be in the next release.
Subscribe and checkout great GameGuru/AGK video's here: Videos click here
Latest GameGuru Loader news: News click here
Get GameGuru Loader PBR version here: Steam click here
best regards Preben Eriksen,
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 18th Mar 2018 16:13
Quote: "Hopefully we can get something similar going in GG at some point"


lmfao kinda funny when a fanmade GG product seems to outperform the real thing by several nautical miles

Login to post a reply

Server time is: 2024-03-29 08:37:16
Your offset time is: 2024-03-29 08:37:16