Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Better Transparency Effect #178406
01/18/08 04:54
01/18/08 04:54
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
When the camera gets too close to the player, I have been turning the model
translucent and raising the alpha untill the model is semi-transparent. The
problem is, this method is very ugly. You can see the inside of the model as
it fades.

Does anyone know of a shader effect that will make the model semi- transparent
and not show the inside of the model?

Thanks!


Not two, not one.
Re: Better Transparency Effect [Re: Grafton] #178407
01/19/08 00:02
01/19/08 00:02
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
There isn't one in place so far, but it could be made. The problem is that you'd have to have another view, which would make it framerate heavy...


xXxGuitar511
- Programmer
Re: Better Transparency Effect [Re: xXxGuitar511] #178408
01/21/08 20:42
01/21/08 20:42
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Yeah, I guess I am kind of looking at ideas in creating it.

To eliminate seeing "inside" of the model, the shader shouldnt render pixels
on polygons facing away from the view, or that are occluded (like the inside
of the mouth, eye sockets etc. The first is easy to do, but I am not sure about
how I could easily find self occluded parts of the model.


Not two, not one.
Re: Better Transparency Effect [Re: Grafton] #178409
01/22/08 04:15
01/22/08 04:15
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Thats why I mentioned the second view. Basically, there are two passes...

The first renders the model normally.

The second renders that image over the scene.


..it's complicated, but it'll work. The problem comes when you have multiple entities...


xXxGuitar511
- Programmer
Re: Better Transparency Effect [Re: xXxGuitar511] #178410
01/22/08 17:10
01/22/08 17:10
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
Render world + depth map. Render your transparent models on a render target. Use rendered world + render target and blend them depending on the depth map.


Follow me on twitter
Re: Better Transparency Effect [Re: mk_1] #178411
01/22/08 22:11
01/22/08 22:11
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
you think much too complicated guys.
First you render the scene without the models that shall be transparent(rtt) and then you apply a shader to the transparent models that lerps the normal pixel with the screen rendered before (texProj2D or something was the instruction...)

Kind of refraction shader without refraction, huh?
If i've got time i'll give it a try tomorrow.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1