Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,194 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: A9? [Re: Harry Potter] #424893
06/23/13 21:40
06/23/13 21:40
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes, I would like to experiment with DX11, too, but it is NOT a must for GStudio.

@Thomas: Yes, I see where this feature would come in handy for you. However, you are probably better off with using the following approach for your vegetation, especially without DX11: http://www2.disney.co.uk/cms_res/blackrockstudio/pdf/Foliage_Rendering_in_Pure.pdf
There you render the vegetation (separated from the game world) with alpha testing (thus solid and much much faster, esp. with many overlapping polygons/ models) and use an alpha mask to keep the smooth edges that you normally would lose with alpha testing alone.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: A9? [Re: Superku] #424902
06/24/13 04:08
06/24/13 04:08
Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Harry Potter Offline
Expert
Harry Potter  Offline
Expert

Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Originally Posted By: Superku
There you render the vegetation (separated from the game world) with alpha testing and use an alpha mask to keep the smooth edges that you normally would lose with alpha testing alone.
Thanks, Felix, but this technique doesn't solve my problem.
I had used a similar technique some years ago, but without any shader. I used two models, which had exactly the same polygons and exactly the same position within the level. One model had a bitmap texture with overlay (alpha testing) and one had a TGA texture with an alpha-mask and soft borders. The result didn't look good, because I still had sorting problems at the edges (the soft borders were sorted in the wrong order). And this doesn't look realistic, especially when I use very detailed textures.

Re: A9? [Re: Harry Potter] #424904
06/24/13 04:46
06/24/13 04:46
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Hm I don't understand two things, your approach from a few years ago (but not that important when it does not work) and more important why the technique would not help in your case? I'm pretty certain that it would.
You render all the vegetation with solid faces, thus there cannot be any sorting errors. Then in a postprocessing step you add the vegetation to your game world and smoothen the edges by alpha blending using one or two alpha masks.
If it should for some reason look poorly close up you can still use regular alpha blending/ rendering for nearby models and use said technique for all other vegetation.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: A9? [Re: Superku] #424919
06/24/13 12:25
06/24/13 12:25
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Harry Potter, you do understand that the Order Independant Transparency shown in that video is not a DX11 feature one can just enable, but a quite complex shader effect which takes advantage of DX11 features.
I actually didn´t read the paper in more detail than a short look, but I guess
the basic idea they use is to create a linked list for each rendered pixel with the data to blend, sorting the data by distance and then blending it together. Thanks to features of DX11 and current hardware this can all be done on the GPU at a quite good performance.
Here is the paper about it: https://graphics.stanford.edu/wikis/cs44...s-10-11-oit.pdf

And maybe this part of the discussion could make a new thread as it is quite off topic, but could make an interesting discussion?

Re: A9? [Re: Slin] #424959
06/24/13 18:33
06/24/13 18:33
Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Harry Potter Offline
Expert
Harry Potter  Offline
Expert

Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Originally Posted By: Slin
Harry Potter, you do understand that the Order Independant Transparency shown in that video is not a DX11 feature one can just enable, but a quite complex shader effect which takes advantage of DX11 features.
Yes I know that it is a shader. But this shader can only be used together with DirectX 11. Therefore I wish that DX11 will be implemented in A8/A9 as soon as possible.
Thanx for the paper. It looks very interesting.

Re: A9? [Re: Slin] #424964
06/24/13 20:00
06/24/13 20:00
Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Harry Potter Offline
Expert
Harry Potter  Offline
Expert

Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Originally Posted By: Slin
And maybe this part of the discussion could make a new thread as it is quite off topic, but could make an interesting discussion?
I have opened a new thread for discussions: Order Independent Transparency

@Superku: could you please post your last comments again in german language (using the new discussion thread). To avoid misunderstandings. wink

Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | 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